/* ============================================================================
   THE INBOX, CORRECTED — the owner's list of 18 Nov 2026 (D-0471; R-694 … R-699). NEW PACE ONLY: every rule starts with
   html[data-new-pace]. Script: public/js/99b-inbox-reader.js (chips, the open email's actions, Restore), 99zs-inbox-more.js.
     · an unread row is a different shade, with a stripe in the person's colour at its left edge — read rows stay calm;
     · the open email's actions are a row of buttons under its subject (Archive · Delete · Mark unread · Label, or Restore in Trash).
   ============================================================================ */
html[data-new-pace] #mb-list .mb-row.unread:not(.on){background:color-mix(in srgb,var(--fx-main) 8%,transparent);box-shadow:inset 3px 0 0 var(--fx-main)}
html[data-new-pace] #mb-list .mb-row.unread .mb-when{color:var(--text);font-weight:600}
html[data-new-pace] #mb-list .mb-row.unread .mb-prev{color:var(--text)}

html[data-new-pace] .ibx-th-main > .mb-acts{grid-column:1 / -1;grid-row:auto;display:flex;flex-wrap:wrap;align-items:center;gap:var(--np-space-2);margin-top:var(--np-space-2_5)}
html[data-new-pace] .ibx-th-main .mb-act-row{display:flex;flex-wrap:wrap;gap:var(--np-space-2)}
html[data-new-pace] .ibx-th-main .mb-acts .btn.mb-act,html[data-new-pace] .ibx-th-main .mb-acts .mb-more>summary.btn{min-height:var(--np-h-control-sm);padding:0 var(--np-space-3);display:inline-flex;align-items:center;gap:var(--np-space-1_5);
  font:600 var(--np-text-sm)/1 var(--font)}
html[data-new-pace] .ibx-th-main .mb-act svg{width:16px;height:16px;flex:none}
html[data-new-pace] .ibx-th-main .mb-act.is-danger{color:var(--fx-red)}
/* a short screen: the email keeps its room — the same buttons, as icons, on the subject's own line (each says its name on hover) */
@media (max-height:820px) and (min-width:861px){
  html[data-new-pace] .ibx-th-main > .mb-acts{grid-column:2;grid-row:1;margin-top:0;flex-wrap:nowrap}
  html[data-new-pace] .ibx-th-main .mb-act-row{flex-wrap:nowrap}
  html[data-new-pace] .ibx-th-main .mb-act span{display:none}
  html[data-new-pace] .ibx-th-main .mb-acts .btn.mb-act{padding:0 var(--np-space-2_5)}
}
html[data-new-pace] .ibx-th-main .mb-more-ph{display:none}
@media (max-width:860px){   /* a phone: the email keeps the room — the buttons fold into More (the same actions, .mb-more-ph) */
  html[data-new-pace] .ibx-th-main .mb-act-row{display:none}
  html[data-new-pace] .ibx-th-main .mb-more-ph{display:flex}
  /* Back, "About …" and More share the top row; the subject has the full width under them, then the labels (R-910: More used to sit
     in the subject's own cell and covered its words — "Re: Senior Project Manager" read "Re: Senior Pro More") */
  html[data-new-pace] .ibx-head{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"back . about acts" "title title title title" "labels labels labels labels" "body body body body"}
  html[data-new-pace] .ibx-th-main > .mb-acts,html[data-new-pace] .ibx-about-btn{margin-top:0;min-width:0}
  html[data-new-pace] .ibx-th-main > .mb-acts{grid-area:acts}
  html[data-new-pace] .ibx-th-main > :first-child{margin-top:var(--np-space-2)}
  html[data-new-pace] .ibx-about-btn{max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* the chips row is one chip longer (Pending): the mailbox's tools take the line under it a little sooner (np-inbox.css's two widths, + one chip) */
@container ibx-root (max-width:1190px){
  html[data-new-pace] #mb-tabs{grid-column:1 / -1}
  html[data-new-pace] #mb-toolbar{grid-column:1 / -1;grid-row:2;margin-top:var(--np-space-2_5)}
  html[data-new-pace] #mb-toolbar .tbar{justify-content:flex-start}
}
@container ibx-root (max-width:1420px){
  html[data-new-pace] #mb-root:has(#mb-toolbar select[onchange^="mbSelectAccount"]) > #mb-tabs{grid-column:1 / -1}
  html[data-new-pace] #mb-root:has(#mb-toolbar select[onchange^="mbSelectAccount"]) > #mb-toolbar{grid-column:1 / -1;grid-row:2;margin-top:var(--np-space-2_5)}
  html[data-new-pace] #mb-root:has(#mb-toolbar select[onchange^="mbSelectAccount"]) > #mb-toolbar .tbar{justify-content:flex-start}
}

/* No mailbox of one's own (R-733, 99zzg): the Email page's chips above the card; for an RA lead / admin, the way to the team's sending. */
html[data-new-pace] .ibx-nobox-tabs.mb-ftabs{margin:var(--np-space-4) 0 0}   /* the chips' look is np-inbox.css's, shared */
html[data-new-pace] .ibx-nobox-team{display:flex;flex-direction:column;align-items:center;gap:var(--np-space-3);margin-bottom:var(--np-space-3)}
html[data-new-pace] .ibx-nobox-team p{margin:0;color:var(--text)}
/* "Rewrite with AI" on the New message window's Subject line (R-981, 99zzzb) — the label row carries it on the right */
html[data-new-pace] [data-win="mailCompose"] .mb-subj-ai{float:right;margin-top:-4px}
html[data-new-pace] [data-win="mailCompose"] .mb-subj-ai-note{margin:var(--np-space-1_5) 0 0;display:flex;align-items:center;gap:var(--np-space-2)}
/* R-2071: the Signature menu under New message / Reply / Forward — every signature by its title, the chosen one shown under it */
html[data-new-pace] .mb-sig-row{margin-top:var(--np-space-2_5);display:flex;align-items:flex-start;gap:var(--np-space-2);flex-wrap:wrap}
html[data-new-pace] .mb-sig-lbl{padding-top:var(--np-space-1_5)}
html[data-new-pace] .mb-sig-sel{width:auto;max-width:100%;padding:var(--np-space-1) var(--np-space-2)}
html[data-new-pace] .mb-sig-show{flex:1;min-width:200px;border:1px solid var(--border);border-radius:var(--np-round-md);padding:var(--np-space-2) var(--np-space-2_5);background:var(--card-solid);max-height:120px;overflow:auto}
html[data-new-pace] .mb-sig-show table{width:auto;table-layout:auto}
html[data-new-pace] .mb-sig-edit{align-self:center}
