/* ============================================================================
   THE CALM TODAY, IN THE PREVIEW (R-2143, R-2146; the owner, 3 Dec 2026, D-1023: "okay build this now").
   NEW PACE ONLY, and only for a person who has the calm screens 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 20 and 26). Today was already one of the calmer screens; this is a tidy-up:
     1. the kinds (All, Replies, Candidates, Reminders) are quiet words on the list's first line, the one in use a tint;
     2. a thing is 50px; the open one holds its sentence as plain words and the screen's one filled button,
        "Why it is here" a quiet word;
     3. the lines under the list are one line;
     4. the cards under the list are compact (by subject for a manager: public/js/99zzzz9-calm-today.js), so they fit on the
        first screen;
     5. the column at the right is one card in three parts with small headings; the calendar says its time zone once (99zzzz9);
        the line "What has come in today, in a sentence." is not written.
   Only sizes, places and weight change here: every button does what it did.
   Guard: test/calm-today-smoke.mjs.
   ============================================================================ */

/* ── 1. the kinds: quiet words ── */
html[data-new-pace][data-calm] .ntd .ntd-kinds{gap:var(--np-space-1);padding:var(--np-space-1) var(--np-space-3);border-bottom:1px solid var(--line)}
html[data-new-pace][data-calm] .ntd .ntd-kinds button{min-height:32px;padding:0 var(--np-space-2_5);border-radius:var(--np-round-md);border-color:transparent;background:transparent;box-shadow:none;
  font-weight:500;color:var(--fx-text2)}
html[data-new-pace][data-calm] .ntd .ntd-kinds button[aria-pressed="true"]{background:var(--accent-l);border-color:transparent;box-shadow:none;font-weight:700;color:var(--accent)}
html[data-new-pace][data-calm] .ntd .ntd-kinds button[aria-pressed="true"] span{color:var(--accent)}

/* ── 2. a thing, and the open one ── */
html[data-new-pace][data-calm] .ntd .ntd-head{min-height:50px;padding-top:var(--np-space-1);padding-bottom:var(--np-space-1)}
html[data-new-pace][data-calm] .ntd .ntd-done .ntd-head{min-height:var(--np-h-control)}
html[data-new-pace][data-calm] .ntd .ntd-in{gap:var(--np-space-2);padding:0 var(--np-space-5) var(--np-space-3)}
html[data-new-pace][data-calm] .ntd .ntd-quote{padding:0;border:0;border-radius:0;background:transparent;font-size:var(--np-text-md)}
html[data-new-pace][data-calm] .ntd .ntd-acts{gap:var(--np-space-1_5)}
html[data-new-pace][data-calm] .ntd .ntd-acts .ntd-btn,
html[data-new-pace][data-calm] .ntd .ntd-acts .ntd-later{min-height:36px;font-size:var(--np-text-md)}
html[data-new-pace][data-calm] .ntd .ntd-acts .ntd-btn:not(.is-main){padding:0 var(--np-space-3);border-color:transparent;background:transparent;box-shadow:none}
html[data-new-pace][data-calm] .ntd .ntd-acts .ntd-btn:not(.is-main):not(.is-quiet){color:var(--fx-text)}
html[data-new-pace][data-calm] .ntd .ntd-acts .ntd-btn:not(.is-main):hover,
html[data-new-pace][data-calm] .ntd .ntd-acts .ntd-later:hover{background:var(--hover);filter:none}
html[data-new-pace][data-calm] .ntd .ntd-empty{padding-top:var(--np-space-3);padding-bottom:var(--np-space-3)}

/* ── 3. under the list: one line (where you are in it, then what lies outside the days you look at) ── */
html[data-new-pace][data-calm] .ntd .ntd-pane{display:flex;flex-wrap:wrap;align-items:stretch}
html[data-new-pace][data-calm] .ntd .ntd-pane > *{flex:0 0 100%;min-width:0}
html[data-new-pace][data-calm] .ntd .ntd-pane > .ntd-foot{flex:1 1 auto;flex-wrap:nowrap;min-height:36px;padding:0 var(--np-space-5);gap:var(--np-space-2)}
html[data-new-pace][data-calm] .ntd .ntd-pane > .ntd-foot > span{flex:0 1 auto;font-size:var(--np-text-sm)}
html[data-new-pace][data-calm] .ntd .ntd-pane > .ntd-foot > span:empty{display:none}
html[data-new-pace][data-calm] .ntd .ntd-pane > .ntd-foot + .ntd-foot{flex:999 1 auto}
html[data-new-pace][data-calm] .ntd .ntd-pane > .ntd-foot .ntd-btn{min-height:32px;font-size:var(--np-text-sm)}

/* ── 4. the cards under the list: compact, their name a small heading ── */
html[data-new-pace][data-calm] .ntd .ntd-cols,
html[data-new-pace][data-calm] .ntd .ntd-cols > .ntd-main,
html[data-new-pace][data-calm] .ntd .ntd-band{gap:var(--np-space-2_5)}
html[data-new-pace][data-calm] .ntd .ntd-pad{padding:var(--np-space-2_5) var(--np-space-5)}
html[data-new-pace][data-calm] .ntd .ntd-band .ntd-card h2,
html[data-new-pace][data-calm] .ntd .ntd-rail .ntd-card h2{font:700 var(--np-text-min)/1.4 var(--font);letter-spacing:.6px;text-transform:uppercase;color:var(--fx-text2)}
html[data-new-pace][data-calm] .ntd .ntd-band .ntd-card h2 small{margin-left:var(--np-space-1);font:400 var(--np-text-sm)/1.4 var(--font);letter-spacing:0;text-transform:none;color:var(--fx-text3)}
html[data-new-pace][data-calm] .ntd .ntd-facts{margin-top:var(--np-space-1)}
html[data-new-pace][data-calm] .ntd .ntd-facts > div{padding:var(--np-space-1) 0}
html[data-new-pace][data-calm] .ntd .ntd-facts dt,
html[data-new-pace][data-calm] .ntd .ntd-facts dd{font-size:var(--np-text-md)}
html[data-new-pace][data-calm] .ntd [data-today-counts] .td-tile,
html[data-new-pace][data-calm] .ntd [data-today-counts] .dash-tile{padding:var(--np-space-1) 0}
html[data-new-pace][data-calm] .ntd .td-pipe{margin-top:var(--np-space-1_5);gap:var(--np-space-1)}
html[data-new-pace][data-calm] .ntd .td-pipe .td-pline{font-size:var(--np-text-md)}
/* by subject (99zzzz9): where things stand now is one line, its name at the left; the number said in the week's fact is not said twice */
html[data-new-pace][data-calm] .ntd .calm-subj .ntd-facts + .td-pipe{padding-top:var(--np-space-1_5);border-top:1px solid var(--line)}
html[data-new-pace][data-calm] .ntd .calm-subj .td-prow{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:var(--np-space-0_5) var(--np-space-3)}
html[data-new-pace][data-calm] .ntd .calm-subj .td-prow .td-plabel{flex:0 0 96px;font-weight:500}
html[data-new-pace][data-calm] .ntd .calm-subj .td-prow .td-pline{flex:1 1 0;min-width:0}
html[data-new-pace][data-calm] .ntd .calm-subj .td-prow:not([data-today-emails]) .td-plabel::after{content:" now"}
html[data-new-pace][data-calm] .ntd .calm-subj:has(.ntd-facts) [data-today-emails] .td-pline > :is(a,span):nth-child(-n+2):not(:last-child){display:none}
html[data-new-pace][data-calm] .ntd .calm-subj [data-today-emails] .td-pline{flex:0 1 auto}
html[data-new-pace][data-calm] .ntd .calm-subj .td-prow > .fs-12{flex:1 1 0;min-width:0}

/* ── 5. the column at the right: one card in parts ── */
html[data-new-pace][data-calm] .ntd .ntd-rail{gap:0;border:1px solid var(--glass-brd);border-radius:var(--np-round-xl);background:var(--card);overflow:hidden}
html[data-new-pace][data-calm] .ntd .ntd-rail > .ntd-card{border:0;border-radius:0;background:transparent}
html[data-new-pace][data-calm] .ntd .ntd-rail > .ntd-card + .ntd-card{border-top:1px solid var(--line)}
html[data-new-pace][data-calm] .ntd .ntd-rail h3{margin-top:var(--np-space-2);font-size:var(--np-text-sm)}
html[data-new-pace][data-calm] .ntd .ntd-rail .ntd-hint{font-size:var(--np-text-sm)}
html[data-new-pace][data-calm] .ntd [data-today-schedule]{position:relative}
html[data-new-pace][data-calm] .ntd .ntd-zone{position:absolute;top:var(--np-space-3);right:var(--np-space-5);margin:0;font:400 var(--np-text-min)/1.4 var(--font);color:var(--fx-text3)}
html[data-new-pace][data-calm] .ntd .ntd-kvs{margin-top:var(--np-space-1)}
html[data-new-pace][data-calm] .ntd .ntd-kv{gap:var(--np-space-3);padding:var(--np-space-1) 0}
html[data-new-pace][data-calm] .ntd .ntd-kv + .ntd-kv{border-top:0}
html[data-new-pace][data-calm] .ntd .ntd-kv > b{min-width:48px;font-size:var(--np-text-md)}
html[data-new-pace][data-calm] .ntd .ntd-kv .ntd-tx b{font-size:var(--np-text-md)}
html[data-new-pace][data-calm] .ntd .ntd-kv .ntd-tx small{font-size:var(--np-text-sm)}
/* a later entry: the day and time at the left, what and who beside it */
html[data-new-pace][data-calm] .ntd .ntd-kv.td-later-row{flex-wrap:nowrap}
html[data-new-pace][data-calm] .ntd .ntd-kv.td-later-row > b{flex:0 0 126px;font:400 var(--np-text-sm)/1.5 var(--font)}
html[data-new-pace][data-calm] .ntd .ntd-all,
html[data-new-pace][data-calm] .ntd .ntd-go{min-height:32px;margin-top:var(--np-space-1);font-size:var(--np-text-sm)}
html[data-new-pace][data-calm] .ntd .ntd-prog{height:4px;margin-top:var(--np-space-2)}
html[data-new-pace][data-calm] .ntd .ntd-what{display:none}
html[data-new-pace][data-calm] .ntd [data-today-briefing] .briefing-text{font-size:var(--np-text-md)}

/* ── R-2157, Today as drawn (picture 20; the owner, 4 Dec 2026: "Yeah built these small things") ──
   A thing's chip stands in a column of its own, so every name starts at the same place whatever the chip says, and the open
   thing's sentence and actions stand under its name, not under its chip. The column fits the longest chip ("They promised");
   a longer one would widen the column for its own row only, never run under the name. */
html[data-new-pace][data-calm] .ntd{--ntd-chip-col:120px}
html[data-new-pace][data-calm] .ntd .ntd-row:not(.ntd-done) .ntd-head{display:grid;grid-template-columns:minmax(var(--ntd-chip-col),max-content) minmax(0,1fr);grid-auto-flow:column;grid-auto-columns:auto}
html[data-new-pace][data-calm] .ntd .ntd-row:not(.ntd-done) .ntd-chip{justify-self:start}
html[data-new-pace][data-calm] .ntd .ntd-row:not(.ntd-done) .ntd-in{padding-left:calc(var(--np-space-5) + var(--ntd-chip-col) + var(--np-space-3_5))}
