/* inbox.css - fetch-1944 (Core Inbox 2/5): the bell panel's notice rows, their Done / Move back, the Mark all done confirm, the foot
   and the empty words. Tokens only. The panel keeps .bell-panel / .bell-head / .bell-item / .bi-t / .bi-s (portal.css) for the
   controls other code and probes rely on; these rules sit on top of them inside .inbox-panel. */
.inbox-panel .bell-head { align-items: center; }
.inbox-panel .bell-head > strong { margin-right: auto; }
.inbox-link { font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--control-height-touch); padding: 0 var(--s-2); border: 0; background: transparent; color: var(--navy); font-size: var(--t-sub); font-weight: 500; white-space: nowrap; }
.inbox-link:hover { background: var(--wash); }
.inbox-panel .group-label { margin: var(--s-3) var(--s-3) var(--s-1); }
.inbox-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-1); padding-right: var(--s-2); border-bottom: 1px solid var(--hair); }
.inbox-panel .inbox-row .bell-item { display: grid; grid-template-columns: var(--s-2) minmax(0, 1fr); gap: var(--s-2); align-items: start; width: 100%; min-height: var(--control-height-touch); margin: 0; padding: var(--s-2) var(--s-1) var(--s-2) var(--s-3); border: 0; border-radius: var(--r-s); background: transparent; color: inherit; font: inherit; text-align: left; cursor: default; }
.inbox-panel .inbox-row button.bell-item { cursor: pointer; }
.inbox-panel .inbox-row button.bell-item:hover { background: var(--wash); }
.inbox-panel .inbox-row button.bell-item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.inbox-dot { width: var(--s-2); height: var(--s-2); margin-top: var(--s-1); border-radius: 50%; background: transparent; }
.inbox-panel .bell-item.un .inbox-dot { background: var(--gold-dark); }
.inbox-main { display: block; min-width: 0; }
.inbox-panel .bell-item .bi-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--t-body); line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.inbox-panel .bell-item.un .bi-t { font-weight: 600; }
.inbox-panel .bell-item .bi-s { font-variant-numeric: tabular-nums; display: block; margin-top: var(--s-1); font-size: var(--t-sub); line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.inbox-panel .bell-item .inbox-body { color: var(--navy); }
.inbox-opens { color: var(--navy); white-space: nowrap; }
.inbox-done { flex: none; min-height: var(--control-height-touch); padding: 0 var(--s-3); font-size: var(--t-sub); font-weight: 500; white-space: nowrap; }
.inbox-panel > .row-note, .inbox-panel > .stale-line, .inbox-panel > .load-failed { margin: var(--s-1) var(--s-3) var(--s-2); }
.inbox-confirm { display: grid; gap: var(--s-2); margin: var(--s-2) var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--wash); color: var(--ink); font-size: var(--t-sub); line-height: 1.5; }
.inbox-confirm p { margin: 0; }
.inbox-confirm-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.inbox-confirm-acts .btn { min-height: var(--control-height-touch); }
.inbox-tools { display: flex; align-items: center; padding: var(--s-1) var(--s-2) 0; }
.inbox-foot { display: flex; padding: var(--s-1) var(--s-2); border-top: 1px solid var(--hair); }
.inbox-empty { display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-3); color: var(--ink); font-size: var(--t-sub); line-height: 1.5; }
.inbox-empty b { font-weight: 600; }
.inbox-empty span { color: var(--muted); }
.inbox-loading { padding: var(--s-2) var(--s-3); }
/* fetch-1950 (Core Inbox 3/5): the customer rows - the Clients intro, the venue dot before the event name, the last words on one navy
   line, the grey line with "waiting since" kept whole, the note above its row. Tokens only: the venue colour arrives as --vc, set from
   venueColor in bindInboxClients (inbox.js), never written into the markup. */
.inbox-panel .inbox-clients { padding: var(--s-2) 0 0; }
.inbox-panel .inbox-clients > h3 { margin: 0 var(--s-3) var(--s-1); }
.inbox-clients-intro { flex-wrap: wrap; gap: var(--s-1) var(--s-2); padding: 0 var(--s-3) var(--s-1); }
.inbox-clients-intro .bi-s { flex: 1 1 13.75rem; min-width: 0; color: var(--muted); font-size: var(--t-sub); line-height: 1.4; }
.inbox-ext { flex: none; padding: 0 var(--s-1); border: 1px solid var(--warn-fg); border-radius: var(--r-s); color: var(--warn-fg); font-size: var(--t-label); font-weight: 600; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; }
.inbox-ev { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2); align-items: start; }
.inbox-vdot { display: inline-block; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--vc, var(--muted)); }
.inbox-vdot--none { background: transparent; }
.inbox-panel .bell-item .inbox-last { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); font-size: var(--t-mid); line-height: 1.4; }
.inbox-panel .bell-item .bi-s em { font-style: normal; color: var(--navy); white-space: nowrap; }
.inbox-panel .inbox-clients > .row-note, .inbox-panel .inbox-clients > .stale-line, .inbox-panel .inbox-clients > .load-failed { margin: var(--s-1) var(--s-3) var(--s-2); }
/* fetch-1952 (Core Inbox 4/5): THE INBOX DOOR. The door in the top bar (the inbox glyph, one number), the panel under it above 900px
   with its head and the tab row (Team chat · Customers · Notices), the one phone sheet at 900px and under, and the presence dots on
   faces. Tokens only. Head and tabs stay put while the panel scrolls, so .bell-panel stays the one scroller older notices page on. */
.brandbar .shell-bell.icon-btn { width: var(--control-height-touch); min-width: var(--control-height-touch); height: var(--control-height-touch); min-height: var(--control-height-touch); padding: 0; border: 1px solid var(--brand-gold-mid); border-radius: var(--r-m); background: transparent; color: var(--surface-card); }
.brandbar .shell-bell.icon-btn[aria-expanded="true"] { border-color: var(--brand-gold-light); background: color-mix(in srgb, var(--brand-gold-light) 16%, transparent); color: var(--surface-card); }
.brandbar .shell-bell .bell-n { top: calc(-1 * var(--s-2)); right: calc(-1 * var(--s-2)); box-sizing: border-box; min-width: 1.25rem; height: 1.25rem; padding: 0 var(--s-1); border: 0; border-radius: 999px; background: var(--brand-gold-light); box-shadow: 0 0 0 2px var(--navy-dark); color: var(--navy-dark); font-size: var(--t-label); font-weight: 600; line-height: 1.25rem; text-align: center; font-variant-numeric: tabular-nums; }
.bellwrap .bell-panel.inbox-panel { top: calc(var(--control-height-touch) + var(--s-2)); width: min(25.25rem, calc(100vw - 2 * var(--s-3))); max-height: min(43rem, calc(100dvh - 5rem)); border-color: var(--line); border-radius: var(--r-l); }
.inbox-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: var(--s-2); box-sizing: border-box; height: 3.25rem; padding: var(--s-2) var(--s-2) 0 var(--s-4); background: var(--surface-card); }
.inbox-title { margin-right: auto; color: var(--ink); font-size: var(--t-section); font-weight: 600; }
.inbox-head .icon-btn { width: var(--control-height-touch); min-width: var(--control-height-touch); height: var(--control-height-touch); min-height: var(--control-height-touch); }
.inbox-tabs { position: sticky; top: 3.25rem; z-index: 3; display: flex; gap: var(--s-1); padding: 0 var(--s-3); overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--surface-card); }
.inbox-tab { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--control-height-touch); padding: 0 var(--s-2); border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--t-body); white-space: nowrap; cursor: pointer; }
.inbox-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }
.inbox-tab:hover { color: var(--ink); }
.inbox-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.inbox-tab-n { min-width: 1.125rem; padding: 0 var(--s-1); border-radius: 999px; background: var(--navy); color: var(--surface-card); font-size: var(--t-label); font-weight: 600; line-height: 1.125rem; text-align: center; font-variant-numeric: tabular-nums; }
.inbox-panel .inbox-ntools { justify-content: flex-end; padding: var(--s-2) var(--s-3) var(--s-1); border-bottom: 0; }
.inbox-panel .inbox-ntools .bell-view { order: 0; margin-right: auto; }
.inbox-online { padding: 0 var(--s-3) var(--s-2); }
/* New message is taller than the panel: Cancel and Send stay at its foot while the recipients scroll (the panel or the sheet scrolls) */
.inbox-panel .core-body[data-core-view="compose"] > .core-foot, .inbox-panel .core-body[data-core-view="compose"] > .core-confirm { position: sticky; bottom: 0; z-index: 2; margin-top: var(--s-2); padding: var(--s-2) 0; background: var(--surface-card); }
.inbox-team .inbox-loading, .inbox-team > .load-failed { margin: var(--s-2) var(--s-3); }
/* presence on a face: filled with the ok colour while online, a hollow ring while not; my own face and a group's carry none */
.core-online, .core-offline { position: relative; }
.core-online::after, .core-offline::after { content: ""; position: absolute; right: -2px; bottom: -2px; box-sizing: border-box; width: .7rem; height: .7rem; border-radius: 50%; }
.core-online::after { background: var(--ok-fg); box-shadow: 0 0 0 2px var(--surface-card); }
.core-offline::after { border: 2px solid var(--muted); background: var(--surface-card); box-shadow: 0 0 0 1px var(--surface-card); }
/* the one phone sheet: the whole screen, its head (Inbox, close), then the same tabs and bodies; a chat opened in Team chat takes the
   tab row's place and keeps its reply box at the foot */
#ntfSheetBg.cse-modal-bg { padding: 0; align-items: stretch; }
.cse-modal.inbox-sheet { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
.cse-modal.inbox-sheet > .cse-modal-head { padding: var(--s-2) var(--s-2) var(--s-1) var(--s-4); border-bottom: 0; }
.cse-modal.inbox-sheet > .cse-modal-head .icon-btn { width: var(--control-height-touch); min-width: var(--control-height-touch); height: var(--control-height-touch); min-height: var(--control-height-touch); }
.cse-modal.inbox-sheet > .cse-modal-body { padding: 0 0 env(safe-area-inset-bottom, 0px); }
.inbox-sheet .inbox-tabs { top: 0; }
.inbox-sheet.is-thread > .cse-modal-body { display: flex; flex-direction: column; overflow: hidden; }
.inbox-sheet.is-thread .bell-panel, .inbox-sheet.is-thread .inbox-body, .inbox-sheet.is-thread .inbox-team { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.inbox-sheet.is-thread .core-body { flex: 1 1 auto; min-height: 0; }

/* fetch-1956 (Core Inbox 5/5): your face is the account door - the last control in the top bar (acctFaceMenuHTML, inbox.js). A 44px hit
   area around a 36px round face with the gold ring of the mock's .av--me; the menu is cmenu's own list (portal.css: a desktop dropdown,
   full width with 44px rows at 640px and under), with the identity row (.cmenu-who) above My settings and Log out. Tokens only. */
.brandbar .acct-face { flex: 0 0 auto; }
.cmenu-trigger--face { display: inline-grid; place-items: center; width: var(--control-height-touch); min-width: var(--control-height-touch); height: var(--control-height-touch); padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.cmenu-trigger--face:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.acct-face-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--gold-dark); box-shadow: 0 0 0 2px var(--brand-gold-light); color: var(--surface-card); font-size: var(--t-sub); font-weight: 600; letter-spacing: .02em; line-height: 1; }
.acct-face-mark .acct-character { width: 100%; height: 100%; border: 0; background: var(--surface-card); }
.cmenu-trigger--face[aria-expanded="true"] .acct-face-mark, .cmenu-trigger--face:hover .acct-face-mark { box-shadow: 0 0 0 2px var(--surface-card); }
.cmenu-who { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2); margin-bottom: var(--s-1); border-bottom: 1px solid var(--hair); }
.cmenu-who .acct-face-mark { width: 40px; height: 40px; font-size: var(--t-body); }
.acct-who { display: grid; min-width: 0; }
.acct-who b { overflow: hidden; color: var(--ink); font-size: var(--t-body); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.acct-who small { overflow: hidden; color: var(--muted); font-size: var(--t-sub); text-overflow: ellipsis; white-space: nowrap; }
