/* ============================================================================
   THE CALM FRAME, AS A PREVIEW (R-2151; the owner, 3 Dec 2026, D-1019: "Build the top line on every screen"). NEW PACE ONLY, and
   only for a person who switched the preview on: every rule starts with html[data-new-pace][data-calm]. The attribute is set by
   public/js/99zzzz5-calm-frame.js, on a wide screen with a mouse only — so nothing here needs a width or a hover condition, and
   a phone keeps today's frame. Without the attribute this file changes nothing.
     1. the menu is a slim strip: the logo, the plus, each place as its icon with its name under it, the person's initials;
     2. the top of every page is one line: the page's name, its own tabs, its tools, its one main button, the search, the bell,
        the time. The sentence under the name opens when the pointer rests on the name;
     3. the page's own tabs and tools are drawn in that line: they stay the page's own nodes (their handlers, fields and menus
        work as before); the script marks them .calm-lift and gives them the place of the line's free middle. There they are
        quiet words: the one in use is underlined. A part with no room there (a narrower computer) stays in the page as one
        quiet row of the same words (.calm-row);
     4. Admin: a role's people open in the page under the role cards, as a tab, not as a window (R-2152, D-1020).
   The owner's rule 2 (one FILLED button per screen): the plus and the place you are on are a light tint, never a filled button.
   Guard: test/calm-frame-smoke.mjs.
   ============================================================================ */

/* ── 1. the menu, a slim strip ── */
html[data-new-pace][data-calm]{--rail-w:84px;--rail-w-open:84px}
html[data-new-pace][data-calm] body.ui-kit #sidebar{width:var(--rail-w);display:flex;flex-direction:column;align-items:center;transition:none}
html[data-new-pace][data-calm] body.ui-kit #sidebar ~ #main,html[data-new-pace][data-calm] body.ui-kit #sidebar.pinned ~ #main{margin-left:calc(var(--rail-w) + var(--np-space-5))}
html[data-new-pace][data-calm] body.ui-kit #sidebar .sb-brand,html[data-new-pace][data-calm] body.ui-kit #sidebar.pinned .sb-brand:has(.rail-script){width:100%;justify-content:center;padding:var(--np-space-3_5) 0 var(--np-space-2)}
html[data-new-pace][data-calm] body.ui-kit #sidebar .sb-brand .rail-mark{display:none}
html[data-new-pace][data-calm] body.ui-kit #sidebar .sb-brand .rail-word.rail-script{display:block;width:auto;opacity:1;margin:0}
html[data-new-pace][data-calm] body.ui-kit #sidebar .rail-word.rail-script .pace-script{width:70px;height:23px}
html[data-new-pace][data-calm] body.ui-kit #sidebar .rail-toggle{display:none}
/* the plus: a light tint (rule 2), the word "New" kept for a screen reader by the button's own text at size 0 */
html[data-new-pace][data-calm] #sidebar .side-new{padding:var(--np-space-1) 0 var(--np-space-2)}
html[data-new-pace][data-calm] #sidebar .side-new .tb-new{width:40px;height:var(--np-h-control-sm);padding:0;gap:0;font-size:0;display:flex;align-items:center;justify-content:center;
  background:var(--accent-l);color:var(--accent);border:1px solid color-mix(in srgb,var(--fx-acc) 22%,transparent);border-radius:var(--np-round-lg);box-shadow:none}
html[data-new-pace][data-calm] #sidebar .side-new .tb-new::before{content:'';width:16px;height:16px;flex:none;
  background:linear-gradient(currentColor,currentColor) center/100% 2.5px no-repeat,linear-gradient(currentColor,currentColor) center/2.5px 100% no-repeat}
html[data-new-pace][data-calm] #sidebar .side-new .tb-caret{display:none}
/* each place: its icon, its name under it */
html[data-new-pace][data-calm] body.ui-kit #sidebar .sb-nav{width:100%;padding:0 var(--np-space-1_5);flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}
html[data-new-pace][data-calm] body.ui-kit #sidebar .sb-lbl{display:none}
html[data-new-pace][data-calm] body.ui-kit #sidebar .sb-nav .nav-item,html[data-new-pace][data-calm] body.ui-kit #sidebar .sb-setup .nav-item{position:relative;width:100%;height:52px;margin:0 0 var(--np-space-0_5);padding:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--np-space-0_5);border-radius:var(--np-round-lg);color:var(--text2);font-weight:500}
html[data-new-pace][data-calm] body.ui-kit #sidebar .nav-item .nav-icon{flex:none;width:auto;height:auto;margin:0;justify-content:center;color:inherit;opacity:1}
html[data-new-pace][data-calm] body.ui-kit #sidebar .nav-item .nav-icon svg{width:19px;height:19px}
html[data-new-pace][data-calm] body.ui-kit #sidebar .nav-item .nav-txt{display:block;flex:none;width:auto;max-width:100%;opacity:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font:inherit;font-size:var(--np-text-min);line-height:1.2;color:inherit}
html[data-new-pace][data-calm] body.ui-kit #sidebar .nav-item.active,html[data-new-pace][data-calm] body.ui-kit #sidebar .nav-item.on{background:var(--accent-l);color:var(--accent);box-shadow:none;font-weight:700}
html[data-new-pace][data-calm] body.ui-kit #sidebar .nav-item.active .nav-icon{color:var(--accent)}
html[data-new-pace][data-calm] body.ui-kit #sidebar .nav-badge{position:absolute;top:3px;right:11px;left:auto;box-sizing:border-box;min-width:18px;height:18px;padding:0 var(--np-space-1);margin:0;
  border-radius:var(--np-round-pill);border:2px solid var(--card-solid);background:var(--fx-main);color:var(--fx-on-main);font:700 var(--np-text-min)/14px var(--font);text-align:center;overflow:visible}
/* the person: their initials; the name's menu opens beside the strip */
html[data-new-pace][data-calm] body.ui-kit #sidebar .sb-footer{width:100%;border-top:0;padding:0 var(--np-space-1_5) var(--np-space-2)}
html[data-new-pace][data-calm] body.ui-kit #sidebar .me-card .user-row{justify-content:center;padding:0;height:var(--np-h-control)}
html[data-new-pace][data-calm] body.ui-kit #sidebar .me-card .user-meta,html[data-new-pace][data-calm] body.ui-kit #sidebar .me-setup .nav-txt{display:none}
html[data-new-pace][data-calm] body.ui-kit #sidebar .me-menu{left:calc(100% + var(--np-space-2));bottom:0}

/* ── 2. the top of every page: one line ── */
html[data-new-pace][data-calm] #topbar,html[data-new-pace][data-calm] body.ui-kit #topbar{display:flex;align-items:center;gap:var(--np-space-1_5);height:58px;min-height:0;
  padding:var(--np-space-2_5) var(--np-space-5) 0 var(--np-space-2);row-gap:0;background:transparent;border:0;box-shadow:none}
html[data-new-pace][data-calm] body.ui-kit #topbar .tb-head{position:relative;flex:none;align-self:stretch;display:flex;flex-direction:row;align-items:center;gap:0;padding:0;margin-right:var(--np-space-3)}
html[data-new-pace][data-calm] body.ui-kit #topbar .tb-title{font:700 var(--np-text-logo)/1.2 var(--font);letter-spacing:-.01em;white-space:nowrap}
/* the sentence under the name: there when the pointer rests on the name (a float is opaque) */
html[data-new-pace][data-calm] #topbar .tb-sub{display:none;position:absolute;left:0;top:calc(100% - 4px);z-index:60;margin:0;padding:var(--np-space-2) var(--np-space-3);width:max-content;max-width:520px;
  background:var(--card-solid);border-radius:var(--np-round-md);box-shadow:var(--fx-float);font:400 var(--np-text-sm)/1.4 var(--font);color:var(--text2)}
html[data-new-pace][data-calm] #topbar .tb-head:hover .tb-sub{display:block}
/* Find leads writes "Leads / Find leads" over its name; in the line the tab "My leads" beside the name is that way back */
html[data-new-pace][data-calm] #topbar .tb-title .fl-crumb{display:none}
/* the page's own tabs and tools take the middle; the main button, the search, the bell and the time follow */
html[data-new-pace][data-calm] #topbar .calm-band{flex:1 1 0;min-width:0;align-self:stretch;display:flex;align-items:stretch;gap:var(--np-space-2)}
html[data-new-pace][data-calm] #topbar .tb-chips{flex:none;margin:0}
html[data-new-pace][data-calm] #topbar .tb-act{flex:none;align-self:center;margin:0 var(--np-space-1)}
html[data-new-pace][data-calm] #topbar .tb-act .btn{min-height:0;height:36px;padding:0 var(--np-space-3_5);font-size:var(--np-text-md);white-space:nowrap}
html[data-new-pace][data-calm] #topbar .tb-search{flex:none;width:196px;max-width:none;height:36px;margin:0;background:transparent;border-color:transparent;box-shadow:none}
html[data-new-pace][data-calm] #topbar .tb-search:hover{border-color:var(--border2)}
html[data-new-pace][data-calm] #topbar .tb-search:focus-within,html[data-new-pace][data-calm] #topbar .tb-search.is-open{background:var(--card-solid);border-color:var(--border2)}
html[data-new-pace][data-calm] #topbar .tb-search input{font-size:var(--np-text-md)}
/* R-2161 (the owner's pick D-1033, 4 Dec 2026: "Search as an icon only"). On a laptop (under 1600 across) the search is an icon, 36 square,
   and the line has 160 more room. Pressed (or Ctrl K) it is the field again, 280 wide, laid OVER the line: the negative margin takes back
   what it grew by, so it still stands on 36 of the line and nothing beside it moves. When the person leaves it, it is the icon again; words
   left in it wait behind the icon, which is then tinted. A screen 1600 or wider keeps the field. Guard: test/search-box-smoke.mjs. */
@media (max-width:1599px){
  html[data-new-pace][data-calm] #topbar .tb-search:not(:focus-within,.is-open){width:36px;padding:0;justify-content:center}
  html[data-new-pace][data-calm] #topbar .tb-search:not(:focus-within,.is-open) input{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0;cursor:pointer}
  html[data-new-pace][data-calm] #topbar .tb-search:not(:focus-within,.is-open) .gs-kbd{display:none}
  html[data-new-pace][data-calm] #topbar .tb-search:not(:focus-within,.is-open):has(input:not(:placeholder-shown)) .gs-ic{color:var(--accent)}
  html[data-new-pace][data-calm] #topbar .tb-search:is(:focus-within,.is-open){width:280px;margin-left:-244px}
}
html[data-new-pace][data-calm] #topbar .tb-right{flex:none;margin:0 !important;gap:var(--np-space-1) !important}
html[data-new-pace][data-calm] #topbar .tb-theme{display:none}   /* light or dark is on My Profile (D-0430) */
html[data-new-pace][data-calm] #topbar .nb-bell{width:36px;height:36px}
html[data-new-pace][data-calm] #topbar .np-now{height:36px;padding:0 var(--np-space-2)}
html[data-new-pace][data-calm] #topbar .np-now .pace-digits{height:20px}

/* ── 3. the page's own tabs and tools, drawn in the line ──
   Each part stays in the page; it is drawn over the line's free middle (the script says where: its left and its width). The line
   itself lets the pointer through there. Inside a part: its tabs are quiet words (the one in use underlined), its tools quiet
   words, its field a quiet field; a filled button stays the one filled button. */
html[data-new-pace][data-calm] #topbar{pointer-events:none}
html[data-new-pace][data-calm] #topbar > *{pointer-events:auto}
html[data-new-pace][data-calm] #topbar > .calm-band,html[data-new-pace][data-calm] #topbar > .tb-sky{pointer-events:none}
html[data-new-pace][data-calm] #content .calm-lift{position:fixed;z-index:40;top:10px;height:48px;box-sizing:border-box;min-width:0;margin:0;padding:0;
  display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:var(--np-space-2);background:transparent;border:0;border-radius:0;box-shadow:none}
/* the groups inside a part stand in the one row */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.np-chips,.nj-chips,.nj-tools,.ld-chips,.ld-tools,.tbar,.tbar-right,.cl-chiprow,.pgtabs-right,.mb-ftabs,.fl-mains,.np-seg,.pl-tools,.lsw){display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;flex:0 0 auto;order:0;width:auto;min-width:0;margin:0;padding:0;gap:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.nj-tools,.ld-tools,.tbar-right,.pgtabs-right,.fl-mains,.pl-tools){gap:var(--np-space-0_5);margin-left:auto;padding-left:var(--np-space-2)}
/* a part's group that the frame sets at the line's end (99zzzz5 ENDS, R-2183) is placed before its part is: it has the group's look by itself */
html[data-new-pace][data-calm] #content .pgtabs-right.calm-lift{gap:var(--np-space-0_5);padding-left:var(--np-space-2)}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.np-slide-thumb,.np-seg-thumb){display:none}
/* tabs. transition:none (R-2158): a part is drawn by its page first and marked a moment after, so the page's own fade ran from the
   page's look to the line's look every time a page opened — the tab in use stood FILLED in the person's colour, its words in the
   same colour, for a sixth of a second (found by theme-contrast-smoke with the calm screens as the starting state). A quiet word
   has no fill to fade. */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.np-chip,.pl-tab,.lsw-tab,.pgtab,.mb-ftab,.np-seg > button){flex:none;box-sizing:border-box;display:inline-flex;align-items:center;gap:var(--np-space-1_5);width:auto;height:48px;min-height:0;margin:0;padding:0 var(--np-space-2_5);
  background:transparent;border:0;border-radius:0;box-shadow:inset 0 -2px 0 transparent;font:500 var(--np-text-md)/1 var(--font);color:var(--text2);white-space:nowrap;transform:none;cursor:pointer;transition:none}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.np-chip,.pl-tab,.lsw-tab,.pgtab,.mb-ftab,.np-seg > button):hover{color:var(--text);background:transparent}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.np-chip[aria-pressed="true"],.pl-tab.on,.lsw-tab[aria-selected="true"],.pgtab.on,.mb-ftab.on,.np-seg > button[aria-pressed="true"]){background:transparent;color:var(--accent);font-weight:700;box-shadow:inset 0 -2px 0 var(--fx-acc)}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.np-chip,.pl-tab,.lsw-tab,.pgtab,.mb-ftab,.np-seg > button) :is(b,span){margin:0;padding:0;background:transparent;border:0;font:inherit;font-weight:600;color:var(--text3)}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.np-chip[aria-pressed="true"],.pl-tab.on,.lsw-tab[aria-selected="true"],.pgtab.on,.mb-ftab.on,.np-seg > button[aria-pressed="true"]) :is(b,span){color:var(--accent)}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) .lsw-tab > b{display:inline-flex;align-items:center;gap:var(--np-space-1_5);font-weight:inherit;color:inherit}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.np-chip,.pl-tab,.lsw-tab,.pgtab,.mb-ftab,.np-seg > button):focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
/* tools: quiet words; the filled one stays filled */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) .btn:not(.btn-primary){flex:none;height:30px;min-height:0;padding:0 var(--np-space-2_5);background:transparent;border-color:transparent;box-shadow:none;border-radius:var(--np-round-sm);
  font:600 var(--np-text-sm)/1 var(--font);color:var(--text2);white-space:nowrap}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) .btn:not(.btn-primary):hover{background:var(--hover);color:var(--text)}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.btn-primary,.fl-place.is-main){flex:none;height:36px;min-height:0;padding:0 var(--np-space-3_5);font-size:var(--np-text-md);white-space:nowrap}
/* a field someone types in: quiet until used, and it gives way first when the line is short of room */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.ld-search,.nj-search){order:0;flex:0 1 300px;width:auto;min-width:150px;max-width:none;height:36px;margin:0;background:transparent;border-color:var(--border2);box-shadow:none}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) :is(.ld-search,.nj-search) input{height:34px;font-size:var(--np-text-md)}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) .tbar-search{flex:0 1 300px;min-width:150px;margin:0}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) .tbar-search input{width:100%;height:36px;background:transparent;box-shadow:none;font-size:var(--np-text-md)}
/* NO ROOM IN THE LINE (a narrower computer, R-2156): the part stays where the page drew it, as ONE quiet row — the same quiet
   words, field and tools as in the line (the rules above name both), 40px high with 36px tabs. Its groups go to a second line
   before anything is squeezed. The script marks it .calm-row; a part the page is not showing is left alone */
html[data-new-pace][data-calm] #content .calm-row{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:0 var(--np-space-2);box-sizing:border-box;width:auto;height:auto;min-height:var(--np-h-control-sm);
  margin:0 0 var(--np-space-2);padding:0;border:0}
html[data-new-pace][data-calm] #content .calm-row :is(.np-chip,.pl-tab,.lsw-tab,.pgtab,.mb-ftab,.np-seg > button){height:36px}
/* Jobs: its search stands inside its group of tools; in a row that group takes the room that is left, so the field is not held at its shortest */
html[data-new-pace][data-calm] #content .calm-row .nj-tools{flex:1 1 auto;justify-content:flex-end}
html[data-new-pace][data-calm] #content .calm-row .nj-search{flex:1 1 150px;max-width:300px}
/* Today: the two views are tabs; "Most urgent first" and which days stay at the right */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).ntd-cardhead .ntd-hint{flex:none;font-size:var(--np-text-sm);color:var(--text3);white-space:nowrap}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).ntd-cardhead .ntd-period{min-height:0;height:30px;background:transparent;border-color:transparent;box-shadow:none;font:600 var(--np-text-sm)/1 var(--font);color:var(--text2);transition:none}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).ntd-cardhead .ntd-period:hover{background:var(--hover)}
/* Leads and Find leads: the two places, then the list's own bar */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).lsw{gap:0}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).ld-bar{align-items:center}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).ld-bar .ld-chips{flex:0 0 auto}
/* Jobs: whose jobs, a hairline, which jobs */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).nj-bar .nj-chips > .np-chips + .np-chips{height:20px;margin-left:var(--np-space-2);padding-left:var(--np-space-2);border-left:1px solid var(--border2)}
/* Admin: its own buttons (List · Org chart · Deactivated users · Add user) follow the three tabs, at the right */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).ph > .flex{flex:1 1 auto;justify-content:flex-end}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).ph > .flex > div:first-child{display:none}
/* Placements: its five tabs, then its three tools at the right */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).pl-tabs{gap:0}
/* Candidates and Clients: the page's own "add" stays the filled button, at the right */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).pgtabs{gap:0}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row).tbar .cl-chiprow{gap:var(--np-space-1)}
/* Inbox: the folders, then the mailbox's own search and switches */
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row)#mb-toolbar{justify-content:flex-end}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row)#mb-toolbar .tbar{flex:1 1 auto;justify-content:flex-end;gap:var(--np-space-1_5)}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row)#mb-toolbar .tbar-search input{width:100%}

/* ── 4. Admin: a role's people open in the page, under the role cards (R-2152; 99zzzz6-admin-role-tab.js) ── */
html[data-new-pace][data-calm] body.ui-kit .adm-role-card.is-on{border-color:var(--fx-acc);box-shadow:inset 0 -3px 0 var(--fx-acc)}
html[data-new-pace][data-calm] .adm-role-tab{margin-top:var(--np-space-3);border:1px solid var(--border);border-radius:var(--np-round-lg);background:var(--card-solid);overflow:hidden}
html[data-new-pace][data-calm] .adm-role-tab-h{margin:0;padding:var(--np-space-3) var(--np-space-4);border-bottom:1px solid var(--border);font:700 var(--np-text-lg)/1.3 var(--font);color:var(--text)}
html[data-new-pace][data-calm] .adm-role-tab > div:last-child{border-bottom:0 !important}

/* ── the page starts right under the line ── */
html[data-new-pace][data-calm] body.ui-kit #content{padding-top:var(--np-space-2)}
