/* 沟通 · 消息. Desktop: threads | conversation | the record and the people. Tablet: threads | conversation, the record
   below. Phone: one column that switches between the list and the open thread. Layout only changes; every action keeps
   its name and place in the reading order. */
.bcp-comms-count{margin-left:auto;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent);color:var(--on-accent);font:600 11px/20px 'IBM Plex Mono',ui-monospace,monospace;text-align:center}
.bcp-comms-pane{min-width:0}
.bsa-cloud .bcp-comms-check{display:inline-flex;align-items:center;gap:6px;margin-left:8px;font-size:12px}
.bsa-cloud .bcp-comms-check svg{color:var(--accent);flex:none}

.bcm-hub{--bcm-height:clamp(560px,calc(100dvh - 96px),980px);display:grid;grid-template-columns:minmax(250px,300px) minmax(0,1fr) minmax(240px,300px);grid-template-areas:'list main context';height:var(--bcm-height);min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--raised);overflow:hidden;box-shadow:var(--lift);scroll-margin-top:calc((var(--bcp-header-h) + 12px) / var(--bcp-zoom))}
/* Desktop batch H: from 1080 px the hub ends where the window ends (--bcm-fit is measured by the page; the 96 px is only the answer before it has measured). */
@media (min-width:1080px){.bcm-hub{--bcm-height:clamp(560px,var(--bcm-fit,calc(100dvh - 96px)),980px)}}
.bcm-threads{grid-area:list;display:flex;flex-direction:column;gap:12px;min-height:0;min-width:0;padding:14px 0 0;background:var(--raised2);border-right:1px solid var(--line)}
/* The messages head (title, count, 新建沟通) above the hub card: the same head as 联系人's. */
.bcm-messages-head{margin-bottom:16px}
.bcm-messages-head .bcm-page-title{justify-content:flex-start;gap:8px 12px}
/* The count sits on the title's baseline (the page-title rule for wide windows top-aligns the row). */
.bsa-cloud .bcm-messages-head .bcm-page-title{align-items:baseline}
.bcm-total{font:12px 'IBM Plex Mono',ui-monospace,monospace;color:var(--muted);white-space:nowrap}
.bsa-cloud .bcm-new,.bsa-cloud .bcm-primary,.bsa-cloud .bcm-send{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 14px;border:0;border-radius:var(--control-radius);background:var(--accent);color:var(--on-accent);font-size:14px;font-weight:700;white-space:nowrap}
.bsa-cloud .bcm-new{margin-left:auto;min-height:36px;padding:0 12px;font-size:13.5px}
.bsa-cloud .bcm-new:hover,.bsa-cloud .bcm-primary:hover,.bsa-cloud .bcm-send:hover{background:#f7773d;color:var(--ink)}
.bsa-cloud .bcm-send[aria-busy=true]{opacity:.7;cursor:progress}
.bsa-cloud .bcm-secondary{min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--raised);font-size:13.5px;font-weight:600;white-space:nowrap}
.bsa-cloud .bcm-link{min-height:28px;padding:2px 4px;border:0;background:transparent;color:var(--accent-ink);font-size:12.5px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.bsa-cloud .bcm-link:hover{background:transparent;color:var(--c-7f3311-fg)}
.bcm-search{position:relative;display:block;margin:0 16px}
.bcm-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.bsa-cloud .bcm-search input{min-height:40px;padding:8px 12px 8px 36px;border-color:var(--edge);border-radius:var(--control-radius);font-size:14px}
.bcm-filters{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px}
.bsa-cloud .bcm-chip{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:3px 11px;border:1px solid var(--line);border-radius:999px;background:var(--raised);color:var(--ink-2);font-size:12px;font-weight:600;white-space:nowrap}
.bsa-cloud .bcm-chip[aria-pressed=true]{border-color:var(--c-f3c4a8-bd);background:var(--accent-soft);color:var(--accent-ink)}
.bsa-cloud .bcm-chip:hover{border-color:var(--c-c9c2b6-bd);background:var(--raised)}
.bsa-cloud .bcm-chip[aria-pressed=true]:hover{background:var(--c-fbe0cf-bg)}
.bcm-chip-count{font-family:'IBM Plex Mono',ui-monospace,monospace}
.bcm-anchor-filter{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 16px;padding:8px 10px;border:1px dashed var(--c-f3c4a8-bd);border-radius:10px;background:var(--c-fff8f3-bg);font-size:12.5px;color:var(--accent-ink)}
.bcm-anchor-filter-label{min-width:0;overflow-wrap:anywhere;font-weight:600}
.bcm-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;list-style:none;margin:0;padding:0 10px 14px;display:flex;flex-direction:column;gap:4px}
.bsa-cloud .bcm-thread{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:start;gap:4px 12px;width:100%;min-height:64px;padding:12px;border:1px solid transparent;border-radius:12px;background:transparent;text-align:left;color:var(--ink)}
.bsa-cloud .bcm-thread:hover{background:var(--raised);border-color:var(--line)}
.bsa-cloud .bcm-thread[aria-pressed=true]{background:var(--raised);color:var(--ink);border-color:var(--c-f3c4a8-bd);box-shadow:var(--lift)}
.bcm-thread-icon{grid-row:span 3;display:grid;place-items:center;width:44px;height:44px;border-radius:8px;overflow:hidden;background:var(--c-e3f1ea-bg);color:var(--c-127a4e-fg);font:600 11px 'IBM Plex Mono',ui-monospace,monospace}
.bcm-thread-icon[data-kind=project]{background:var(--bar);color:#ffb48a}
.bcm-thread-icon[data-kind=photo],.bcm-thread-icon[data-kind=record]{background:var(--media,var(--c-e7e3db-bg));color:var(--muted)}
.bcm-thread-icon img{width:100%;height:100%;object-fit:cover;display:block}
.bcm-thread-body{display:contents}
.bcm-thread-subject{grid-column:2;font-size:14px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.bcm-thread-anchor{grid-column:2;display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;color:var(--muted)}
.bcm-thread-last{grid-column:2;min-width:0;font-size:13px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bcm-thread-last b{font-weight:600}
.bcm-thread-side{grid-column:3;grid-row:1/span 3;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.bcm-thread-side time{font:11px 'IBM Plex Mono',ui-monospace,monospace;color:var(--muted);white-space:nowrap}
.bcm-unread{min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--accent);color:var(--on-accent);font:600 11px/22px 'IBM Plex Mono',ui-monospace,monospace;text-align:center}
.bcm-mention-flag{font-size:11px;font-weight:700;color:var(--accent-ink);white-space:nowrap}
.bcm-id{font:600 12px 'IBM Plex Mono',ui-monospace,monospace;color:var(--accent-ink);background:var(--accent-soft);border:1px solid var(--c-f3c4a8-bd);border-radius:999px;padding:0 8px;white-space:nowrap}
.bcm-id.is-hint{border-style:dashed;background:transparent;color:var(--ink-2)}
.bcm-list-note{padding:0 16px 14px;font-size:13px;color:var(--muted)}
.bcm-list-note:empty{display:none}
@media (min-width:640px){.bcm-list-note.is-empty-state{display:none}}

.bcm-main{grid-area:main;display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--raised)}
.bcm-empty{margin:auto;max-width:420px;padding:32px 24px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;color:var(--muted);font-size:13.5px}
.bcm-empty-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:var(--accent-soft);color:var(--accent-ink)}
.bcm-empty-title{font-size:18px;font-weight:600;color:var(--ink)}
.bcm-convo{display:flex;flex-direction:column;min-height:0;height:100%}
.bcm-convo-head{flex:none;display:flex;align-items:flex-start;gap:12px;padding:16px 22px 14px;border-bottom:1px solid var(--line)}
.bcm-convo-titles{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.bcm-convo-title{font-size:19px;line-height:1.3;font-weight:600;letter-spacing:-.01em;overflow-wrap:anywhere}
.bcm-convo-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:12.5px;color:var(--muted)}
.bcm-convo-meta>span:not(.bcm-id){overflow-wrap:anywhere}
.bcm-tools{display:flex;flex-wrap:wrap;gap:6px;flex:none}
.bsa-cloud .bcm-tool{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--raised);color:var(--ink);font-size:13px;font-weight:600}
.bsa-cloud .bcm-tool svg{color:var(--c-2f6fb0-fg)}
.bsa-cloud .bcm-tool[aria-pressed=true]{background:var(--c-f2f6fb-bg);border-color:var(--c-b7cde6-bd);color:var(--c-24527f-fg)}
.bsa-cloud .bcm-back{display:none;align-items:center;gap:4px;min-height:44px;padding:0 10px 0 4px;border:0;background:transparent;color:var(--accent-ink);font-size:15px;font-weight:600}
.bcm-notice{display:flex;align-items:center;gap:8px;margin:10px 22px 0;padding:8px 12px;border-radius:8px;background:var(--warning-soft,var(--c-fff5e9-bg));color:var(--c-8e4c1b-fg);font-size:12.5px}
.bcm-log{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:16px;padding:18px 22px}
.bcm-log:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.bcm-day{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
.bcm-day::before,.bcm-day::after{content:'';flex:1;height:1px;background:var(--line)}
.bcm-msg{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;max-width:min(92%,720px)}
.bcm-msg[data-mine]{grid-template-columns:minmax(0,1fr);align-self:flex-end;max-width:min(84%,640px)}
.bcm-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;font-size:13px;font-weight:700;flex:none}
.bcm-avatar[data-role=vendor]{background:var(--accent-soft);color:var(--accent-ink)}
.bcm-avatar[data-role=builder]{background:var(--c-e3f1ea-bg);color:var(--c-23614a-fg)}
.bcm-msg-column{display:flex;flex-direction:column;gap:4px;min-width:0}
.bcm-msg[data-mine] .bcm-msg-column{align-items:flex-end}
.bcm-msg-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12.5px}
.bcm-msg[data-mine] .bcm-msg-meta{justify-content:flex-end}
.bcm-msg-meta strong{font-size:13.5px;font-weight:600}
.bcm-company{color:var(--muted)}
.bcm-msg-meta time{font:11px 'IBM Plex Mono',ui-monospace,monospace;color:var(--muted)}
.bcm-unverified{font-size:11px;font-weight:600;color:var(--c-8e4c1b-fg);white-space:nowrap}
.bcm-via{padding:1px 8px;border:1px solid var(--c-b7cde6-bd);border-radius:999px;background:var(--c-f2f6fb-bg);color:var(--c-24527f-fg);font:600 11px/1.5 'IBM Plex Mono',ui-monospace,monospace;white-space:nowrap}
.bcm-new-flag{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;color:var(--accent-ink)}
.bcm-new-flag::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--accent)}
.bcm-role{display:inline-flex;align-items:center;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.6;white-space:nowrap}
.bcm-role[data-role=vendor]{background:var(--accent-soft);color:var(--accent-ink)}
.bcm-role[data-role=builder]{background:var(--c-e3f1ea-bg);color:var(--c-23614a-fg)}
.bcm-bubble{padding:12px 14px;border:1px solid var(--line);border-radius:4px 14px 14px 14px;background:var(--raised2);min-width:0;max-width:100%}
.bcm-msg[data-mine] .bcm-bubble{border-color:var(--c-f3c4a8-bd);border-radius:14px 4px 14px 14px;background:var(--c-fff8f3-bg)}
.bcm-text{font-size:14.5px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.bcm-msg-mentions{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px!important}
.bcm-mention-tag{font-size:12px;font-weight:700;color:var(--accent-ink)}
.bcm-translation{align-self:stretch;margin:2px 0 0;font-size:13.5px}
.bcm-translation[aria-busy=true] .bcm-translation-text{color:var(--c-5b6f88-fg);font-style:italic}

.bcm-composer,.bcm-new-form{display:flex;flex-direction:column;gap:10px}
.bcm-composer{flex:none;padding:12px 22px 16px;border-top:1px solid var(--line);background:var(--raised2)}
.bcm-composer-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.bcm-identity{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}
.bcm-identity-field{display:flex;align-items:center;gap:8px;min-width:0;font-size:12.5px;color:var(--ink-2)}
.bcm-identity-label{white-space:nowrap;font-weight:600}
.bsa-cloud .bcm-identity select{width:auto;max-width:min(340px,100%);min-height:36px;padding:4px 8px;border-color:var(--edge);border-radius:8px;font-size:13px}
.bcm-passcode{display:inline-flex;align-items:center;gap:8px;min-width:0;font-size:12.5px;color:var(--ink-2)}
.bcm-passcode[hidden]{display:none}
.bcm-passcode-label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-weight:600}
.bsa-cloud .bcm-passcode input{width:190px;max-width:100%;min-height:36px;padding:4px 10px;border:1px solid var(--edge);border-radius:8px;background:var(--raised);font-size:13px}
.bcm-page-head .bcm-passcode{align-self:flex-start}
.bcm-simulated{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border:1px dashed var(--c-f3c4a8-bd);border-radius:999px;background:var(--c-fff8f3-bg);color:var(--accent-ink);font-size:12px;font-weight:600;white-space:nowrap}
.bcm-mentions{display:flex;gap:6px;margin-left:auto}
.bsa-cloud .bcm-input,.bsa-cloud .bcm-new-form textarea{min-height:76px;padding:10px 12px;border-color:var(--edge);border-radius:var(--control-radius);font-size:16px;line-height:1.5;resize:vertical}
.bcm-composer-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.bcm-counter{font:11px 'IBM Plex Mono',ui-monospace,monospace;color:var(--muted)}
.bcm-counter.is-over{color:var(--c-8e4c1b-fg);font-weight:700}
.bcm-hint{font-size:12px;color:var(--muted)}
.bcm-error{flex:1 1 100%;order:3;font-size:13px;font-weight:600;color:var(--c-8e4c1b-fg)}
.bcm-error:empty{display:none}
.bcm-composer-foot .bcm-send{margin-left:auto}

.bcm-new-form{flex:1;min-height:0;overflow:auto;padding:20px 24px}
.bcm-new-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.bcm-new-head h3{font-size:22px;font-weight:700}
.bcm-new-lede{flex:1 1 100%;font-size:12.5px;color:var(--muted)}
.bcm-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;color:var(--ink-2)}
.bsa-cloud .bcm-field input{min-height:44px;padding:9px 12px;border-color:var(--edge);border-radius:var(--control-radius);font-size:16px;color:var(--ink)}
.bcm-field .bcm-mentions{margin:0}
.bcm-field-grow textarea{min-height:140px}
.bcm-new-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.bcm-new-foot .bcm-counter{margin-left:auto}
.bcm-new-note{font-size:12.5px;color:var(--muted)}
.bcm-new-actions{display:flex;justify-content:flex-end;gap:10px}
.bcm-new-actions .bcm-send,.bcm-new-actions .bcm-secondary{min-height:44px}

.bcm-anchor-card{display:flex;align-items:center;gap:12px;min-width:0;padding:10px;border:1px solid var(--c-f3c4a8-bd);border-radius:12px;background:var(--c-fff8f3-bg)}
.bcm-context .bcm-anchor-card{flex-direction:column;align-items:stretch;padding:0;border-color:var(--line);background:var(--raised);overflow:hidden;border-radius:16px;box-shadow:var(--lift)}
.bcm-anchor-media{display:grid;place-items:center;flex:none;width:84px;height:64px;border-radius:8px;overflow:hidden;background:var(--media,var(--c-e7e3db-bg));color:var(--muted);font:600 12px 'IBM Plex Mono',ui-monospace,monospace}
.bcm-anchor-card[data-kind=project] .bcm-anchor-media{background:var(--bar);color:#ffb48a}
.bcm-anchor-card[data-kind=check] .bcm-anchor-media{background:var(--c-e3f1ea-bg);color:var(--c-127a4e-fg)}
.bcm-context .bcm-anchor-media{width:100%;height:140px;border-radius:0}
.bcm-anchor-media img{width:100%;height:100%;object-fit:cover;display:block}
.bcm-anchor-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.bcm-context .bcm-anchor-text{padding:12px 14px 0}
.bcm-anchor-kind{font-size:12px;font-weight:600;color:var(--accent-ink)}
.bcm-anchor-text strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}
.bcm-anchor-meta{font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.bcm-anchor-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bcm-context .bcm-anchor-actions{padding:6px 10px 12px}

.bcm-context{grid-area:context;display:flex;flex-direction:column;gap:18px;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:18px;background:var(--paper);border-left:1px solid var(--line)}
.bcm-context-section{display:flex;flex-direction:column;gap:10px}
.bcm-context-section h4{font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--muted)}
.bcm-muted{font-size:13px;color:var(--muted)}
.bcm-people{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.bcm-people li{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raised)}
.bcm-person{display:flex;flex-direction:column;min-width:0;flex:1}
.bcm-person strong{font-size:13.5px;font-weight:600}
.bcm-person small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.bcm-tips{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--ink-2)}
.bcm-sim-note{display:flex;gap:8px;align-items:flex-start;margin-top:auto!important;padding:10px 12px;border:1px dashed var(--c-f3c4a8-bd);border-radius:12px;background:var(--c-fff8f3-bg);font-size:12.5px;color:var(--c-5a2a10-fg)}
.bcm-sim-note svg{flex:none;margin-top:3px;color:var(--accent-ink)}

@media (pointer:coarse){
  .bsa-cloud .bcm-chip,.bsa-cloud .bcm-new,.bsa-cloud .bcm-tool,.bsa-cloud .bcm-link,.bsa-cloud .bcm-send,.bsa-cloud .bcm-secondary,.bsa-cloud .bcm-primary,.bsa-cloud .bcm-identity select,.bsa-cloud .bcm-passcode input{min-height:44px;min-width:44px}
  .bsa-cloud .bcm-search input,.bsa-cloud .bcm-identity select,.bsa-cloud .bcm-passcode input{font-size:16px}
}
/* Tablet: two columns; the record and the people move below the conversation. */
@media (max-width:1079px){
  .bcm-hub{--bcm-height:clamp(560px,calc(100dvh - 80px - var(--bcm-head,0px)),1100px);grid-template-columns:minmax(220px,280px) minmax(0,1fr);grid-template-rows:var(--bcm-height) auto;grid-template-areas:'list main' 'context context';height:auto}
  .bcm-context{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:start}
  .bcm-context .bcm-anchor-media{height:120px}
  .bcm-sim-note{margin-top:0!important}
  .bcm-convo-head{flex-wrap:wrap}
}
/* Phone: one column. The list, or the open thread with a way back; the record and the people under the thread. */
@media (max-width:639px){
  .bcm-hub{--bcm-height:clamp(480px,calc(100dvh - 64px - var(--bcm-head,0px)),900px);grid-template-columns:minmax(0,1fr);grid-template-rows:var(--bcm-height) auto;grid-template-areas:'main' 'context';border-radius:14px;scroll-margin-top:calc((var(--bcp-header-h) + 14px) / var(--bcp-zoom))}
  .bcm-hub[data-view=list]{grid-template-areas:'list';grid-template-rows:var(--bcm-height)}
  .bcm-hub[data-view=list] .bcm-main,.bcm-hub[data-view=list] .bcm-context,.bcm-hub:not([data-view=list]) .bcm-threads{display:none}
  .bcm-threads{border-right:0}
  .bsa-cloud .bcm-back{display:inline-flex}
  .bcm-convo-head{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 8px;padding:4px 12px 10px}
  .bsa-cloud .bcm-back{grid-column:1;grid-row:1}
  .bcm-tools{grid-column:2;grid-row:1;justify-content:flex-end}
  .bcm-convo-titles{grid-column:1/-1;grid-row:2;gap:4px;padding:0 4px}
  .bcm-convo-title{font-size:17px}
  .bcm-convo-meta{font-size:12px;gap:2px 8px}
  .bcm-log{padding:14px 12px}
  .bcm-msg{max-width:100%}
  .bcm-msg[data-mine]{max-width:92%}
  /* The composer keeps its controls on short rows: sender, mentions, the text with Send beside it, then the length
     (shown on phones too, so a message over the limit says by how much). */
  .bcm-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:10px 12px 12px}
  .bcm-composer-top{grid-column:1/-1;gap:8px}
  .bcm-composer .bcm-identity{flex:1 1 100%;flex-wrap:nowrap}
  .bcm-composer .bcm-identity-field{flex:1}
  .bcm-composer .bcm-identity-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .bsa-cloud .bcm-composer .bcm-identity select{width:100%;max-width:none}
  .bcm-composer .bcm-passcode{flex:1 1 100%}
  .bsa-cloud .bcm-composer .bcm-passcode input{flex:1;width:auto}
  .bcm-mentions{margin-left:0}
  .bsa-cloud .bcm-composer .bcm-input{grid-column:1;height:64px;min-height:64px}
  .bcm-composer .bcm-composer-foot{display:contents}
  .bcm-hint{display:none}
  .bcm-composer .bcm-counter{grid-column:1/-1;justify-self:end}
  .bcm-composer .bcm-error{grid-column:1/-1}
  .bsa-cloud .bcm-composer .bcm-send{grid-column:2;grid-row:2;min-height:64px;margin:0}
  .bcm-new-form{padding:12px 14px 16px}
  .bcm-anchor-card{flex-wrap:wrap}
  .bcm-new-form .bcm-anchor-media{width:64px;height:48px}
  .bcm-new-actions .bcm-send{flex:1}
  .bcm-notice{margin:8px 12px 0}
}
@media (prefers-reduced-motion:reduce){.bcm-log{scroll-behavior:auto}}

/* 沟通 · 联系人 and 通道: full-width pages with the same cards, chips and 44px actions. */
.bcm-page{display:flex;flex-direction:column;gap:20px;min-width:0;scroll-margin-top:calc((var(--bcp-header-h) + 24px) / var(--bcp-zoom))}
.bcm-page-head{display:flex;flex-direction:column;gap:6px}
.bcm-page-head h2{font-size:24px;line-height:1.25;font-weight:700;letter-spacing:-.01em}
.bcm-demo-note{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border:1px dashed var(--c-f3c4a8-bd);border-radius:12px;background:var(--c-fff8f3-bg);color:var(--c-5a2a10-fg);font-size:13px}
.bcm-demo-note svg{flex:none;margin-top:3px;color:var(--accent-ink)}
.bcm-clocks{display:grid;grid-template-columns:repeat(2,minmax(170px,220px)) minmax(0,1fr);gap:12px}
.bcm-clock{display:flex;flex-direction:column;gap:3px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--raised);box-shadow:var(--lift)}
.bcm-clock-city{font-size:12px;font-weight:600;color:var(--muted)}
.bcm-clock-time{font:600 30px/1.15 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:-.04em;color:var(--ink)}
.bcm-clock-day{font-size:12px;color:var(--muted)}
.bcm-clock-state{margin-top:4px;font-size:12.5px;font-weight:600;color:var(--c-8e4c1b-fg)}
.bcm-clock-state[data-state=working]{color:var(--c-127a4e-fg)}
.bcm-shared-text{font-size:14px;font-weight:600;color:var(--c-127a4e-fg)}
.bcm-contact-group{display:flex;flex-direction:column;gap:10px}
.bcm-contact-group-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.bcm-contact-group-head h3{font-size:16px;font-weight:600}
.bcm-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.bcm-contact{display:flex;flex-direction:column;gap:10px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--raised);box-shadow:var(--lift)}
.bcm-contact-head{display:flex;align-items:center;gap:10px;min-width:0}
.bcm-contact-head .bcm-avatar{width:40px;height:40px}
.bcm-contact-time{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink-2)}
.bcm-dot{width:8px;height:8px;border-radius:50%;flex:none;background:#8e4c1b}
.bcm-contact-time[data-state=working] .bcm-dot{background:#127a4e}
.bcm-contact-numbers{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--ink-2);overflow-wrap:anywhere}
.bcm-contact-numbers small{color:var(--muted);font-size:11.5px}
.bcm-mono{font-family:'IBM Plex Mono',ui-monospace,monospace}
.bcm-actions{display:flex;gap:6px;margin-top:auto}
.bsa-cloud .bcm-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:1;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--raised);color:var(--ink);font-size:13.5px;font-weight:600;text-decoration:none;white-space:nowrap}
.bsa-cloud .bcm-action svg{color:var(--accent-ink)}
.bsa-cloud .bcm-action:hover{border-color:var(--c-c9c2b6-bd);background:var(--raised2)}
.bcm-service-actions{display:flex;flex-wrap:wrap;gap:6px;padding-top:8px;border-top:1px dashed var(--line)}
.bsa-cloud .bcm-service{min-height:40px;font-size:12.5px}
.bsa-cloud .bcm-service.is-armed{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}
.bcm-service-status{flex:1 1 100%;font-size:12.5px;color:var(--ink-2)}
.bcm-service-status:empty{display:none}
.bcm-reach .bcm-contact{box-shadow:none;padding:12px}
.bcm-reach .bcm-actions{flex-wrap:wrap}
.bcm-meeting-block{display:flex;flex-direction:column;gap:8px}
.bcm-meeting-preview summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--accent-ink);min-height:32px;display:flex;align-items:center}
.bcm-meeting-preview pre{margin:6px 0 0;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--raised);font:12px/1.6 'IBM Plex Mono',ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink-2)}
.bcm-meeting-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.bsa-cloud .bcm-meeting-actions .bcm-secondary{display:inline-flex;align-items:center;gap:6px}
.bcm-tiers{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;align-items:stretch}
.bcm-tier{display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--raised)}
.bcm-tier-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.bcm-tier-head h3{font-size:15px;font-weight:600}
.bcm-tier-number{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--bar);color:#ffb48a;font:600 12px 'IBM Plex Mono',ui-monospace,monospace}
.bcm-badge{margin-left:auto;padding:2px 10px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap}
.bcm-badge[data-tone=ok]{background:var(--c-f1f8f4-bg);color:var(--c-127a4e-fg)}
.bcm-badge[data-tone=off]{background:var(--hover);color:var(--ink-2)}
.bcm-meeting{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--raised2)}
.bcm-services{display:flex;flex-direction:column;gap:8px}
.bcm-service-row{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raised2);font-size:13px}
.bcm-service-state{font-weight:600;color:var(--c-8e4c1b-fg)}
.bcm-service-row[data-configured=true] .bcm-service-state{color:var(--c-127a4e-fg)}
.bcm-env{display:flex;flex-wrap:wrap;gap:6px}
.bcm-env code{font:11.5px 'IBM Plex Mono',ui-monospace,monospace;padding:1px 6px;border:1px solid var(--line);border-radius:4px;background:var(--raised);color:var(--ink-2)}
.bcm-page>.bcm-sim-note{margin-top:0!important}
@media (max-width:1079px){.bcm-clocks{grid-template-columns:repeat(2,minmax(0,1fr))}.bcm-shared{grid-column:1/-1}}
/* Desktop batch H: the clocks answer to the page's own width (the AI panel takes about 400 px of the window without firing a
   viewport query): the shared hours get a row of their own when the three would leave them under 300 px. */
.bcm-page{container:bcm-page/inline-size;width:100%}
@container bcm-page (max-width:759px){.bcm-clocks{grid-template-columns:repeat(2,minmax(0,1fr))}.bcm-shared{grid-column:1/-1}}
/* A result shown as a bar that sticks to the bottom of the window (the last thing in the pane, as wide as it) when the page's own result line is out of sight. In the zoomed page content (文字大小) its offset is divided back in bsa-accounts.css. */
.bcm-toast{position:sticky;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:6;display:flex;justify-content:center;padding:0 12px;margin-top:16px;pointer-events:none}
.bcm-toast[hidden]{display:none}
/* While the bar is up it covers the bottom of the window: a control reached by Tab or by a jump scrolls to above it, not under it. */
:root:has(.bcm-toast:not([hidden])){scroll-padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
html[data-bsa-text=large]:has(.bcm-toast:not([hidden])){scroll-padding-bottom:calc(126px + env(safe-area-inset-bottom,0px))}
html[data-bsa-text=larger]:has(.bcm-toast:not([hidden])){scroll-padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))}
.bcm-toast-body{display:flex;align-items:center;gap:8px;max-width:min(100%,680px);padding:10px 8px 10px 16px;border-radius:12px;background:var(--bar);color:var(--on-bar);font-size:13.5px;line-height:1.5;box-shadow:var(--lift);pointer-events:auto}
.bcm-toast.is-error .bcm-toast-body{border-left:4px solid var(--accent)}
.bcm-toast .bcm-toast-link{color:#ffb48a;font-weight:600;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.bsa-cloud .bcm-toast .bcm-toast-close{flex:none;min-width:32px;min-height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:#fff;font-size:18px;line-height:1}
.bsa-cloud .bcm-toast .bcm-toast-close:hover{background:#ffffff26;color:#fff}
.bcm-contacts-status-link{font-size:13px;font-weight:600;color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px}
@media (pointer:coarse){.bsa-cloud .bcm-toast .bcm-toast-close{min-width:44px;min-height:44px}.bcm-toast .bcm-toast-link,.bcm-contacts-status-link{display:inline-flex;align-items:center;min-height:44px}}
@media (max-width:639px){.bcm-messages-head:has(+ .bcm-hub:not([data-view=list])){display:none}.bcm-clock-time{font-size:24px}.bcm-contact-grid,.bcm-tiers{grid-template-columns:minmax(0,1fr)}.bcm-page-head h2{font-size:22px}}

/* AI help: labelled AI, never a verdict; to-dos are saved only after a person ticks and confirms them. */
.bsa-cloud .bcm-ai-tool svg{color:var(--c-2f6fb0-fg)}
.bsa-cloud .bcm-ai-tool[aria-busy=true]{opacity:.7;cursor:progress}
.bcm-assist{display:flex;flex-direction:column;gap:8px;margin:10px 22px 0;padding:12px 14px;border:1px solid var(--c-b7cde6-bd);border-left:3px solid #2f6fb0;border-radius:10px;background:var(--c-f2f6fb-bg);color:var(--c-1f3350-fg);font-size:13.5px;max-height:45%;overflow:auto}
.bcm-assist-head{display:flex;align-items:center;gap:8px;color:var(--c-24527f-fg)}
.bcm-assist-head strong{font-size:12.5px;font-weight:700;flex:1}
.bcm-assist-icon{display:inline-flex}
.bcm-assist-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.bcm-assist-points{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.bcm-todo-form{display:flex;flex-direction:column;gap:8px}
.bcm-todo-suggestion{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px}
.bcm-todo-suggestion input[type=checkbox]{width:20px;height:20px;margin:0;accent-color:var(--accent)}
.bsa-cloud .bcm-todo-suggestion input[type=text]{min-height:40px;padding:6px 10px;border-color:var(--edge);border-radius:8px;font-size:16px;background:var(--raised)}
.bsa-cloud .bcm-todo-suggestion select{width:auto;min-height:40px;padding:4px 8px;border-color:var(--edge);font-size:14px}
.bcm-draft-tools{display:flex;align-items:center;gap:6px}
.bsa-cloud .bcm-draft-language{width:auto;min-height:36px;padding:4px 8px;border-color:var(--edge);border-radius:8px;font-size:13px}
.bcm-draft{gap:6px}
.bcm-draft-text{white-space:pre-wrap}
.bcm-draft-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.bcm-todos{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.bcm-todo{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raised)}
.bcm-todo-label{display:flex;align-items:flex-start;gap:10px;min-height:44px;font-size:13.5px;cursor:pointer}
.bcm-todo-label input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--accent)}
.bcm-todo-text{overflow-wrap:anywhere}
.bcm-todo[data-done=true] .bcm-todo-text{text-decoration:line-through;color:var(--muted)}
.bcm-todo-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-left:30px;font-size:12px;color:var(--muted)}
/* To-dos typed by hand: 添加待办 under the list, a small form, and per to-do 更正 / 作废. A voided to-do stays, struck through. */
.bcm-todo[data-voided=true]{background:var(--raised2)}
.bcm-todo[data-voided=true] .bcm-todo-text{text-decoration:line-through;color:var(--muted)}
.bcm-todo[data-voided=true] .bcm-todo-label{cursor:default}
.bcm-todo-void{color:var(--c-8a3a14-fg);font-weight:600}
.bcm-todo-tools{display:flex;flex-wrap:wrap;gap:4px 12px;padding-left:30px}
.bsa-cloud .bcm-todo-tool{min-height:32px}
.bsa-cloud .bcm-todo-add{display:inline-flex;align-items:center;gap:6px;margin-top:8px;min-height:44px}
.bcm-todo-new,.bcm-todo-edit{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.bcm-todo-edit{padding-left:30px}
.bcm-todo-field{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--muted)}
.bcm-todo-new-row{display:flex;flex-wrap:wrap;gap:8px}
.bsa-cloud .bcm-todo-new input[type=text],.bsa-cloud .bcm-todo-edit input[type=text]{min-height:44px;padding:6px 10px;border:1px solid var(--edge);border-radius:8px;font-size:16px;background:var(--raised);color:var(--ink)}
.bsa-cloud .bcm-todo-new select{flex:1 1 140px;width:auto;min-width:0;min-height:44px;padding:4px 8px;border-color:var(--edge);font-size:14px}
.bcm-todo-new .bcm-error:empty,.bcm-todo-edit .bcm-error:empty{display:none}
@media (pointer:coarse){.bsa-cloud .bcm-todo-tool{min-height:44px;min-width:44px}}
@media (pointer:coarse){.bsa-cloud .bcm-draft-language,.bsa-cloud .bcm-todo-new select,.bsa-cloud .bcm-todo-suggestion select,.bsa-cloud .bcm-todo-suggestion input[type=text]{min-height:44px;font-size:16px}.bcm-todo-suggestion input[type=checkbox]{width:24px;height:24px}}
@media (max-width:639px){.bcm-assist{margin:8px 12px 0}.bcm-todo-suggestion{grid-template-columns:auto minmax(0,1fr);}.bcm-todo-suggestion select,.bcm-todo-suggestion .bcm-id{grid-column:2}.bcm-draft-tools{flex:1 1 100%}}
/* 联系人: people add, edit, delete and restore contacts. Solid and outlined controls only (no glass); a small modal
   form with a head, a scrolling body and a foot that holds the save state and the actions. */
.bcm-page-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.bcm-contacts-status{font-size:13px;color:var(--ink-2)}
.bcm-contacts-status:empty{display:none}
.bcm-contacts-status.is-error,.bcm-dialog-status.is-error{color:var(--c-8e4c1b-fg);font-weight:600}
.bcm-contact-notes{font-size:12.5px;line-height:1.55;color:var(--ink-2);white-space:pre-line;overflow-wrap:anywhere}
.bcm-contact-tools{display:flex;flex-wrap:wrap;gap:6px;padding-top:8px;border-top:1px solid var(--line)}
.bcm-contact-empty{grid-column:1/-1;padding:12px 0}
.bcm-deleted{border:1px solid var(--line);border-radius:14px;background:var(--raised)}
.bcm-deleted summary{display:flex;align-items:center;min-height:44px;padding:0 14px;font-size:14px;font-weight:600;cursor:pointer}
.bcm-deleted-list{display:flex;flex-direction:column;margin:0;padding:0 14px 12px;list-style:none}
.bcm-deleted-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.bcm-deleted-who{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.bcm-deleted-who small{font-size:12px;color:var(--muted)}
.bcm-contact-dialog{width:min(640px,calc(100vw - 24px));height:fit-content;max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--edge);border-radius:16px;background:var(--paper,var(--page));color:var(--ink);box-shadow:0 24px 80px #011b3e40;overflow:hidden}
.bcm-contact-dialog[open]{display:flex;flex-direction:column}
.bcm-contact-dialog::backdrop{background:#011b3e66}
.bcm-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);background:var(--raised)}
.bcm-dialog-head h3{font-size:18px;font-weight:700}
.bcm-contact-form{display:flex;flex-direction:column;min-height:0;flex:1}
.bcm-dialog-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;padding:16px 18px;overflow:auto;min-height:0}
.bcm-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.bcm-field.is-wide{grid-column:1/-1}
.bcm-field-label{font-size:12.5px;font-weight:600;color:var(--ink-2)}
.bcm-field-hint{font-size:11.5px;color:var(--muted)}
.bsa-cloud .bcm-field input,.bsa-cloud .bcm-field select,.bsa-cloud .bcm-field textarea{width:100%;min-height:40px;padding:6px 10px;border:1px solid var(--edge);border-radius:8px;background:var(--raised);color:var(--ink);font:inherit;font-size:14px}
.bsa-cloud .bcm-field textarea{min-height:76px;resize:vertical}
.bsa-cloud .bcm-field [aria-invalid=true]{border-color:var(--c-8e4c1b-bd);box-shadow:0 0 0 2px #fdeee4}
.bcm-dialog-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 18px;border-top:1px solid var(--line);background:var(--raised)}
.bcm-dialog-status{flex:1;min-width:180px;font-size:13px;color:var(--ink-2)}
.bcm-dialog-actions{display:flex;gap:8px;margin-left:auto}
@media (pointer:coarse){.bsa-cloud .bcm-field input,.bsa-cloud .bcm-field select,.bsa-cloud .bcm-field textarea{min-height:44px;font-size:16px}.bcm-deleted summary{min-height:48px}}
@media (max-width:639px){.bcm-dialog-body{grid-template-columns:1fr;padding:14px}.bcm-dialog-head,.bcm-dialog-foot{padding:12px 14px}.bcm-dialog-actions{width:100%}.bcm-dialog-actions .bsa-btn{flex:1}.bcm-deleted-row{flex-wrap:wrap}}
.bcm-contact-changed{font-size:11.5px;color:var(--muted)}
.bcm-person strong,.bcm-person small{overflow-wrap:anywhere}
.bcm-dialog-notice{display:flex;align-items:flex-start;gap:8px;margin:0;padding:10px 18px;border-bottom:1px solid var(--line);background:var(--c-fff8f3-bg);color:var(--c-5a2a10-fg);font-size:13px;line-height:1.5}
.bcm-dialog-notice svg{flex:none;margin-top:2px;color:var(--accent-ink)}
fieldset.bcm-dialog-body{margin:0;border:0;min-width:0}
fieldset.bcm-dialog-body[disabled]{opacity:.7}
@media (max-width:639px){.bcm-dialog-notice{padding:10px 14px}}
/* Storage meter: shown past 70% of the comms document's size limit, with what to do at the limit. */
.bcm-storage{display:grid;gap:6px;margin:0 16px 10px;padding:10px 12px;border:1px solid var(--c-f3c4a8-bd);border-radius:10px;background:var(--c-fff8f3-bg)}
.bcm-storage[hidden]{display:none}
.bcm-storage-text{margin:0;font-size:13px;line-height:1.45;color:var(--ink-2)}
.bcm-storage.is-full{border-color:var(--c-e5a39a-bd);background:var(--c-fff3f1-bg)}
.bcm-storage.is-full .bcm-storage-text{color:var(--c-9b2c1f-fg);font-weight:600}
.bcm-storage-meter{width:100%;height:8px}

/* 更正 / 撤回 one's own message: small text actions under the bubble, the correction box in place, and what it said before
   folded under it (「已更正，查看原文」). The composer says up front that a sent message can be corrected. */
.bcm-msg-actions{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:4px}
.bcm-msg[data-mine] .bcm-msg-actions{justify-content:flex-end}
.bcm-msg-edit{display:grid;gap:8px;margin-top:6px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raised)}
.bsa-cloud .bcm-msg-edit .bcm-input{width:100%;min-height:72px;font-size:14.5px}
.bcm-msg-edit .bcm-error:empty{display:none}
.bcm-retracted{color:var(--muted);font-style:italic}
.bcm-original{margin-top:4px;font-size:12.5px;color:var(--ink-2)}
.bcm-original summary{display:inline-flex;align-items:center;min-height:28px;cursor:pointer;color:var(--accent-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.bcm-original-list{margin:6px 0 0;padding:8px 12px;list-style:none;display:grid;gap:8px;border-left:3px solid var(--line);background:var(--raised2);border-radius:0 8px 8px 0}
.bcm-original-list li{display:grid;gap:2px}
.bcm-original-label{font-size:11.5px;font-weight:600;color:var(--muted)}
.bcm-original-text{margin:0;font-size:13.5px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.bcm-original-list time{font-size:11.5px;color:var(--muted)}
.bcm-correct-hint{font-size:12px;color:var(--muted)}
@media (max-width:639px){.bcm-hint.bcm-correct-hint{display:block;grid-column:1/-1}}
@media (pointer:coarse){.bcm-original summary{min-height:44px}.bsa-cloud .bcm-msg-edit .bcm-input{font-size:16px}}
/* 联系人 · 修改记录 and 永久删除: the same dialog frame as 编辑联系人. */
.bcm-history-body,.bcm-purge-body{display:grid;gap:12px;padding:16px 18px;overflow:auto;min-height:0}
.bcm-history-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.bcm-history-item{display:grid;gap:6px;justify-items:start;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raised)}
.bcm-history-meta{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin:0;font-size:13px}
.bcm-history-changes{display:grid;gap:4px;margin:0;font-size:13px}
.bcm-history-changes div{display:grid;grid-template-columns:minmax(64px,auto) minmax(0,1fr);gap:8px}
.bcm-history-changes dt{color:var(--muted);font-weight:600}
.bcm-history-changes dd{margin:0;overflow-wrap:anywhere}
.bcm-history-before{color:var(--muted);text-decoration:line-through}
.bcm-history-current{font-size:12px;font-weight:600;color:var(--c-127a4e-fg)}
.bcm-purge-list{display:grid;gap:4px;margin:0;padding-left:18px;font-size:13.5px;overflow-wrap:anywhere}
.bcm-deleted-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.bcm-purge-note{padding:0 14px 12px}
@media (pointer:coarse){.bcm-history-item .bsa-btn,.bcm-deleted-actions .bsa-btn,.bcm-contact-tools .bsa-btn{min-height:44px}}
@media (max-width:639px){.bcm-history-body,.bcm-purge-body{padding:14px}.bcm-deleted-actions{width:100%;justify-content:flex-start}}

/* 整理与归档: the bar under the thread list and the administrator's dialog. Rows are whole labels, at least 44 px tall on
   touch screens; long subjects wrap instead of widening the dialog. */
.bcm-archive-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:4px 16px 12px}
.bcm-archive-count{font-size:12.5px;color:var(--ink-2)}
.bcm-archive-body{gap:14px}
.bcm-archive-usage{margin:0;font-weight:600;font-size:14px}
.bcm-archive-picker{display:grid;gap:8px;min-width:0;margin:0;padding:0;border:0}
.bcm-archive-picker legend{padding:0;margin-bottom:6px;font-weight:700;font-size:14px}
.bcm-archive-quick{display:flex;flex-wrap:wrap;gap:8px}
.bcm-archive-list,.bcm-archive-archived{display:grid;gap:6px;margin:0;padding:0;list-style:none;max-height:min(40dvh,360px);overflow:auto}
.bcm-archive-row{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--raised);cursor:pointer}
.bcm-archive-row input{flex:none;width:20px;height:20px;margin:2px 0 0}
.bcm-archive-row-text,.bcm-archive-archived summary{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.bcm-archive-row-text small,.bcm-archive-archived small{font-size:12.5px;color:var(--ink-2)}
.bcm-archive-selection{margin:0;font-size:13px;color:var(--ink-2)}
.bcm-archive-shelf{border-top:1px solid var(--line);padding-top:10px}
.bcm-archive-shelf>summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer}
.bcm-archive-shelf-body{display:grid;gap:8px}
.bcm-archive-archived>li{padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--raised)}
.bcm-archive-archived summary{min-height:44px;align-content:center;cursor:pointer}
.bcm-archive-messages,.bcm-archive-todos{display:grid;gap:6px;margin:8px 0 0;padding-left:18px;font-size:13.5px;overflow-wrap:anywhere}
.bcm-archive-messages p{margin:2px 0 0;white-space:pre-wrap}
.bcm-archive-author{font-size:12px;color:var(--ink-2)}
@media (pointer:coarse){.bcm-archive-row input{width:24px;height:24px}}
.bcm-draft-choice{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--raised)}
.bcm-draft-choice p{margin:0;font-size:13px}
.bcm-draft-choice .bcm-draft-choice-text{white-space:pre-wrap;color:var(--muted);overflow-wrap:anywhere}
