/* ============================================================================
   THE CALM INBOX, IN THE PREVIEW (R-2131; the owner, 3 Dec 2026, D-1023: "okay build this now", pinned on "Not in this build").
   NEW PACE ONLY, and only for a person who switched the calm preview on: every rule starts with html[data-new-pace][data-calm]
   (set by public/js/99zzzz5-calm-frame.js on a wide screen with a mouse). Without the attribute this file changes nothing.
   The drawing (docs/design/CALM_SCREENS.md, pictures 3 and 4) gives the open email the room by taking the bands around it away:
     1. the list and the email start right under the top line;
     2. a row in the list is its three lines with less air; "Not in PACE" is not written on every stranger; labels are dots with
        a count on the preview's own line (public/js/99zzzz8-calm-inbox.js); the tick box stands where the round icon is, on
        the row the pointer is on; Automatic mail is one thin line;
     3. a tab's count of nothing is not drawn;
     4. the open email's actions are quiet icons on the subject's own line (each says its name on hover), its labels beside the subject;
     5. "4 earlier messages" is one thin line;
     6. the open email has no box of its own;
     7. the reply box is one line: its four smaller actions are icons on that line, and Send is a tint until the box is written in.
   Only sizes, places and weight change here: every button does what it did. The email's words stay in their sandboxed frame.
   Guard: test/calm-inbox-smoke.mjs.
   ============================================================================ */

/* ── 1. the panes start under the top line ── */
html[data-new-pace][data-calm] #mb-panes{margin-top:0}

/* ── 2. the list ── */
html[data-new-pace][data-calm] #mb-list .mb-row{padding:var(--np-space-2_5) var(--np-space-4)}
html[data-new-pace][data-calm] #mb-list .mb-day{padding:var(--np-space-1_5) var(--np-space-4) var(--np-space-1)}
html[data-new-pace][data-calm] #mb-list .ibx-kchip.is-new{display:none}
/* labels: dots and a count (or the one label's name), at the right end of the preview's line when nothing stands between them */
html[data-new-pace][data-calm] #mb-list .mb-lbls.is-calm{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:var(--np-space-1);min-width:0;margin-top:var(--np-space-0_5);
  font:500 var(--np-text-min)/20px var(--font);color:var(--text2);white-space:nowrap}
html[data-new-pace][data-calm] #mb-list .mb-lbls.is-calm .mb-lbl{min-width:0;padding:0;border:0;background:transparent;font:inherit;color:inherit;overflow:hidden;text-overflow:ellipsis}
html[data-new-pace][data-calm] #mb-list .mb-lbls.is-calm .mb-ldot{flex:none;width:8px;height:8px;border-radius:50%}
html[data-new-pace][data-calm] #mb-list .mb-lbls.is-calm .mb-ldot:not([style]){background:var(--text3)}
html[data-new-pace][data-calm] #mb-list .mb-lbls.is-calm .mb-lbl-n{margin-left:var(--np-space-0_5)}
html[data-new-pace][data-calm] #mb-list .mb-row-b:has(> .mb-prev + .mb-lbls.is-calm){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--np-space-2)}
html[data-new-pace][data-calm] #mb-list .mb-row-b:has(> .mb-prev + .mb-lbls.is-calm) > *{grid-column:1 / -1}
html[data-new-pace][data-calm] #mb-list .mb-row-b:has(> .mb-prev + .mb-lbls.is-calm) > .mb-prev{grid-column:1}
html[data-new-pace][data-calm] #mb-list .mb-row-b > .mb-prev + .mb-lbls.is-calm{grid-column:2;max-width:150px}
/* a row with a date badge (an interview, a start date) keeps the badge inside its own lines */
html[data-new-pace][data-calm] #mb-list .mb-row:has(.ibx-cal){min-height:112px}
/* the tick box: where the round icon is, on the row the pointer is on; on every row once one is ticked or Select is pressed */
html[data-new-pace][data-calm] #mb-list .mb-row > .mb-chk{flex:none;width:36px;height:36px;margin:var(--np-space-0_5) 0 0;align-items:center;justify-content:center}
html[data-new-pace][data-calm] #mb-root #mb-list .mb-row:hover > .mb-chk,
html[data-new-pace][data-calm] #mb-root:has(#mb-list .mb-row.picked) #mb-list .mb-row > .mb-chk{display:flex}
html[data-new-pace][data-calm] #mb-root #mb-list .mb-row:hover > .ibx-ic,
html[data-new-pace][data-calm] #mb-root:has(#mb-list .mb-row.picked) #mb-list .mb-row > .ibx-ic,
html[data-new-pace][data-calm] #mb-root:has(.mb-select-btn[aria-pressed="true"]) #mb-list .mb-row > .ibx-ic{display:none}
/* Automatic mail: one thin line (its name, how many, what they are); opened, its emails are listed under it as before */
html[data-new-pace][data-calm] .ibx-stack{margin:0;border-bottom:1px solid var(--line)}
html[data-new-pace][data-calm] .ibx-stack:not(.is-open)::before,
html[data-new-pace][data-calm] .ibx-stack:not(.is-open)::after{content:none}
html[data-new-pace][data-calm] .ibx-stack-head,
html[data-new-pace][data-calm] .ibx-stack.is-open .ibx-stack-head{min-height:36px;padding:var(--np-space-1) var(--np-space-4);gap:var(--np-space-2);border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-new-pace][data-calm] .ibx-stack-head > .ibx-ic{display:none}
html[data-new-pace][data-calm] .ibx-stack-b{flex-direction:row;align-items:center;gap:var(--np-space-2_5)}
html[data-new-pace][data-calm] .ibx-stack-t{flex:none;font:600 var(--np-text-md)/1.3 var(--font)}
html[data-new-pace][data-calm] .ibx-stack-s{min-width:0}
html[data-new-pace][data-calm] .ibx-stack-list{border:0;border-top:1px solid var(--line);border-radius:0}

/* the bar for ticked conversations: it stands in the top line, in the tabs' and tools' place (R-2157, at the end of this file) */

/* ── 3. a tab's count of nothing is not drawn (99b marks it) ── */
html[data-new-pace][data-calm] #mb-tabs .mb-ftab-n.is-zero{display:none}

/* ── 4. the open email's heading: the subject, its labels beside it, the actions as quiet icons at the right ── */
html[data-new-pace][data-calm] .ibx-th-head{padding:var(--np-space-2) var(--np-space-6) var(--np-space-1)}
html[data-new-pace][data-calm] .ibx-th-main{display:flex;flex-wrap:wrap;align-items:center;gap:var(--np-space-1) var(--np-space-3)}
html[data-new-pace][data-calm] .ibx-th-main > :first-child{flex:0 1 auto;min-width:0}
html[data-new-pace][data-calm] .ibx-th-main > .mb-lbls{flex:0 1 auto;margin-top:0}
html[data-new-pace][data-calm] .ibx-th-main > .mb-acts{flex:none;flex-wrap:nowrap;gap:0;margin:0 0 0 auto}
html[data-new-pace][data-calm] .ibx-th-main .mb-act-row{flex-wrap:nowrap;gap:0}
html[data-new-pace][data-calm] .ibx-th-main .mb-act span{display:none}
html[data-new-pace][data-calm] .ibx-th-main .mb-acts .btn.mb-act,
html[data-new-pace][data-calm] .ibx-th-main .mb-acts .mb-more > summary.btn{justify-content:center;width:36px;min-height:36px;height:36px;padding:0;border-color:transparent;background:transparent;box-shadow:none;color:var(--text2)}
html[data-new-pace][data-calm] .ibx-th-main .mb-acts .btn.mb-act.is-danger{color:var(--fx-red)}
html[data-new-pace][data-calm] .ibx-th-main .mb-acts .btn.mb-act:hover,
html[data-new-pace][data-calm] .ibx-th-main .mb-acts .mb-more > summary.btn:hover{background:var(--hover);color:var(--text)}
html[data-new-pace][data-calm] .ibx-th-main .mb-acts .btn.mb-act.is-danger:hover{color:var(--fx-red)}
html[data-new-pace][data-calm] .ibx-th-main .mb-act svg{width:18px;height:18px}
/* More: three dots (the word stays for a screen reader) */
html[data-new-pace][data-calm] .ibx-th-main .mb-acts .mb-more > summary.btn{font-size:0}
html[data-new-pace][data-calm] .ibx-th-main .mb-acts .mb-more > summary.btn::before{content:"\22EF";font:700 var(--np-text-2xl)/1 var(--font)}

/* ── 5. the earlier (and later) emails: one thin line ── */
html[data-new-pace][data-calm] #mb-read .mb-thread{padding-top:0;padding-bottom:var(--np-space-2)}
html[data-new-pace][data-calm] .ibx-earlier{min-height:30px;margin:0 0 var(--np-space-1);padding:0;gap:var(--np-space-2);border:0;border-radius:0;background:transparent;font:500 var(--np-text-sm)/1.3 var(--font);color:var(--text2)}
html[data-new-pace][data-calm] .ibx-earlier.is-later{margin:var(--np-space-1) 0 0}
html[data-new-pace][data-calm] .ibx-earlier-n{min-width:22px;height:22px;padding:0 var(--np-space-1_5);font-size:var(--np-text-min)}
html[data-new-pace][data-calm] .ibx-earlier::after{content:"";flex:1;min-width:var(--np-space-4);height:1px;background:var(--line)}
html[data-new-pace][data-calm] .ibx-earlier:hover{background:transparent;color:var(--text)}

/* ── 6. the open email: no box of its own ── */
html[data-new-pace][data-calm] #mb-read .mb-thread.solo .mb-msg.open{margin-bottom:var(--np-space-1_5);border:0;border-radius:0}
html[data-new-pace][data-calm] #mb-read .mb-thread.solo .mb-msg.open .mb-msg-h{padding:var(--np-space-1_5) 0}

/* ── 7. the reply box: one line. The four smaller actions stand on it as icons, between the mailbox and the window mark.
      While the box is written in (or holds words) the writing takes the full width and the same pieces stand under it, at the
      same place from the right, so nothing moves under the pointer. ── */
html[data-new-pace][data-calm] #mb-read #mb-comp:has(.ibx-reply){padding-top:0;padding-bottom:var(--np-space-2)}
html[data-new-pace][data-calm] .ibx-reply{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--np-space-1);padding:var(--np-space-1) var(--np-space-1_5) var(--np-space-1) var(--np-space-3_5)}
html[data-new-pace][data-calm] .ibx-reply > .ibx-reply-top,
html[data-new-pace][data-calm] .ibx-reply > .ibx-reply-row,
html[data-new-pace][data-calm] .ibx-reply > .ibx-reply-acts{display:contents}
html[data-new-pace][data-calm] .ibx-reply .ibx-inline-body,
html[data-new-pace][data-calm] .ibx-reply .ibx-reply-field{order:1;flex:1 1 200px;min-height:36px}
html[data-new-pace][data-calm] .ibx-reply .ibx-inline-body:not(:focus):placeholder-shown{height:36px;padding-top:var(--np-space-2);padding-bottom:var(--np-space-2)}
html[data-new-pace][data-calm] .ibx-reply .ibx-inline-body:focus,
html[data-new-pace][data-calm] .ibx-reply .ibx-inline-body:not(:placeholder-shown){flex-basis:100%}
html[data-new-pace][data-calm] .ibx-reply .ibx-from{order:2;flex:0 1 auto;min-width:0;max-width:30%;margin-right:var(--np-space-1_5)}
/* at rest it is one line on any width: the mailbox's name shortens first (the candidate picker, when open, keeps its own row) */
html[data-new-pace][data-calm] .ibx-reply:not(:has(.ibx-inline-body:focus)):not(:has(.ibx-inline-body:not(:placeholder-shown))):not(:has(> .ibx-prof)){flex-wrap:nowrap}
html[data-new-pace][data-calm] .ibx-reply:not(:has(.ibx-inline-body:focus)):not(:has(.ibx-inline-body:not(:placeholder-shown))) .ibx-from{max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-new-pace][data-calm] .ibx-reply .ibx-inline-body:not(:focus):placeholder-shown{min-width:120px}
html[data-new-pace][data-calm] .ibx-reply :is(.ibx-reply-all,.ibx-fwd,.ibx-attach,.ibx-prof-btn){order:3}
html[data-new-pace][data-calm] .ibx-reply .ibx-open-win{order:4}
html[data-new-pace][data-calm] .ibx-reply .ibx-reply-go{order:5;min-height:36px;margin-left:var(--np-space-1_5);padding:0 var(--np-space-3_5);font-size:var(--np-text-md)}
html[data-new-pace][data-calm] .ibx-reply > :not(.ibx-reply-top):not(.ibx-reply-row):not(.ibx-reply-acts){order:6;flex:1 1 100%}
html[data-new-pace][data-calm] .ibx-reply :is(.ibx-reply-all,.ibx-fwd,.ibx-attach,.ibx-prof-btn,.ibx-open-win){flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;min-height:36px;height:36px;padding:0;
  border-color:transparent;background:transparent;box-shadow:none;color:var(--text2)}
html[data-new-pace][data-calm] .ibx-reply :is(.ibx-reply-all,.ibx-fwd,.ibx-attach,.ibx-prof-btn,.ibx-open-win):hover{background:var(--hover);color:var(--text)}
html[data-new-pace][data-calm] .ibx-reply :is(.ibx-reply-all,.ibx-fwd,.ibx-attach,.ibx-prof-btn) > span{display:none}
/* Send is a tint while the box is empty and at rest: "New email" is the screen's one filled button */
html[data-new-pace][data-calm] .ibx-reply:not(:has(.ibx-inline-body:focus)):not(:has(.ibx-inline-body:not(:placeholder-shown))) .ibx-reply-go{background:var(--accent-l);border-color:transparent;color:var(--accent);box-shadow:none}

/* ── R-2157, the Inbox as drawn (picture 3; the owner, 4 Dec 2026: "Yeah built these small things") ── */
/* the list's first line: a tick that picks every conversation listed, and how many there are (99zzzz8 calmListCount). The tick
   stands over the rows' ticks and the words over the rows' words. "Select" leaves the top line: a tick shows on the row pointed
   at, on every row once one is ticked, and on a row while the keyboard is on its tick. */
html[data-new-pace][data-calm] #mb-root #mb-list .mb-selhead{display:flex;align-items:center;gap:0;min-height:32px;padding:0 var(--np-space-4);border-bottom:1px solid var(--line);background:transparent;
  font:500 var(--np-text-sm)/1.3 var(--font);color:var(--text2);cursor:default}
html[data-new-pace][data-calm] #mb-root #mb-list .mb-selhead input{flex:none;width:16px;height:16px;margin:0 var(--np-space-2_5);cursor:pointer}
html[data-new-pace][data-calm] #mb-root #mb-list .mb-selhead > span{display:flex;min-width:0;margin-left:var(--np-space-2_5)}
html[data-new-pace][data-calm] #mb-root #mb-tabs .mb-select-btn{display:none}
/* the keyboard's way to a row's tick: the tick is always in its row, unseen and out of the pointer's way, so Tab finds it (a tick that
   is not drawn at all cannot take the cursor); with the keyboard on it, it is seen in the picture's place */
html[data-new-pace][data-calm] #mb-root #mb-list .mb-row > .mb-chk{display:flex;position:absolute;opacity:0;pointer-events:none}
html[data-new-pace][data-calm] #mb-root #mb-list .mb-row:hover > .mb-chk,
html[data-new-pace][data-calm] #mb-root:has(#mb-list .mb-row.picked) #mb-list .mb-row > .mb-chk,
html[data-new-pace][data-calm] #mb-root #mb-list .mb-row:has(> .mb-chk input:focus-visible) > .mb-chk{position:static;opacity:1;pointer-events:auto}
html[data-new-pace][data-calm] #mb-root #mb-list .mb-row:has(> .mb-chk input:focus-visible) > .ibx-ic{display:none}
/* the bar for ticked conversations stands in the top line, in the tabs' and tools' place (99zzzz8 calmBarInLine), so the list does not
   move: quiet words, Delete in red. Where the tools are a quiet row under the line (a narrower computer) the bar takes that row,
   from its left end, and the tabs stay in the line. */
html[data-new-pace][data-calm] :is(#mb-tabs,#mb-toolbar) .mb-bulk{flex:none;display:flex;flex-wrap:nowrap;align-items:center;gap:var(--np-space-0_5);min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-new-pace][data-calm] :is(#mb-tabs,#mb-toolbar) .mb-bulk .mb-bulk-n{flex:none;margin-right:var(--np-space-2);font:600 var(--np-text-md)/1 var(--font);color:var(--text);white-space:nowrap}
html[data-new-pace][data-calm] #content :is(#mb-tabs,#mb-toolbar) .mb-bulk .btn.btn-danger{color:var(--fx-red)}
/* that row is as tall as the tools' row it stands in place of (the tools' switch is 44 high), so the list under it stays where it is;
   test/calm-inbox-smoke.mjs fails when the two heights part */
html[data-new-pace][data-calm] #content #mb-toolbar.calm-row:has(> .mb-bulk){justify-content:flex-start;min-height:var(--np-space-11)}
html[data-new-pace][data-calm] #mb-root #mb-toolbar.calm-row:empty{display:none}
/* the open email's sender line ends with a reply icon and three dots (99zzzz8 calmMsgActs) */
html[data-new-pace][data-calm] #mb-read .mb-msg-acts{flex:none;align-self:flex-end;display:flex;align-items:center;gap:0;margin:calc(-1 * var(--np-space-2)) 0 calc(-1 * var(--np-space-2)) calc(-1 * var(--np-space-1))}
html[data-new-pace][data-calm] #mb-read .mb-msg-acts .mb-more-menu{left:auto;right:0;min-width:160px;padding:var(--np-space-1_5);border:0;border-radius:var(--np-round-xl);background:var(--card-solid);box-shadow:var(--fx-float)}
html[data-new-pace][data-calm] #mb-read .mb-msg-acts .mb-more-item{min-height:36px;padding:0 var(--np-space-3);border-radius:var(--np-round-md);font:500 var(--np-text-md)/1.2 var(--font);color:var(--text)}
html[data-new-pace][data-calm] #mb-read .mb-msg-acts .btn{justify-content:center;width:36px;min-height:36px;height:36px;padding:0;border-color:transparent;background:transparent;box-shadow:none;color:var(--text2)}
html[data-new-pace][data-calm] #mb-read .mb-msg-acts .btn:hover{background:var(--hover);color:var(--text)}
html[data-new-pace][data-calm] #mb-read .mb-msg-acts .btn svg{width:18px;height:18px}
html[data-new-pace][data-calm] #mb-read .mb-msg-acts .mb-more > summary.btn{font-size:0}
html[data-new-pace][data-calm] #mb-read .mb-msg-acts .mb-more > summary.btn::before{content:"\22EF";font:700 var(--np-text-2xl)/1 var(--font)}
