/* ═══ PIXXL STUDIO — THE NEW LOOK, STAGE 1 (redesign 2026-11-28) ═══════════════════════════════
   Turned on by ?ui=next (index.html puts .ui-next on <html>; ?ui=old takes it off). EVERY rule
   below starts with html.ui-next, so with the switch off this file changes nothing.
   Source of truth: the approved board (Main / Lead / Extra templates + make-webapp.mjs).
   One scale: 30 page title · 20 section heading · 14 body · 12 small print · 40 the one big number.
   Buttons 44, main action 52, chips 44. Corners: cards 22, summary card 28, pop-ups 28.
   Gaps: sections 28, cards 14. No initials anywhere — a photo or a plain person icon. */

/* ── Tokens: light by default, dark when the page is dark (data-theme follows the device) ── */
html.ui-next {
  --nx-bg: #e2e6e0; --nx-card: #f3f6f2; --nx-soft: #e7ebe4; --nx-field: #ffffff;
  --nx-text: #161616; --nx-muted: #56594f; --nx-line: #dfe3dc;
  --nx-rail-bg: #161616; --nx-rail-text: #c9c9c3; --nx-rail-muted: #a6a6a6; --nx-rail-soft: #2e2e2e;
  --nx-accent: #d9ff5e; --nx-ink: #1a2000; --nx-ink-2: #3d4a10;
  --nx-warm-bg: #ffe7c2; --nx-warm-fg: #6b3a00;
  --nx-hero: radial-gradient(75% 65% at 0% 0%, #f0fdbe 0%, rgba(240,253,190,0) 100%), radial-gradient(70% 70% at 100% 100%, #a8d937 0%, rgba(168,217,55,0) 100%), radial-gradient(60% 60% at 0% 100%, #dff480 0%, rgba(223,244,128,0) 100%), linear-gradient(160deg, #e1f588 0%, #c6e93d 60%, #b5df3a 100%);
  --nx-font: Inter, -apple-system, system-ui, sans-serif;
  --nx-head: "Schibsted Grotesk", Inter, sans-serif;
  --nx-t-title: 30px; --nx-t-h2: 20px; --nx-t-body: 14px; --nx-t-small: 12px; --nx-t-big: 40px;
  --nx-r-card: 22px; --nx-r-hero: 28px; --nx-r-pop: 28px;
  --nx-gap-section: 28px; --nx-gap-card: 14px;
  --nx-rail-w: 232px; --nx-list-w: 400px; --nx-top: 76px;
  --nx-person: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 12a4 4 0 100-8 4 4 0 000 8zM4 21a8 8 0 0116 0'/></svg>");
}
html.ui-next[data-theme="dark"] {
  --nx-bg: #121212; --nx-card: #242424; --nx-soft: #2e2e2e; --nx-field: #0e0e0e;
  --nx-text: #ededed; --nx-muted: #a6a6a6; --nx-line: #3a3a3a;
  --nx-rail-bg: #0a0a0a;
  --nx-warm-bg: #3a2a12; --nx-warm-fg: #ffc176;
}
html.ui-next.nx-rail-shut { --nx-rail-w: 72px; }

html.ui-next body { background: var(--nx-bg); color: var(--nx-text); font-family: var(--nx-font); }
html.ui-next[data-theme] body :is(button, a) { white-space: nowrap; }

/* ── The menu rail (replaces the old sidebar) ─────────────────────────────────────────────── */
html.ui-next[data-theme] body .app-sidebar { display: none !important; }
html.ui-next[data-theme] body .nx-rail {
  display: flex !important; flex-direction: column; gap: 4px;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: var(--nx-rail-w);
  box-sizing: border-box; padding: 28px 16px; background: var(--nx-rail-bg);
  font-family: var(--nx-font); font-size: var(--nx-t-body); overflow-y: auto; scrollbar-width: none;
}
html.ui-next[data-theme] body .nx-logo { width: 120px; height: auto; margin: 0 0 28px 12px; flex: 0 0 auto; }
html.ui-next[data-theme] body .nx-rail :is(.nx-item, .nx-toggle, .nx-me) {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; flex: 0 0 auto;
  font: 600 var(--nx-t-body)/1.2 var(--nx-font); white-space: nowrap;
}
html.ui-next[data-theme] body .nx-rail .nx-item { height: 44px; border-radius: 22px; padding: 0 14px; gap: 12px; color: var(--nx-rail-text); }
html.ui-next[data-theme] body .nx-rail .nx-item:hover { background: var(--nx-rail-soft); }
html.ui-next[data-theme] body .nx-rail .nx-item.active { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-rail .nx-item[hidden] { display: none; }
html.ui-next[data-theme] body .nx-rail :is(.nx-item, .nx-toggle, .nx-me):focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
html.ui-next[data-theme] body .nx-rail svg { flex: 0 0 auto; }
html.ui-next[data-theme] body .nx-grow { flex: 1 1 auto; min-height: 14px; }
html.ui-next[data-theme] body .nx-rail .nx-toggle { height: 44px; border-radius: 22px; padding: 0 14px; gap: 10px; color: var(--nx-rail-muted); }
html.ui-next[data-theme] body .nx-rail .nx-toggle:hover { background: var(--nx-rail-soft); color: #ededed; }
html.ui-next[data-theme] body .nx-rail .nx-me { height: 52px; border-radius: 26px; padding: 0 8px; gap: 10px; color: #ededed; margin-top: 4px; }
html.ui-next[data-theme] body .nx-rail .nx-me:hover { background: var(--nx-rail-soft); }
html.ui-next[data-theme] body .nx-me .nx-avatar { background: var(--nx-rail-soft); color: #ededed; }
html.ui-next[data-theme] body .nx-me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
html.ui-next[data-theme] body .nx-me-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-me-sub { color: var(--nx-rail-muted); font-size: var(--nx-t-small) !important; font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
/* Hidden menu: a 72-wide strip of icons, "Show menu" at the top, the person at the bottom. */
html.ui-next.nx-rail-shut[data-theme] body .nx-rail { padding: 28px 14px; align-items: center; }
html.ui-next.nx-rail-shut[data-theme] body .nx-rail :is(.nx-logo, .nx-label, .nx-me-text) { display: none; }
html.ui-next.nx-rail-shut[data-theme] body .nx-rail .nx-item { width: 44px; padding: 0; justify-content: center; }
html.ui-next.nx-rail-shut[data-theme] body .nx-rail .nx-toggle { order: -1; width: 44px; padding: 0; justify-content: center; background: var(--nx-rail-soft); color: #ededed; margin-bottom: 20px; }
html.ui-next.nx-rail-shut[data-theme] body .nx-rail .nx-toggle svg { transform: scaleX(-1); }
html.ui-next.nx-rail-shut[data-theme] body .nx-rail .nx-me { width: 44px; height: 44px; padding: 0; justify-content: center; }

/* ── Shared pieces ────────────────────────────────────────────────────────────────────────── */
/* Person: a photo when there is one, else a plain person icon. Never initials. */
html.ui-next[data-theme] body .nx-avatar { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: var(--nx-soft); color: var(--nx-muted);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
html.ui-next[data-theme] body .nx-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Buttons: 44 tall, the main action 52, never wrapping. */
html.ui-next[data-theme] body .nx-btn { all: unset; box-sizing: border-box; cursor: pointer; height: 44px; padding: 0 16px; border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font: 600 var(--nx-t-body)/1 var(--nx-font); background: var(--nx-card); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-btn.is-main { height: 52px; border-radius: 26px; padding: 0 22px; background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-btn.is-lime { background: var(--nx-accent); color: var(--nx-ink); }
/* Chips: 44 tall; a row of them scrolls sideways instead of wrapping. */
html.ui-next[data-theme] body .nx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
html.ui-next[data-theme] body .nx-chips::-webkit-scrollbar { display: none; }
html.ui-next[data-theme] body .nx-chip { all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 22px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 var(--nx-t-body)/1 var(--nx-font);
  background: var(--nx-card); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-chip.is-on { background: var(--nx-accent); color: var(--nx-ink); }
/* Status pill: small print, lime / warm / soft. */
html.ui-next[data-theme] body .nx-pill { display: inline-flex; align-items: center; max-width: 100%; box-sizing: border-box; padding: 2px 9px; border-radius: 10px;
  font: 600 var(--nx-t-small)/1.45 var(--nx-font) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--nx-soft); color: var(--nx-text); border: 0; height: auto; }
html.ui-next[data-theme] body .nx-pill.is-lime { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-pill.is-warm { background: var(--nx-warm-bg); color: var(--nx-warm-fg); }
html.ui-next[data-theme] body .nx-pill.is-off { background: transparent; color: var(--nx-muted); padding-right: 0; }
/* List row: two columns — name + one line on the left, price over a status pill on the right. */
html.ui-next[data-theme] body .nx-list { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body .nx-row { all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--nx-r-card); background: var(--nx-card); color: var(--nx-text);
  font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body .nx-row:hover { box-shadow: inset 0 0 0 1px var(--nx-line); }
html.ui-next[data-theme] body .nx-row.is-open { box-shadow: inset 0 0 0 2px var(--nx-accent); }
html.ui-next[data-theme] body .nx-row:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
html.ui-next[data-theme] body .nx-row-main { display: flex; flex-direction: column; min-width: 0; }
html.ui-next[data-theme] body .nx-row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-row-sub { color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 140px; min-width: 0; }
html.ui-next[data-theme] body .nx-row-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.ui-next[data-theme] body .nx-empty { padding: 28px 16px; text-align: center; color: var(--nx-muted); background: var(--nx-card); border-radius: var(--nx-r-card); }
html.ui-next[data-theme] body .nx-title { margin: 0; font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; color: var(--nx-text); letter-spacing: 0; }
html.ui-next[data-theme] body .nx-h2 { margin: 0; font: 600 var(--nx-t-h2)/1.2 var(--nx-head); color: var(--nx-text); }

/* ── Page area: everything sits to the right of the rail ──────────────────────────────────── */
html.ui-next body .shell, html.ui-next body.dash-active .shell { margin-left: var(--nx-rail-w) !important; background: var(--nx-bg) !important; }
/* The old top bar (search · new · alerts · Ask Gia) floats at the top right of the page area until stage 2
   moves those into each page's head; it no longer spans the page, so the list column starts at the top. */
html.ui-next body .topbar, html.ui-next body.dash-active .topbar {
  left: auto !important; right: 0 !important; width: auto !important; margin-left: 0 !important;
  height: auto !important; min-height: 0 !important; padding: 16px 28px !important; gap: 12px !important;
  background: transparent !important; border-bottom: 0 !important; box-shadow: none !important; pointer-events: none;
}
html.ui-next body .topbar > * { pointer-events: auto; }
html.ui-next[data-theme] body .topbar .search-shell { width: 220px !important; min-width: 0 !important; height: 44px !important; border-radius: 22px !important; background: var(--nx-card) !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] body .topbar :is(#createFab, #notifBtn, #helpBtn) { width: 44px !important; height: 44px !important; border-radius: 50% !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] body .topbar :is(#notifBtn, #helpBtn) { background: var(--nx-card) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body .topbar #createFab { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body .detail-fullpage:not([hidden]) { left: var(--nx-rail-w) !important; top: var(--nx-top) !important; background: var(--nx-bg) !important; }
html.ui-next[data-theme] body .detail-fullpage .detail-content { background: var(--nx-bg) !important; }
/* The account menu: the person moved to the bottom of the rail, so the menu opens there. */
html.ui-next[data-theme] body #profileDot { display: none !important; }
html.ui-next[data-theme] body #profileMenuPop { position: fixed !important; left: calc(var(--nx-rail-w) + 12px) !important; bottom: 16px !important; top: auto !important; right: auto !important;
  transform-origin: bottom left !important; z-index: 300; }
/* It opens from the left now, so it reads from the left. */
html.ui-next[data-theme] body #profileMenuPop :is(.profile-menu-item, .profile-menu-sub, .profile-menu-email) { justify-content: flex-start; text-align: left; }
html.ui-next[data-theme] body #profileMenuPop .profile-menu-item { min-height: 44px; }

/* SPLIT (Leads, Contacts, Projects, Chat, Service, Crew, Setup): the list 400 wide on the left,
   what you opened on the right. Stage 1 wires Leads; the quote builder stays full width. */
html.ui-next body.leads-active {
  --nx-split: 1;
}
html.ui-next body.leads-active .shell { padding: 0 !important; }
html.ui-next body.leads-active #page-leads:not([hidden]) {
  display: flex; flex-direction: column; gap: var(--nx-gap-section);
  width: var(--nx-list-w); box-sizing: border-box; padding: 20px 20px 60px; margin: 0;
  min-height: 100vh; border-right: 1px solid var(--nx-line);
}
/* Nothing open yet: the right side says so instead of sitting empty. */
html.ui-next body.leads-active .shell::after {
  content: "Pick one from the list to open it here"; position: fixed; z-index: 1;
  left: calc(var(--nx-rail-w) + var(--nx-list-w)); right: 0; top: var(--nx-top); bottom: 0;
  display: flex; align-items: center; justify-content: center; color: var(--nx-muted); font: 400 var(--nx-t-body)/1.45 var(--nx-font);
}
html.ui-next body.leads-active .detail-fullpage:not([hidden]) {
  left: calc(var(--nx-rail-w) + var(--nx-list-w)) !important;
}

/* ── Sales: the shared head of the Leads and Quotes columns ───────────────────────────────── */
html.ui-next[data-theme] body :is(#page-leads, #page-quotes) :is(.sg-leads-head, .qg-sage-head) { order: 1; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
html.ui-next[data-theme] body :is(#page-leads, #page-quotes) .sg-display:not([hidden]) { display: block !important; margin: 0; font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body :is(#page-leads, #page-quotes) .sales-subnav {
  order: 2; display: flex !important; gap: 8px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap;
  margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; width: auto !important;
}
html.ui-next[data-theme] body :is(#page-leads, #page-quotes) .sales-subnav .sales-subtab,
html.ui-next[data-theme] body #page-leads .page-heading .dash-filter-btn {
  all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 22px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 var(--nx-t-body)/1 var(--nx-font);
  background: var(--nx-card); color: var(--nx-text);
}
html.ui-next[data-theme] body :is(#page-leads, #page-quotes) .sales-subnav .sales-subtab.is-active { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body :is(.sales-subtab, .dash-filter-btn, .src-pill):focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
/* Summary: the big card (28 corners, the one 40 number) over 2-across tiles. */
html.ui-next[data-theme] body #leadsSummary:not([hidden]) {
  order: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nx-gap-card); margin: 0;
}
html.ui-next[data-theme] body #leadsSummary .px-card {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: pointer;
  padding: 16px; border-radius: var(--nx-r-card); background: var(--nx-card); color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font);
}
html.ui-next[data-theme] body #leadsSummary .px-card.is-on { box-shadow: inset 0 0 0 2px var(--nx-accent); }
html.ui-next[data-theme] body #leadsSummary .px-card:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
html.ui-next[data-theme] body #leadsSummary .px-card-label { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; line-height: 1.45; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; font-size: var(--nx-t-body); text-transform: none; letter-spacing: 0; }
html.ui-next[data-theme] body #leadsSummary .px-card-label > span:last-child { overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #leadsSummary .px-card-value { order: -1; flex: 0 0 auto; font: 600 var(--nx-t-title)/1.1 var(--nx-head) !important; font-variant-numeric: tabular-nums; color: inherit; margin: 0; }
html.ui-next[data-theme] body #leadsSummary .ls-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
html.ui-next[data-theme] body #leadsSummary .ls-hero {
  grid-column: 1 / -1; cursor: default; padding: 18px; border-radius: var(--nx-r-hero); background: var(--nx-hero); color: var(--nx-ink); gap: 6px;
}
html.ui-next[data-theme] body #leadsSummary .ls-hero .px-card-value { order: 0; font-size: var(--nx-t-big) !important; line-height: 1 !important; }
html.ui-next[data-theme] body #leadsSummary .ls-hero .px-card-caption { color: var(--nx-ink-2); margin: 0; font-size: var(--nx-t-body); }
html.ui-next[data-theme] body #leadsSummary .ls-waiting {
  all: unset; box-sizing: border-box; cursor: pointer; grid-column: 1 / -1; height: 44px; padding: 0 16px; border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; white-space: nowrap; overflow: hidden;
  font: 600 var(--nx-t-body)/1 var(--nx-font); background: var(--nx-warm-bg); color: var(--nx-warm-fg);
}
html.ui-next[data-theme] body #leadsSummary .ls-waiting .material-symbols-outlined { font-size: 18px; color: inherit; }

/* ── Sales → Leads (the column) ───────────────────────────────────────────────────────────── */
/* The old filters (event month, type, sort) become one row of 44 chips under the summary. */
html.ui-next[data-theme] body #page-leads .page-heading { order: 4; display: block; margin: 0; padding: 0; background: none; border: 0; }
html.ui-next[data-theme] body #page-leads .page-heading > div:first-child { display: none; }
html.ui-next[data-theme] body #page-leads .page-heading .page-actions { position: static; display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0; width: auto; justify-content: flex-start; }
html.ui-next[data-theme] body #page-leads .page-heading #leadsCombo { display: none !important; }
html.ui-next[data-theme] body #page-leads .page-heading .dash-filter { display: block; flex: 0 1 auto; min-width: 0; position: relative; }
html.ui-next[data-theme] body #page-leads .page-heading .dash-filter-btn { max-width: 100%; overflow: hidden; padding: 0 12px; }
html.ui-next[data-theme] body #page-leads .page-heading .dash-filter-btn > span:not(.material-symbols-outlined) { overflow: hidden; text-overflow: ellipsis; }
/* Words only, so the three fit the column; a long choice ends in … rather than wrapping. */
html.ui-next[data-theme] body #page-leads .page-heading .dash-filter-btn .material-symbols-outlined { display: none; }
html.ui-next[data-theme] body #page-leads #leadsChips { order: 5; margin: 0; }
html.ui-next[data-theme] body #page-leads #leadsChips:not(.has-filters) { display: none !important; }
html.ui-next[data-theme] body #page-leads #crmKanbanBoard { display: none !important; }
html.ui-next[data-theme] body #page-leads #crmLeadsList:not([hidden]) { order: 6; display: block; margin: 0; padding: 0; background: none; border: 0; }

/* ── Sales → Quotes: the quote builder, full width — the head first, then the three cards ─── */
html.ui-next body:has(#page-quotes:not([hidden])) .shell { padding: 0 !important; }
html.ui-next[data-theme] body #page-quotes:not([hidden]) { display: flex; flex-direction: column; gap: var(--nx-gap-section); padding: 28px 20px 60px !important; margin: 0; max-width: none !important; }
html.ui-next[data-theme] body #page-quotes .qg-shell { order: 3; }

/* ── The lead (right side): its header in the new look ────────────────────────────────────── */
html.ui-next[data-theme] body #dealDetailContent .dlp { background: var(--nx-bg); color: var(--nx-text); }
html.ui-next[data-theme] #dealDetailContent .dlp-scroll { padding: 20px 28px 60px; gap: var(--nx-gap-section); background: var(--nx-bg); }
/* Beside the list there is nothing to go back to: the list is right there. */
html.ui-next body.leads-active #dealDetailContent .dlp-backrow { display: none !important; }
/* One column, the card that says who it is on top. */
html.ui-next[data-theme] body #dealDetailContent .dlp-cols2 { display: flex !important; flex-direction: column; gap: var(--nx-gap-section); height: auto !important; padding-bottom: 0; }
html.ui-next[data-theme] body #dealDetailContent .dlp-cols2 > .dlp-card { height: auto !important; overflow: visible !important; }
html.ui-next[data-theme] #dealDetailContent .dlp-card { background: var(--nx-card) !important; border: 0 !important; border-radius: var(--nx-r-card) !important; box-shadow: none !important; padding: 20px !important; color: var(--nx-text); }
html.ui-next[data-theme] #dealDetailContent .dlp-idcard { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] #dealDetailContent .dlp-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; }
html.ui-next[data-theme] #dealDetailContent .dlp-deal-name { font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0; min-width: 0; }
html.ui-next[data-theme] #dealDetailContent .dlp-hs-pill {
  display: inline-flex; align-items: center; gap: 6px; height: auto; padding: 2px 9px; border-radius: 10px; border: 0;
  font: 600 var(--nx-t-small)/1.45 var(--nx-font) !important; white-space: nowrap; background: var(--nx-soft); color: var(--nx-text);
}
html.ui-next[data-theme] #dealDetailContent .dlp-hs-pill.ls-booked, html.ui-next[data-theme] #dealDetailContent .dlp-hs-pill.ls-delivered { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] #dealDetailContent .dlp-hs-pill.ls-awaiting { background: var(--nx-warm-bg); color: var(--nx-warm-fg); }
html.ui-next[data-theme] #dealDetailContent .dlp-contact-line { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--nx-text); font-size: var(--nx-t-body); }
html.ui-next[data-theme] #dealDetailContent .dlp-name-link, html.ui-next[data-theme] #dealDetailContent .dlp-name-plain { font: 600 var(--nx-t-body)/1.45 var(--nx-font); color: var(--nx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] #dealDetailContent .dlp-contact-phone { color: var(--nx-muted); white-space: nowrap; }
/* The person: a plain icon, never the letters of their name. */
html.ui-next[data-theme] :is(#dealDetailContent, #contactDetailContent) .dlp-avatar {
  width: 44px !important; height: 44px !important; flex: 0 0 auto; border-radius: 50% !important; border: 0 !important;
  background: var(--nx-soft) !important; color: var(--nx-muted) !important; font-size: 0 !important; display: inline-flex; align-items: center; justify-content: center;
}
html.ui-next[data-theme] :is(#dealDetailContent, #contactDetailContent) .dlp-avatar::before {
  content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--nx-person) center / contain no-repeat; mask: var(--nx-person) center / contain no-repeat;
}
/* Call · WhatsApp · delete: 44 round buttons. */
html.ui-next[data-theme] #dealDetailContent .dlp-head-actions { align-self: stretch; display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin: 0; }
html.ui-next[data-theme] #dealDetailContent :is(.dlp-icon-btn, .dlp-del-icon) {
  width: 44px !important; height: 44px !important; border-radius: 50% !important; border: 0 !important; box-shadow: none !important;
  background: var(--nx-soft) !important; color: var(--nx-text) !important; display: inline-flex; align-items: center; justify-content: center;
}
html.ui-next[data-theme] #dealDetailContent .dlp-icon-btn.dlp-wa { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] #dealDetailContent .dlp-icon-btn.is-disabled { opacity: .45; }
html.ui-next[data-theme] #dealDetailContent .dlp-del-icon { margin-left: auto; color: var(--nx-muted) !important; }
html.ui-next[data-theme] #dealDetailContent :is(.dlp-icon-btn, .dlp-del-icon) :is(svg, .material-symbols-outlined) { width: 20px; height: 20px; font-size: 20px !important; color: inherit !important; fill: currentColor; }

/* ── Pop-ups: 540 wide, 28 corners, as tall as their content, centred in the page area ────── */
html.ui-next body > .modal:not([hidden]) { left: var(--nx-rail-w); padding: 40px; }
html.ui-next body > .modal .modal-overlay { background: rgba(0, 0, 0, .45); left: calc(-1 * var(--nx-rail-w)); }
html.ui-next body > .modal .modal-content {
  width: min(540px, 100%) !important; max-height: calc(100vh - 80px); height: auto; border-radius: var(--nx-r-pop) !important; border: 0 !important;
  background: var(--nx-card) !important; color: var(--nx-text); box-shadow: 0 20px 60px rgba(0, 0, 0, .35) !important;
}
html.ui-next body > .modal .modal-head { border-bottom: 0; padding: 24px 24px 0; }
html.ui-next body > .modal .modal-head h2 { font: 600 var(--nx-t-h2)/1.2 var(--nx-head); color: var(--nx-text); }
/* No close button: click outside or Escape closes. */
html.ui-next body > .modal .modal-head > [data-close] { display: none !important; }
html.ui-next[data-theme] body .nx-pop-veil { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center;
  padding: 40px 40px 40px calc(var(--nx-rail-w) + 40px); box-sizing: border-box; }
html.ui-next[data-theme] body .nx-pop { width: 540px; max-width: 100%; max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 24px;
  border-radius: var(--nx-r-pop); background: var(--nx-card); color: var(--nx-text); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
/* The old desktop showed the sort as an icon only; with words-only chips it needs its label back. */
html.ui-next[data-theme] body #page-leads .page-heading #leadsSortLabel { display: inline !important; }
html.ui-next[data-theme] body #page-leads :is(#leadsStage, #leadsSort, #leadsMonth, #leadsType) .dash-filter-btn { width: auto; height: 44px; min-height: 44px; padding: 0 16px; justify-content: center; }

/* ═══ STAGE 2A (2026-11-28): page headers, Home, Projects, a project, Calendar, Deliveries, Call sheet, pop-ups ═══ */
/* The old list rule (dashboard cards) capped .nx-list at 360 and scrolled it; the new look's lists run the page. */
html.ui-next[data-theme] body .nx-list { max-height: none; overflow: visible; padding-right: 0; }

/* ── No floating top bar: its controls live in each page's header now ─────────────────────── */
html.ui-next { --nx-top: 0px; }
html.ui-next body .topbar, html.ui-next body.dash-active .topbar { height: 0 !important; padding: 0 !important; overflow: visible !important; }
html.ui-next[data-theme] body .nx-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
html.ui-next[data-theme] body .nx-head-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; margin-left: auto; }
/* Search: a round 44 button that opens into a box while it is in use. */
html.ui-next[data-theme] body .nx-tools .search-shell {
  position: relative; width: 44px !important; min-width: 0 !important; height: 44px !important; margin: 0 !important; padding: 0 !important;
  border-radius: 22px !important; border: 0 !important; box-shadow: none !important; background: var(--nx-card) !important; color: var(--nx-text) !important;
  display: flex; align-items: center; overflow: hidden; cursor: pointer; transition: width .18s ease;
}
html.ui-next[data-theme] body .nx-tools .search-shell:focus-within { width: 260px !important; cursor: text; }
html.ui-next[data-theme] body .nx-tools .search-shell > .material-symbols-outlined { flex: 0 0 44px; width: 44px; text-align: center; font-size: 20px; color: inherit; }
html.ui-next[data-theme] body .nx-tools .search-shell input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px 0 0 !important; border: 0 !important; background: transparent !important;
  color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1 var(--nx-font) !important; outline: none; box-shadow: none !important; }
html.ui-next[data-theme] body .nx-tools :is(#createFab, #notifBtn, #helpBtn) {
  width: 44px !important; height: 44px !important; min-width: 44px; padding: 0 !important; border-radius: 50% !important; border: 0 !important; box-shadow: none !important;
  display: inline-flex !important; align-items: center; justify-content: center; background: var(--nx-card) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body .nx-tools #createFab { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body .nx-tools :is(#createFab, #notifBtn, #helpBtn) .material-symbols-outlined { font-size: 20px; color: inherit; }
html.ui-next[data-theme] body .nx-tools :is(.create-menu, .notif-menu) { position: relative; margin: 0; }
html.ui-next[data-theme] body .nx-tools :is(.create-menu-pop, .notif-pop) { top: calc(100% + 8px) !important; right: 0 !important; left: auto !important; bottom: auto !important; z-index: 300; }
/* Sales, Contacts, Service: the title and the controls on one row. */
html.ui-next[data-theme] body .nx-has-tools { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
html.ui-next[data-theme] body .nx-has-tools > * { grid-column: 1 / -1; }
html.ui-next[data-theme] body .nx-has-tools > .sg-display { grid-column: 1; grid-row: 1; }
html.ui-next[data-theme] body .nx-has-tools > .nx-head-tools { grid-column: 2; grid-row: 1; }
html.ui-next[data-theme] body .nx-page-head, html.ui-next[data-theme] body .nx-col-head { display: flex; align-items: center; gap: 12px; min-height: 44px; }
html.ui-next[data-theme] body .nx-page-head.nx-tools-only { justify-content: flex-end; margin: 0 0 14px; }
html.ui-next[data-theme] body .money-head .nx-head-tools { margin-left: auto; }

/* ── Shared pieces for this stage ───────────────────────────────────────────────────────────── */
html.ui-next[data-theme] body .nx-page { display: flex; flex-direction: column; gap: var(--nx-gap-section); box-sizing: border-box; padding: 28px 20px 60px; color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body .nx-col { display: flex; flex-direction: column; gap: var(--nx-gap-section); box-sizing: border-box; width: var(--nx-list-w); padding: 28px 20px 60px;
  min-height: 100vh; border-right: 1px solid var(--nx-line); color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body .nx-muted { color: var(--nx-muted); }
html.ui-next[data-theme] body .nx-link { all: unset; cursor: pointer; height: 44px; display: inline-flex; align-items: center; font: 600 var(--nx-t-body)/1 var(--nx-font); color: var(--nx-muted); }
html.ui-next[data-theme] body .nx-link:hover { color: var(--nx-text); }
html.ui-next[data-theme] body .nx-sec { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body .nx-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: calc(var(--nx-gap-card) - var(--nx-gap-section)); }
html.ui-next[data-theme] body .nx-empty { padding: 28px 16px; text-align: center; color: var(--nx-muted); background: var(--nx-card); border-radius: var(--nx-r-card); }
html.ui-next[data-theme] body .nx-avatar.is-ink { width: 44px; height: 44px; background: var(--nx-text); color: var(--nx-bg); }
html.ui-next[data-theme] body .nx-avatar.is-big { width: 60px; height: 60px; }
html.ui-next[data-theme] body .nx-avatar.is-xs { width: 20px; height: 20px; }
html.ui-next[data-theme] body .nx-btn.is-tall { height: 52px; border-radius: 26px; }
html.ui-next[data-theme] body .nx-btn:hover { filter: brightness(.97); }
html.ui-next[data-theme] body .nx-btn:focus-visible, html.ui-next[data-theme] body .nx-chip:focus-visible, html.ui-next[data-theme] body .nx-tile:focus-visible,
html.ui-next[data-theme] body .nx-line:focus-visible, html.ui-next[data-theme] body .nx-cal-cell:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
html.ui-next[data-theme] body .nx-round { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nx-soft); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-chip.is-static { cursor: default; }
html.ui-next[data-theme] body .nx-chip.is-warm { background: var(--nx-warm-bg); color: var(--nx-warm-fg); }
html.ui-next[data-theme] body .nx-chip .nx-avatar { background: var(--nx-soft); }
html.ui-next[data-theme] body .nx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--nx-muted); }
html.ui-next[data-theme] body .nx-dot.is-lime, html.ui-next[data-theme] body .nx-dot.is-shoot { background: #8cc63f; }
html.ui-next[data-theme] body .nx-dot.is-post { background: #3d6be0; }
html.ui-next[data-theme] body .nx-dot.is-follow { background: #8a5a1c; }
html.ui-next[data-theme] body .nx-dot.is-ink { background: currentColor; }
html.ui-next[data-theme] body .nx-pill.is-red { background: #ffd9d6; color: #8a1c12; }
html.ui-next[data-theme][data-theme="dark"] body .nx-pill.is-red { background: #47201c; color: #ffb4ab; }
html.ui-next[data-theme] body .nx-pill { flex: 0 0 auto; }
/* Date chip: day of the week over the date (shoots), or the date over the month (deliveries). Lime = today / next. */
html.ui-next[data-theme] body .nx-datechip { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: var(--nx-soft); color: var(--nx-text);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
html.ui-next[data-theme] body .nx-datechip span { font: 600 var(--nx-t-small)/1.2 var(--nx-font); }
html.ui-next[data-theme] body .nx-datechip b { font: 600 var(--nx-t-h2)/1.1 var(--nx-font); }
html.ui-next[data-theme] body .nx-datechip.is-lime { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-datechip.is-due { width: 52px; height: 52px; }
html.ui-next[data-theme] body .nx-datechip.is-due b { font-size: var(--nx-t-h2); }
html.ui-next[data-theme] body .nx-icontile { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--nx-soft); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-icontile.is-red { width: 36px; height: 36px; border-radius: 10px; background: #e5534b; color: #fff; }
/* Rows with something on the left (a date chip, an icon) */
html.ui-next[data-theme] body .nx-row.nx-row-date, html.ui-next[data-theme] body .nx-row.nx-row-icon { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 12px 16px 12px 12px; }
html.ui-next[data-theme] body .nx-row.nx-row-icon { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px 16px; }
html.ui-next[data-theme] body .nx-row > svg { color: var(--nx-muted); }
/* A card of lines separated by hairlines (deliveries, the call sheet). */
html.ui-next[data-theme] body .nx-box { background: var(--nx-card); border-radius: var(--nx-r-card); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-lines { display: flex; flex-direction: column; padding: 4px 16px; }
html.ui-next[data-theme] body .nx-line { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body div.nx-line { cursor: default; }
html.ui-next[data-theme] body .nx-line + .nx-line { border-top: 1px solid var(--nx-line); }
html.ui-next[data-theme] body .nx-line .nx-row-main { flex: 1 1 auto; }
html.ui-next[data-theme] body .nx-line > svg { flex: 0 0 auto; color: var(--nx-muted); }
html.ui-next[data-theme] body .nx-line-r { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.ui-next[data-theme] body .nx-note { padding: 20px 16px; }
html.ui-next[data-theme] body .nx-banner { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--nx-r-card); }
html.ui-next[data-theme] body .nx-banner.is-warm { background: var(--nx-warm-bg); color: var(--nx-warm-fg); }
/* The big summary card: lime, 28 corners, the one 40 number. Same in light and dark (owner 2026-11-27). */
html.ui-next[data-theme] body .nx-hero { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--nx-r-hero); background: var(--nx-hero); color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; }
html.ui-next[data-theme] body .nx-hero-label { font-weight: 600; }
html.ui-next[data-theme] body .nx-hero-note { color: var(--nx-ink-2); }
html.ui-next[data-theme] body .nx-hero-big { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
html.ui-next[data-theme] body .nx-hero-big > span:last-child { color: var(--nx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-big { font: 600 var(--nx-t-big)/1 var(--nx-head); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
html.ui-next[data-theme] body .nx-hero-title { font: 600 var(--nx-t-title)/1.15 var(--nx-head); }
html.ui-next[data-theme] body .nx-hero-line, html.ui-next[data-theme] body .nx-hbar { display: flex; justify-content: space-between; gap: 12px; }
html.ui-next[data-theme] body .nx-hbar b { font-weight: 600; }
html.ui-next[data-theme] body .nx-track { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .55); overflow: hidden; margin-top: -4px; }
html.ui-next[data-theme] body .nx-track > span { display: block; height: 100%; border-radius: 6px; background: #8cc63f; }
html.ui-next[data-theme] body .nx-hero-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html.ui-next[data-theme] body .nx-hero-tiles > span { display: flex; flex-direction: column; min-width: 0; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .45); }
html.ui-next[data-theme] body .nx-hero-tiles b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-hero-tiles small { font-size: var(--nx-t-small); color: var(--nx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-seg { display: inline-flex; padding: 3px; border-radius: 22px; background: rgba(255, 255, 255, .55); }
html.ui-next[data-theme] body .nx-seg button { all: unset; cursor: pointer; height: 38px; padding: 0 14px; border-radius: 19px; font: 400 var(--nx-t-body)/38px var(--nx-font); color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-seg button.is-on { background: var(--nx-ink); color: var(--nx-accent); font-weight: 600; }
html.ui-next[data-theme] body .nx-wks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
html.ui-next[data-theme] body .nx-wk { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
html.ui-next[data-theme] body .nx-wk-v { font-weight: 600; font-size: var(--nx-t-small); }
html.ui-next[data-theme] body .nx-wk-fill { display: block; border-radius: 10px; background: rgba(255, 255, 255, .6); }
html.ui-next[data-theme] body .nx-wk-x { color: var(--nx-ink-2); font-size: var(--nx-t-small); }
/* Two tiles a row: a number (30), what it is, a line under it, an arrow. */
html.ui-next[data-theme] body .nx-tiles2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nx-gap-card); }
html.ui-next[data-theme] body .nx-tile { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 16px; border-radius: var(--nx-r-card); background: var(--nx-card); color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body .nx-tile.is-static { cursor: default; }
html.ui-next[data-theme] body .nx-tile:not(.is-static):hover { box-shadow: inset 0 0 0 1px var(--nx-line); }
html.ui-next[data-theme] body .nx-tile-v { font: 600 var(--nx-t-title)/1.15 var(--nx-head); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; padding-right: 22px; }
html.ui-next[data-theme] body .nx-tile-v.is-sm { font-size: var(--nx-t-h2); margin-bottom: 2px; }
html.ui-next[data-theme] body .nx-tile-v.is-warm { color: #8a4b00; }
html.ui-next[data-theme] body .nx-tile-v.is-red { color: #c0281c; }
html.ui-next[data-theme][data-theme="dark"] body .nx-tile-v.is-warm { color: #ffc176; }
html.ui-next[data-theme][data-theme="dark"] body .nx-tile-v.is-red { color: #ff8a80; }
html.ui-next[data-theme] body .nx-tile-l { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-tile-s { color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-tile-arrow { position: absolute; top: 14px; right: 14px; color: var(--nx-muted); }

/* ── HOME (full width, board: Main) ─────────────────────────────────────────────────────────── */
html.ui-next body.dash-active #page-dashboard:not(.is-money) { padding: 0; }
html.ui-next[data-theme] body #page-dashboard:not(.is-money) .dashx-main { display: flex; flex-direction: column; gap: var(--nx-gap-section); padding: 28px 20px 60px; max-width: none; }
html.ui-next[data-theme] body #page-dashboard:not(.is-money) :is(#dashHero, #homeMonth, #homeMore, .money-head) { display: none !important; }
html.ui-next[data-theme] body #page-dashboard.is-money #nxHome, html.ui-next[data-theme] body #page-dashboard.is-money :is(#nxHomeMoney, #nxHomeTiles) { display: none !important; }
html.ui-next[data-theme] body #nxHome { display: flex; flex-direction: column; gap: var(--nx-gap-section); }
html.ui-next[data-theme] body .nx-home-top { display: flex; align-items: center; gap: 12px; }
html.ui-next[data-theme] body .nx-home-me { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
html.ui-next[data-theme] body .nx-home-me b { font-weight: 600; }
html.ui-next[data-theme] body .nx-home-me span { color: var(--nx-muted); }
html.ui-next[data-theme] body .nx-hello { display: flex; flex-direction: column; gap: 2px; margin-top: -8px; }
html.ui-next[data-theme] body .nx-quick { margin-top: -6px; }
html.ui-next[data-theme] body .nx-quick-chip { padding: 0 16px 0 10px; }
html.ui-next[data-theme] body .nx-plus { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body #page-dashboard:not(.is-money) :is(.dash-today-band, .dash-todo-band, .home-sec) { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] body #nxHomeMoney[hidden], html.ui-next[data-theme] body #nxHomeTiles[hidden] { display: none; }
html.ui-next[data-theme] body #homeComing:not([hidden]) { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body #homeComing .nx-sec-head { margin-bottom: 0; }

/* ── PROJECTS: the list (400) on the left, the open project on the right ─────────────────────── */
html.ui-next body.projects-active .shell { padding: 0 !important; }
html.ui-next[data-theme] body #page-projects > .page-heading { display: none !important; }
html.ui-next[data-theme] body #page-projects { padding: 0; margin: 0; }
html.ui-next[data-theme] body:not(.nx-projview-alt) #nxProjAlt, html.ui-next[data-theme] body.nx-projview-alt #nxProjList,
html.ui-next[data-theme] body.nx-projview-alt #projectsBody, html.ui-next[data-theme] body.nx-proj-full #nxProjList { display: none !important; }
html.ui-next body.projects-active:not(.nx-proj-full):not(.nx-projview-alt) .shell::after {
  content: "Pick a project from the list to open it here"; position: fixed; z-index: 1;
  left: calc(var(--nx-rail-w) + var(--nx-list-w)); right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; color: var(--nx-muted); font: 400 var(--nx-t-body)/1.45 var(--nx-font);
}
html.ui-next body.projects-active:not(.nx-proj-full) #projectsBody .detail-fullpage:not([hidden]) { left: calc(var(--nx-rail-w) + var(--nx-list-w)) !important; top: 0 !important; z-index: 40; }
html.ui-next body.projects-active.nx-proj-full #projectsBody .detail-fullpage:not([hidden]) { left: var(--nx-rail-w) !important; top: 0 !important; z-index: 40; }
html.ui-next body:is(.leads-active, .quote-active) .detail-fullpage:not([hidden]) { top: 0 !important; }

/* ── A PROJECT (board: Project) ─────────────────────────────────────────────────────────────── */
html.ui-next[data-theme] #projectDetailPanel .dlp { background: var(--nx-bg); color: var(--nx-text); }
html.ui-next[data-theme] #projectDetailPanel .dlp-scroll { padding: 28px 20px 60px !important; background: var(--nx-bg); }
html.ui-next[data-theme] #projectDetailPanel .dlp-backrow { display: none !important; }
html.ui-next[data-theme] #projectDetailPanel .dlp-cols2 { display: flex !important; flex-direction: column; gap: var(--nx-gap-section); height: auto !important; padding: 0; }
html.ui-next[data-theme] #projectDetailPanel .dlp-cols2 > .dlp-card { height: auto !important; overflow: visible !important; }
/* The identity card is now the head of the page — no card behind it. */
html.ui-next[data-theme] #projectDetailPanel .dlp-idcard { background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; gap: 0; }
html.ui-next[data-theme] #projectDetailPanel .dlp-idcard > :is(.dlp-name-row, .dlp-contact-line, .dlp-head-actions) { display: none !important; }
html.ui-next[data-theme] #projectDetailPanel .pj-glance { display: none !important; }
html.ui-next[data-theme] #projectDetailPanel.nx-portal-open .pj-glance { display: block !important; margin-top: var(--nx-gap-section); }
html.ui-next[data-theme] #projectDetailPanel.nx-portal-open .pj-glance > .pj-tile { display: none !important; }
html.ui-next[data-theme] #projectDetailPanel .pj-portal { background: var(--nx-card); border-radius: var(--nx-r-card); padding: 16px; color: var(--nx-text); }
html.ui-next[data-theme] .nx-ph { display: flex; flex-direction: column; gap: var(--nx-gap-section); }
html.ui-next[data-theme] .nx-ph-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
html.ui-next[data-theme] .nx-ph-text { display: flex; flex-direction: column; min-width: 0; }
html.ui-next[data-theme] .nx-ph-text .nx-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] .nx-ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -14px; }
html.ui-next[data-theme] .nx-ph-chips .nx-chip { background: var(--nx-card); }
html.ui-next[data-theme] .nx-ph-chips .nx-chip.is-warm { background: var(--nx-warm-bg); }
html.ui-next[data-theme] .nx-ph-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: -14px; }
html.ui-next[data-theme] .nx-ph-btns .nx-btn { width: 100%; }
html.ui-next[data-theme] .nx-ask { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--nx-r-card); background: var(--nx-warm-bg); color: var(--nx-warm-fg); }
html.ui-next[data-theme] .nx-ask p { margin: 0; color: var(--nx-text); }
html.ui-next[data-theme][data-theme="dark"] .nx-ask p { color: #ededed; }
html.ui-next[data-theme] .nx-ask-top { display: flex; justify-content: space-between; gap: 12px; }
html.ui-next[data-theme] .nx-ask-top span { font-size: var(--nx-t-small); }
html.ui-next[data-theme] .nx-ask-btns { display: flex; gap: 8px; }
html.ui-next[data-theme] .nx-ask-btns .nx-btn:not(.is-lime) { background: var(--nx-card); }
/* The tab card: no card behind it; the tabs are 44 chips; each pane is the board's list. */
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent) .dlp-tabwrap { background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; gap: var(--nx-gap-section); }
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent) .dlp-tabs { display: flex !important; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent) .dlp-tab {
  all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 22px; display: inline-flex; align-items: center;
  white-space: nowrap; font: 600 var(--nx-t-body)/1 var(--nx-font); background: var(--nx-card); color: var(--nx-text); }
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent) .dlp-tab.active { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent) .dlp-tab:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent) .dlp-tab[data-tab="messages"] { display: none !important; }
html.ui-next[data-theme] #projectDetailPanel .dlp-pane { padding: 0 !important; background: none !important; }
html.ui-next[data-theme] #projectDetailPanel .proj-tabbody { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] #projectDetailPanel .proj-tabsum { display: none !important; }
html.ui-next[data-theme] #projectDetailPanel .dlp-pane-hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; padding: 0; }
html.ui-next[data-theme] #projectDetailPanel .proj-eyebrow, html.ui-next[data-theme] #projectDetailPanel .proj-eyebrow span { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] #projectDetailPanel .proj-prod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html.ui-next[data-theme] #projectDetailPanel :is(.dlp-q-link, .button.ghost.small, .button.small) {
  all: unset; box-sizing: border-box; cursor: pointer; height: 44px; padding: 0 16px; border-radius: 22px; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; font: 600 var(--nx-t-body)/1 var(--nx-font); background: var(--nx-card); color: var(--nx-text); }
html.ui-next[data-theme] #projectDetailPanel :is(.dlp-q-link, .button) .material-symbols-outlined { font-size: 18px; color: inherit; }
html.ui-next[data-theme] #projectDetailPanel .proj-evt-list { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] #projectDetailPanel .proj-evt-card { background: var(--nx-card) !important; border: 0 !important; border-radius: var(--nx-r-card) !important; box-shadow: none !important; padding: 0 !important; overflow: hidden; color: var(--nx-text); }
html.ui-next[data-theme] #projectDetailPanel .proj-evt-head { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; min-height: 76px; }
html.ui-next[data-theme] #projectDetailPanel .proj-evt-head-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
html.ui-next[data-theme] #projectDetailPanel .proj-evt-head-name { font: 600 var(--nx-t-body)/1.45 var(--nx-font); color: var(--nx-text); }
html.ui-next[data-theme] #projectDetailPanel .proj-evt-head-sub { font-size: var(--nx-t-body) !important; color: var(--nx-muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] #projectDetailPanel .proj-evt-head-data { display: none; }
html.ui-next[data-theme] #projectDetailPanel .proj-evt-chev { color: var(--nx-muted); font-size: 20px; }
html.ui-next[data-theme] #projectDetailPanel .proj-evt-body { padding: 0 16px 16px; }
html.ui-next[data-theme] #projectDetailPanel .proj-tabbody > p.muted.small { color: var(--nx-muted) !important; font-size: var(--nx-t-small) !important; margin: 0 !important; }
/* Post and Finance: every item is a card; every field the scale's field. */
html.ui-next[data-theme] #projectDetailPanel :is(.proj-fin-card, .proj-plan-row, .proj-deliv-page, .proj-cost-list, .proj-group-fin > section, .dl-section) { background: var(--nx-card) !important; border: 0 !important; border-radius: var(--nx-r-card) !important; box-shadow: none !important; padding: 16px !important; color: var(--nx-text); }
html.ui-next[data-theme] #projectDetailPanel :is(.proj-deliv-list, .proj-plan-list) { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] #projectDetailPanel :is(.proj-pay-head, .proj-cost-head) { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 var(--nx-t-h2)/1.2 var(--nx-head); color: var(--nx-text); text-transform: none; letter-spacing: 0; margin: 14px 0 0 !important; }
html.ui-next[data-theme] #projectDetailPanel .proj-res-rolename { font-weight: 600; color: var(--nx-text); }
html.ui-next[data-theme] #projectDetailPanel .nx-fin-tiles { margin-bottom: var(--nx-gap-section); }
html.ui-next[data-theme] #projectDetailPanel .nx-row-icon { margin-top: 0; }

/* Fields: one scale everywhere in the new look (project panes, the lead, pop-ups). */
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent, body > .modal, .px-modal-ov, .cal-modal-veil, .sg-dialog-veil) :is(input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="email"], input[type="tel"], input[type="search"], input:not([type]), select, textarea) {
  box-sizing: border-box; min-height: 44px; padding: 0 14px; border-radius: 14px !important; border: 0 !important; box-shadow: none !important;
  background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent, body > .modal, .px-modal-ov, .cal-modal-veil, .sg-dialog-veil) textarea { padding: 12px 14px; min-height: 88px; }
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent, body > .modal, .px-modal-ov, .cal-modal-veil, .sg-dialog-veil) :is(input, select, textarea):focus { outline: 2px solid var(--nx-accent) !important; outline-offset: 0; }
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent, body > .modal, .px-modal-ov, .cal-modal-veil, .sg-dialog-veil) :is(input[type="radio"], input[type="checkbox"]) {
  width: 20px !important; height: 20px !important; min-height: 0; margin: 0 8px 0 0; padding: 0; accent-color: #8cc63f; flex: 0 0 auto; transform: none !important; }
html.ui-next[data-theme] :is(#projectDetailPanel, #dealDetailContent, body > .modal) :is(label, .proj-plan-f > span, .dl-label) { font-size: var(--nx-t-body) !important; color: var(--nx-muted); text-transform: none !important; letter-spacing: 0 !important; }

/* ── CALENDAR (full width) and the old calendar hidden behind it ────────────────────────────── */
html.ui-next body.dash-active #page-calendar { padding: 0; }
html.ui-next[data-theme] body #page-calendar > :not(#nxCal) { display: none !important; }
html.ui-next[data-theme] body .nx-month { padding: 16px; }
html.ui-next[data-theme] body .nx-month-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
html.ui-next[data-theme] body .nx-month-nav { display: flex; gap: 8px; }
html.ui-next[data-theme] body .nx-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
html.ui-next[data-theme] body .nx-cal-dow { text-align: center; color: var(--nx-muted); font: 600 var(--nx-t-small)/32px var(--nx-font); }
html.ui-next[data-theme] body .nx-cal-cell { all: unset; box-sizing: border-box; cursor: pointer; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding-top: 2px; }
html.ui-next[data-theme] body .nx-cal-cell.is-empty { cursor: default; }
html.ui-next[data-theme] body .nx-cal-n { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 400 var(--nx-t-body)/1 var(--nx-font); font-variant-numeric: tabular-nums; }
html.ui-next[data-theme] body .nx-cal-cell:hover .nx-cal-n { background: var(--nx-soft); }
html.ui-next[data-theme] body .nx-cal-cell.is-today .nx-cal-n { box-shadow: inset 0 0 0 1.5px var(--nx-text); }
html.ui-next[data-theme] body .nx-cal-cell.is-on .nx-cal-n { background: var(--nx-accent); color: var(--nx-ink); font-weight: 600; box-shadow: none; }
html.ui-next[data-theme] body .nx-cal-dots { display: flex; gap: 3px; height: 6px; }
html.ui-next[data-theme] body .nx-cal-dots i { width: 5px; height: 5px; border-radius: 50%; }
html.ui-next[data-theme] body .nx-cal-dots i.is-shoot { background: #8cc63f; }
html.ui-next[data-theme] body .nx-cal-dots i.is-post { background: #3d6be0; }
html.ui-next[data-theme] body .nx-cal-dots i.is-follow { background: #8a5a1c; }
html.ui-next[data-theme][data-theme="dark"] body :is(.nx-cal-dots i.is-follow, .nx-dot.is-follow) { background: #d29b5a; }
html.ui-next[data-theme][data-theme="dark"] body :is(.nx-cal-dots i.is-post, .nx-dot.is-post) { background: #6f95ff; }
html.ui-next[data-theme] body .nx-row.nx-agenda { grid-template-columns: 72px 4px minmax(0, 1fr) auto; gap: 14px; }
html.ui-next[data-theme] body .nx-agenda-t { display: flex; flex-direction: column; line-height: 1.3; }
html.ui-next[data-theme] body .nx-agenda-t b { font-weight: 600; white-space: nowrap; }
html.ui-next[data-theme] body .nx-agenda-t small { color: var(--nx-muted); font-size: var(--nx-t-small); }
html.ui-next[data-theme] body .nx-agenda-bar { align-self: stretch; border-radius: 2px; background: var(--nx-muted); }
html.ui-next[data-theme] body .nx-agenda-bar.is-shoot { background: #8cc63f; }
html.ui-next[data-theme] body .nx-agenda-bar.is-post { background: #3d6be0; }
html.ui-next[data-theme] body .nx-agenda-bar.is-follow { background: #8a5a1c; }
html.ui-next[data-theme] body .nx-chip .nx-dot { margin-right: 2px; }

/* ── Pop-ups: no Cancel or close button anywhere — click outside or press Escape. The main action stays. ── */
html.ui-next body > .modal button[data-close], html.ui-next .sg-dialog [data-x="cancel"], html.ui-next .px-modal-ov [data-act="cancel"],
html.ui-next .cal-modal-x, html.ui-next #calAddCancel, html.ui-next .px-modal-x, html.ui-next .ae-close { display: none !important; }
html.ui-next body > .modal .modal-content { padding-bottom: 24px; }
html.ui-next body > .modal :is(.modal-body, form) { padding-left: 24px; padding-right: 24px; }
html.ui-next body > .modal :is(.modal-actions, .modal-foot) { border-top: 0 !important; background: none !important; }
html.ui-next body > .modal :is(.modal-actions, .modal-foot) .button.primary { height: 52px; min-height: 52px; padding: 0 24px; border-radius: 26px; border: 0; background: var(--nx-accent) !important; color: var(--nx-ink) !important; font: 600 var(--nx-t-body)/1 var(--nx-font); white-space: nowrap; }
html.ui-next .sg-dialog { border-radius: var(--nx-r-pop) !important; background: var(--nx-card) !important; color: var(--nx-text) !important; }
html.ui-next .sg-dialog .sg-dialog-btn { min-height: 44px; border-radius: 22px; }

/* ── Stage 2A fixes: the app's own global rules that the new pieces must outrank ─────────────── */
/* The page area: Home, Calendar and Projects draw their own padding; no old card behind them. */
html.ui-next body:has(#page-dashboard:not([hidden]):not(.is-money)) .shell, html.ui-next body:has(#page-calendar:not([hidden])) .shell { padding: 0 !important; }
html.ui-next[data-theme] body #page-dashboard:not(.is-money), html.ui-next[data-theme] body #page-calendar, html.ui-next[data-theme] body #page-projects { background: transparent !important; }
/* The bell lived only in the top bar's rules (desktop shows it); it lives in the page header now. */
html.ui-next[data-theme] body .nx-tools .notif-menu { display: inline-flex !important; }
html.ui-next[data-theme] body .nx-tools .notif-menu .notif-pop { width: 380px !important; max-width: calc(100vw - 24px) !important; }
html.ui-next[data-theme] body .nx-tools .notif-menu .notif-feed { text-align: left; }
/* Every <button> is forced to 44 by the app's button rule; these are cards and cells, sized here. */
html.ui-next[data-theme] body :is(.nx-tile, .nx-line, .nx-cal-cell, .nx-quick-chip) { min-height: 0 !important; height: auto !important; }
html.ui-next[data-theme] body .nx-cal-cell { height: 48px !important; }
html.ui-next[data-theme] body .nx-quick-chip { height: 44px !important; }
html.ui-next[data-theme] body .nx-btn.is-main, html.ui-next[data-theme] body .nx-btn.is-tall { height: 52px !important; min-height: 52px !important; }
html.ui-next[data-theme] body .nx-seg button { height: 38px !important; min-height: 38px !important; }
html.ui-next[data-theme] #projectDetailPanel .proj-evt-head { height: auto !important; min-height: 76px !important; }
/* The app's type rule sizes every span/b/small/label with !important; the new look's sizes say so too. */
html.ui-next[data-theme] body .nx-big { font-size: var(--nx-t-big) !important; line-height: 1 !important; }
html.ui-next[data-theme] body .nx-tile-v { font-size: var(--nx-t-title) !important; line-height: 1.15 !important; }
html.ui-next[data-theme] body .nx-tile-v.is-sm { font-size: var(--nx-t-h2) !important; line-height: 1.2 !important; }
html.ui-next[data-theme] body .nx-datechip b { font-size: var(--nx-t-h2) !important; line-height: 1.1 !important; }
html.ui-next[data-theme] body .nx-datechip.is-due b { font-size: var(--nx-t-h2) !important; }   /* on the scale (live QA P4: 18) */
html.ui-next[data-theme] body :is(.nx-datechip span, .nx-wk-v, .nx-wk-x, .nx-hero-tiles small, .nx-agenda-t small, .nx-ask-top span, .nx-cal-dow, .nx-home-me span + span) { font-size: var(--nx-t-small) !important; line-height: 1.3 !important; }
html.ui-next[data-theme] body .nx-home-me span { font-size: var(--nx-t-body) !important; }
/* ID-strength (the :is(#nx-x) trick) to outrank the app's heading and button rules, which carry an id inside :is(). */
html.ui-next[data-theme] body :is(.nx-title, #nx-x#nx-y#nx-z):not(.nx-x) { font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; letter-spacing: 0 !important; margin: 0 !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body :is(.nx-h2, #nx-x#nx-y#nx-z):not(.nx-x) { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; letter-spacing: 0 !important; margin: 0 !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body :is(.nx-tile, .nx-line, #nx-x#nx-y#nx-z):not(.nx-x) { height: auto !important; min-height: 0 !important; display: flex !important; padding-top: revert-layer; }
html.ui-next[data-theme] body :is(.nx-line, #nx-x#nx-y#nx-z):not(.nx-x) { min-height: 64px !important; padding: 10px 0 !important; justify-content: flex-start; }
html.ui-next[data-theme] body :is(.nx-tile, #nx-x#nx-y#nx-z):not(.nx-x) { padding: 16px !important; justify-content: flex-start; align-items: stretch; }
html.ui-next[data-theme] body :is(.nx-cal-cell, #nx-x#nx-y#nx-z):not(.nx-x) { height: 48px !important; min-height: 0 !important; padding: 2px 0 0 !important; display: flex !important; flex-direction: column; justify-content: flex-start; }
html.ui-next[data-theme] body :is(.nx-btn.is-main, .nx-btn.is-tall, #nx-x#nx-y#nx-z):not(.nx-x) { height: 52px !important; min-height: 52px !important; }
html.ui-next[data-theme] body :is(.nx-seg button, #nx-x#nx-y#nx-z):not(.nx-x) { height: 38px !important; min-height: 38px !important; }
html.ui-next[data-theme] #projectDetailPanel :is(.proj-evt-head, #nx-x#nx-y#nx-z):not(.nx-x) { height: auto !important; min-height: 76px !important; display: flex !important; justify-content: flex-start; }

/* ── Home: Needs you (the Today queue) and Quotes and calls, as the board's cards ──────────────── */
html.ui-next[data-theme] body :is(#todayQueue, #todoCard) :not(.material-symbols-outlined) { font-family: var(--nx-font) !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body :is(#todayQueue, #todoCard, #nx-x#nx-y#nx-z):not(.nx-x) { display: flex; flex-direction: column; gap: var(--nx-gap-card); margin: 0 !important; padding: 20px !important;
  border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; box-shadow: none !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body #todayQueue[hidden] { display: none !important; }
html.ui-next[data-theme] body #todayQueue .today-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0; }
html.ui-next[data-theme] body :is(#todayQueue .today-h, #todoCard .sg-card-head h3, #nx-x#nx-y#nx-z):not(.nx-x) { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; margin: 0 !important; }
html.ui-next[data-theme] body #todayQueue .today-count { display: none; }
html.ui-next[data-theme] body :is(#todayQueue .src-head, #nx-x#nx-y#nx-z):not(.nx-x) { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body :is(#todayQueue .src-pill, #nx-x#nx-y#nx-z):not(.nx-x) { all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 auto; height: 44px !important; min-height: 44px !important; padding: 0 16px; border-radius: 22px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; background: var(--nx-soft); color: var(--nx-text); }
html.ui-next[data-theme] body :is(#todayQueue .src-pill.is-active, #todayQueue .src-pill[aria-pressed="true"], #nx-x#nx-y#nx-z):not(.nx-x) { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body #todayQueue .src-pill b { font-weight: 600; }
html.ui-next[data-theme] body #todayQueue .today-list { display: flex; flex-direction: column; gap: 0; max-height: none !important; overflow: visible !important; margin: 0; padding: 0; background: none; border: 0; mask-image: none !important; -webkit-mask-image: none !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-item, #nx-x#nx-y#nx-z):not(.nx-x) { display: grid !important; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; margin: 0 !important;
  padding: 12px 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
html.ui-next[data-theme] body #todayQueue .today-item + .today-item { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme] body #todayQueue .today-ico { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body #todayQueue :is(.today-payment, .today-cashrisk, .today-paymentcheck, .today-paymentunmatched) .today-ico { background: var(--nx-warm-bg); color: var(--nx-warm-fg); }
html.ui-next[data-theme] body #todayQueue .today-ico .material-symbols-outlined { font-size: 20px; color: inherit; }
html.ui-next[data-theme] body #todayQueue .today-body { min-width: 0; }
html.ui-next[data-theme] body :is(#todayQueue .today-title, #nx-x#nx-y#nx-z):not(.nx-x) { font: 600 var(--nx-t-body)/1.45 var(--nx-font) !important; color: var(--nx-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body :is(#todayQueue .today-sub, #todayQueue .today-sub *, #nx-x#nx-y#nx-z):not(.nx-x) { font-size: var(--nx-t-body) !important; color: var(--nx-muted) !important; }
html.ui-next[data-theme] body #todayQueue .today-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body :is(#todayQueue .today-do, #nx-x#nx-y#nx-z):not(.nx-x) { height: 44px !important; min-height: 44px !important; padding: 0 18px !important; border-radius: 22px !important; border: 0 !important; box-shadow: none !important;
  background: var(--nx-text) !important; color: var(--nx-bg) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; }
html.ui-next[data-theme] body :is(#todayQueue .today-do.is-recommended, #nx-x#nx-y#nx-z):not(.nx-x) { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-done, #nx-x#nx-y#nx-z):not(.nx-x) { width: 44px !important; height: 44px !important; border-radius: 50% !important; border: 0 !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; display: inline-flex; align-items: center; justify-content: center; }
html.ui-next[data-theme] body :is(#todayQueue .today-dismiss, #nx-x#nx-y#nx-z):not(.nx-x) { height: 44px !important; min-height: 44px !important; padding: 0 8px !important; border: 0 !important; background: none !important; color: var(--nx-muted) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; }
html.ui-next[data-theme] body #todoCard .sg-card-head { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 0; border: 0; }
html.ui-next[data-theme] body #todoCard .sg-trend-total { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; background: var(--nx-accent); color: var(--nx-ink); font: 600 var(--nx-t-small)/1 var(--nx-font) !important; }
html.ui-next[data-theme] body #todoCard .sg-list { display: flex; flex-direction: column; margin: 0; padding: 0; }
html.ui-next[data-theme] body :is(#todoCard .sg-row, #nx-x#nx-y#nx-z):not(.nx-x) { display: grid !important; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 12px 0 !important; margin: 0; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #todoCard .sg-row + .sg-row { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme] body :is(#todoCard .sg-row-ico, #nx-x#nx-y#nx-z):not(.nx-x) { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--nx-soft); color: var(--nx-text); font-size: 20px !important; }
html.ui-next[data-theme] body #todoCard .sg-row-main { display: flex; flex-direction: column; min-width: 0; }
html.ui-next[data-theme] body :is(#todoCard .sg-row-main b, #nx-x#nx-y#nx-z):not(.nx-x) { font: 600 var(--nx-t-body)/1.45 var(--nx-font) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body :is(#todoCard .sg-row-main small, #nx-x#nx-y#nx-z):not(.nx-x) { font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; color: var(--nx-muted) !important; }
html.ui-next[data-theme] body :is(#todoCard .sg-done, #nx-x#nx-y#nx-z):not(.nx-x) { width: 44px !important; height: 44px !important; border-radius: 50% !important; border: 0 !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; display: inline-flex; align-items: center; justify-content: center; }
html.ui-next[data-theme] body .nx-tools .search-shell > .material-symbols-outlined { position: static !important; left: auto !important; transform: none !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-ico, #todoCard .sg-row-ico, #nx-x#nx-y#nx-z):not(.nx-x) { display: inline-flex !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-pane, #nx-x#nx-y#nx-z):not(.nx-x) { display: flex; flex-direction: column; gap: var(--nx-gap-card); background: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] body #todayQueue .today-pane[hidden] { display: none !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-list, #nx-x#nx-y#nx-z):not(.nx-x) { background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
/* Body size for every word inside the new pieces (the app's type rule shrinks spans to its own body size)… */
html.ui-next[data-theme] body :is(.nx-page, .nx-col, #nxHome, .nx-hero, .nx-tile, .nx-row, .nx-line, .nx-ph, .nx-box, .nx-banner, .nx-ask, #nx-x) :is(span, b, small, a, label, p, strong):not(.material-symbols-outlined) { font-size: var(--nx-t-body) !important; }
/* …and the few that are deliberately small print or bigger. */
html.ui-next[data-theme] body :is(.nx-datechip span, .nx-wk-v, .nx-wk-x, .nx-hero-tiles small, .nx-agenda-t small, .nx-ask-top span, .nx-cal-dow, .nx-pill, #nx-x#nx-y#nx-z):not(.nx-x) { font-size: var(--nx-t-small) !important; line-height: 1.3 !important; }
html.ui-next[data-theme] body :is(.nx-datechip b, #nx-x#nx-y#nx-z):not(.nx-x) { font-size: var(--nx-t-h2) !important; line-height: 1.1 !important; }
html.ui-next[data-theme] body :is(.nx-datechip.is-due b, #nx-x#nx-y#nx-z):not(.nx-x) { font-size: 18px !important; }
html.ui-next[data-theme] body :is(.nx-big, #nx-x#nx-y#nx-z):not(.nx-x) { font-size: var(--nx-t-big) !important; line-height: 1 !important; }
html.ui-next[data-theme] body :is(.nx-tile-v, #nx-x#nx-y#nx-z):not(.nx-x) { font-size: var(--nx-t-title) !important; line-height: 1.15 !important; }
html.ui-next[data-theme] body :is(.nx-tile-v.is-sm, #nx-x#nx-y#nx-z):not(.nx-x) { font-size: var(--nx-t-h2) !important; line-height: 1.2 !important; }
/* A project: the head runs the full width of the pane, in the new look's type. */
html.ui-next[data-theme] #projectDetailPanel :is(.dlp-cols2 > *, #nx-x#nx-y#nx-z):not(.nx-x) { width: 100% !important; max-width: none !important; margin: 0 !important; flex: 0 0 auto !important; box-sizing: border-box; }
html.ui-next[data-theme] #projectDetailPanel :is(.dlp-scroll > .proj-rows, #nx-x#nx-y#nx-z):not(.nx-x) { width: 100% !important; max-width: none !important; margin: 0 !important; }
html.ui-next[data-theme] body :is(.nx-ph, .nx-page, .nx-col, #nxHome, #nx-x) :not(.material-symbols-outlined) { font-family: var(--nx-font); }
html.ui-next[data-theme] body :is(.nx-ph, .nx-page, .nx-col, #nxHome) :is(.nx-title, .nx-h2, .nx-big, .nx-tile-v, .nx-hero-title) { font-family: var(--nx-head) !important; }
html.ui-next[data-theme] :is(#projectDetailPanel .dlp-tab, #dealDetailContent .dlp-tab, #nx-x#nx-y#nx-z):not(.nx-x) {
  all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 auto; height: 44px !important; min-height: 44px !important; padding: 0 16px !important; border-radius: 22px !important; display: inline-flex !important; align-items: center;
  white-space: nowrap; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; background: var(--nx-card) !important; color: var(--nx-text) !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] :is(#projectDetailPanel .dlp-tab.active, #dealDetailContent .dlp-tab.active, #nx-x#nx-y#nx-z):not(.nx-x) { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] :is(#projectDetailPanel .dlp-tab::after, #dealDetailContent .dlp-tab::after) { display: none !important; }
html.ui-next[data-theme] :is(#projectDetailPanel .dlp-tab[data-tab="messages"], #dealDetailContent .dlp-tab[data-tab="messages"], #nx-x#nx-y#nx-z):not(.nx-x) { display: none !important; }
html.ui-next[data-theme] #projectDetailPanel .proj-tabbody > p.muted.small { font-size: var(--nx-t-small) !important; }
html.ui-next[data-theme] :is(#projectDetailPanel .dlp-idcard, #nx-x#nx-y#nx-z):not(.nx-x) { align-items: stretch !important; text-align: left; }
html.ui-next[data-theme] .nx-ph { width: 100%; }
/* Post: each deliverable its own card with a progress bar; Finance: a payment is one line. */
html.ui-next[data-theme] #projectDetailPanel :is(.proj-deliv-list, #nx-x#nx-y#nx-z):not(.nx-x) { display: flex !important; flex-direction: column; gap: var(--nx-gap-card) !important; background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] #projectDetailPanel :is(.proj-deliv-row, #nx-x#nx-y#nx-z):not(.nx-x) { background: var(--nx-card) !important; border: 0 !important; border-radius: var(--nx-r-card) !important; padding: 16px !important; margin: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] #projectDetailPanel .nx-prog { height: 8px; border-radius: 4px; background: var(--nx-soft); overflow: hidden; margin-top: 12px; }
html.ui-next[data-theme] #projectDetailPanel .nx-prog > span { display: block; height: 100%; border-radius: 4px; background: #8cc63f; }
html.ui-next[data-theme] #projectDetailPanel :is(.proj-pay-row, #nx-x#nx-y#nx-z):not(.nx-x) { display: grid !important; grid-template-columns: 170px 140px 170px minmax(0, 1fr) 44px; gap: 8px; align-items: center; padding: 12px !important; margin: 0 0 8px !important; border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; }
html.ui-next[data-theme] #projectDetailPanel :is(.proj-pay-del, #nx-x#nx-y#nx-z):not(.nx-x) { width: 44px !important; height: 44px !important; border-radius: 50% !important; border: 0 !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; display: inline-flex; align-items: center; justify-content: center; }
html.ui-next[data-theme] :is(#projectDetailPanel .dlp-tabs, #dealDetailContent .dlp-tabs, #nx-x#nx-y#nx-z):not(.nx-x) { gap: 8px !important; }
html.ui-next { background: var(--nx-bg); }

/* ── THE LEAD (right side of Sales), board: Lead booking / activity ───────────────────────────── */
html.ui-next[data-theme] #dealDetailContent :is(.dlp-scroll, #nx-x#nx-y#nx-z):not(.nx-x) { padding: 28px 20px 60px !important; }
html.ui-next[data-theme] #dealDetailContent :is(.dlp-cols2 > *, #nx-x#nx-y#nx-z):not(.nx-x) { width: 100% !important; max-width: none !important; margin: 0 !important; flex: 0 0 auto !important; box-sizing: border-box; }
html.ui-next[data-theme] #dealDetailContent :is(.dlp-idcard, #nx-x#nx-y#nx-z):not(.nx-x) { background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; display: flex !important; flex-direction: column; align-items: stretch !important; gap: var(--nx-gap-section) !important; }
html.ui-next[data-theme] #dealDetailContent .dlp-idcard > :is(.dlp-name-row, .dlp-contact-line, .dlp-head-actions) { display: none !important; }
html.ui-next[data-theme] #dealDetailContent .nx-ph-btns.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.ui-next[data-theme] #dealDetailContent :is(.nx-ph-name .dlp-deal-name, #nx-x#nx-y#nx-z):not(.nx-x) { display: block; font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; color: var(--nx-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; }
html.ui-next[data-theme] #dealDetailContent .nx-stage-chip, html.ui-next[data-theme] #dealDetailContent .nx-owner-chip { position: relative; display: inline-flex; align-items: center; height: 44px; border-radius: 22px; background: var(--nx-card); }
html.ui-next[data-theme] #dealDetailContent .nx-stage-chip .nx-dot { position: absolute; left: 16px; pointer-events: none; }
html.ui-next[data-theme] #dealDetailContent :is(.nx-stage-chip select, #nx-x#nx-y#nx-z):not(.nx-x) { appearance: none; -webkit-appearance: none; height: 44px !important; min-height: 44px; padding: 0 34px 0 32px !important; border: 0 !important; border-radius: 22px !important;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2356594f' stroke-width='2.5' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 14px center !important;
  font: 600 var(--nx-t-body)/1 var(--nx-font) !important; color: var(--nx-text) !important; cursor: pointer; max-width: 260px; }
html.ui-next[data-theme] #dealDetailContent .nx-owner-chip:empty { display: none; }
html.ui-next[data-theme] #dealDetailContent .nx-owner-chip :is(select, button, span, .dlp-assign-slot) { font: 600 var(--nx-t-body)/1 var(--nx-font) !important; }
html.ui-next[data-theme] #dealDetailContent :is(.nx-owner-chip select, #nx-x#nx-y#nx-z):not(.nx-x) { height: 44px !important; padding: 0 16px !important; border: 0 !important; background: transparent !important; border-radius: 22px !important; }
html.ui-next[data-theme] #dealDetailContent .nx-owner-chip > .dlp-assign-slot { padding: 0 16px; display: inline-flex; align-items: center; height: 44px; }
/* Next follow-up: one card. */
html.ui-next[data-theme] #dealDetailContent :is(#dealNextFu, #nx-x#nx-y#nx-z):not(.nx-x) { display: flex; flex-direction: column; gap: 2px; margin: 0 !important; padding: 16px !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; border: 0 !important; }
html.ui-next[data-theme] #dealDetailContent #dealNextFu .dl-label { font-weight: 600 !important; color: var(--nx-text) !important; margin: 0; }
html.ui-next[data-theme] #dealDetailContent #dealNextFu .next-fu { margin: 0; color: var(--nx-muted); }
html.ui-next[data-theme] #dealDetailContent #dealNextFu .next-fu b { font-weight: 400; }
/* Booking pane: sections are the board's sections — a heading (20) over cards. */
html.ui-next[data-theme] #dealDetailContent .dlp-pane { padding: 0 !important; background: none !important; display: flex; flex-direction: column; gap: var(--nx-gap-section); }
html.ui-next[data-theme] #dealDetailContent .dlp-pane[hidden] { display: none !important; }
html.ui-next[data-theme] #dealDetailContent .dlp-pane > :is(.dl-section, .dlp-stat) { margin: 0 !important; padding: 16px !important; border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; box-shadow: none !important; }
html.ui-next[data-theme] #dealDetailContent .dlp-pane > .dl-section > .dlp-pane-hrow:first-child .dl-label,
html.ui-next[data-theme] #dealDetailContent .dlp-pane > .dl-section > .dl-label:first-child { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] #dealDetailContent .dlp-pane-hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
html.ui-next[data-theme] #dealDetailContent :is(.dlp-q-link, #nx-x#nx-y#nx-z):not(.nx-x) { all: unset; box-sizing: border-box; cursor: pointer; height: 44px; padding: 0 16px; border-radius: 22px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; background: var(--nx-soft); color: var(--nx-text); }
html.ui-next[data-theme] #dealDetailContent :is(.deal-evt-readrow, #nx-x#nx-y#nx-z):not(.nx-x) { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--nx-line); }
html.ui-next[data-theme] #dealDetailContent .deal-evt-readrow:first-child { border-top: 0; }
html.ui-next[data-theme] #dealDetailContent .deal-evt-readname { flex: 1 1 auto; font-weight: 600; color: var(--nx-text); }
html.ui-next[data-theme] #dealDetailContent .deal-evt-readdate { color: var(--nx-muted); }
/* Details: one card of rows — what it is on the left, the field on the right. */
html.ui-next[data-theme] #dealDetailContent .nx-fields { display: flex; flex-direction: column; padding: 4px 16px; }
html.ui-next[data-theme] #dealDetailContent :is(.nx-fields .dl-section, #nx-x#nx-y#nx-z):not(.nx-x) { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] #dealDetailContent :is(.nx-fields .dl-fields, #nx-x#nx-y#nx-z):not(.nx-x) { display: flex !important; flex-direction: column; gap: 0 !important; }
html.ui-next[data-theme] #dealDetailContent :is(.nx-fields :is(.dl-field, .detail-referral, .dlp-owner-row), #nx-x#nx-y#nx-z):not(.nx-x) {
  display: grid !important; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 56px; margin: 0 !important; padding: 6px 0 !important; border-bottom: 1px solid var(--nx-line); }
html.ui-next[data-theme] #dealDetailContent :is(.nx-fields .dl-section:last-child .dl-field:last-child, #nx-x#nx-y#nx-z):not(.nx-x) { border-bottom: 0; }
html.ui-next[data-theme] #dealDetailContent .nx-fields :is(.dl-field > label, .dl-label) { font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; color: var(--nx-muted) !important; margin: 0 !important; }
html.ui-next[data-theme] #dealDetailContent .nx-fields :is(.dl-field-static) { font-weight: 600; color: var(--nx-text); }
html.ui-next[data-theme] #dealDetailContent :is(.nx-fields :is(input, select), #nx-x#nx-y#nx-z):not(.nx-x) { width: 100%; background: transparent !important; padding: 0 !important; font-weight: 600 !important; }
html.ui-next[data-theme] #dealDetailContent .nx-del { all: unset; box-sizing: border-box; cursor: pointer; height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #c0281c; font: 600 var(--nx-t-body)/1 var(--nx-font); }
html.ui-next[data-theme] #dealDetailContent .nx-del .material-symbols-outlined { font-size: 20px; }
html.ui-next[data-theme] #dealDetailContent .nx-details { gap: 10px; }   /* title → card is 10, like every other section title (owner 2026-11-29) */
html.ui-next[data-theme] #dealDetailContent :is(.nx-fields :is(.dlp-stage-row, .dlp-owner-row), #nx-x#nx-y#nx-z):not(.nx-x) { display: none !important; }
html.ui-next[data-theme] #dealDetailContent :is(.nx-ph-name .dlp-deal-name, #nx-x#nx-y#nx-z):not(.nx-x) { margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: auto !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] #dealDetailContent .nx-ph-name { display: block; min-width: 0; }
html.ui-next[data-theme] body :is(.detail-fullpage:not([hidden]), .detail-fullpage .detail-content, #nx-x#nx-y#nx-z):not(.nx-x) { background: var(--nx-bg) !important; }
html.ui-next[data-theme] body :is(#dealDetailContent .dlp, #projectDetailPanel .dlp, #nx-x#nx-y#nx-z):not(.nx-x) { inset: 0 !important; margin: 0 !important; height: 100% !important; border-radius: 0 !important; box-shadow: none !important; border: 0 !important; }
/* Radio choices in pop-ups: a row of 44 chips, the dot 20 at the scale (never oversized). */
html.ui-next[data-theme] body > .modal :is(.seg-toggle, #nx-x#nx-y#nx-z):not(.nx-x) { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
html.ui-next[data-theme] body > .modal :is(.seg-opt, label:has(> input[type="radio"]), #nx-x#nx-y#nx-z):not(.nx-x) { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px !important; border-radius: 22px;
  background: var(--nx-soft); color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; cursor: pointer; white-space: nowrap; }
html.ui-next[data-theme] body > .modal :is(label:has(> input[type="radio"]:checked), #nx-x#nx-y#nx-z):not(.nx-x) { background: var(--nx-accent); color: var(--nx-ink) !important; }
html.ui-next[data-theme] body > .modal :is(input[type="radio"], #nx-x#nx-y#nx-z):not(.nx-x) { width: 20px !important; height: 20px !important; margin: 0 !important; accent-color: #1a2000; }
html.ui-next[data-theme] body > .modal :is(label:has(> input[type="radio"]) > span, #nx-x#nx-y#nx-z):not(.nx-x) { color: inherit !important; font: inherit !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-list, #todayQueue .today-pane, #todayQueue .today-item, #nx-x#nx-y#nx-z):not(.nx-x) { width: 100% !important; max-width: none !important; box-sizing: border-box; }
/* Some pages hide their own icons (Quotes); the header's controls keep theirs wherever they sit. */
html.ui-next[data-theme] body :is(.nx-tools .material-symbols-outlined, #nx-x#nx-y#nx-z):not(.nx-x) { display: inline-flex !important; align-items: center; justify-content: center; font-family: "Material Symbols Outlined" !important; font-size: 20px !important; }

/* ═══ STAGE 2B (2026-11-28): Chat, Service, Crew, Contacts — and the page area fills the screen ═══ */
/* The page area is the new look's colour all the way down (the app's own body rule painted a lighter band
   under short pages like Calendar and Service). */
html.ui-next[data-theme] body:is(.dash-active, :not(.dash-active)) { background: var(--nx-bg) !important; }
html.ui-next body .shell { min-height: 100vh; }

/* ── SPLIT pages built in the new look: the list column (400, sticky, scrolls on its own) · the pane ── */
html.ui-next body:has(.page.nx-split:not([hidden])) .shell { padding: 0 !important; }
html.ui-next[data-theme] body .page.nx-split:not([hidden]) { display: grid !important; grid-template-columns: var(--nx-list-w) minmax(0, 1fr); align-items: start;
  padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; background: transparent !important; min-height: 100vh; }
html.ui-next[data-theme] body .page.nx-split > :is(:not(.nx-split-col, .nx-split-pane, .inbox-shell), #nx-x#nx-y#nx-z) { display: none !important; }
html.ui-next[data-theme] body .nx-split-col { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; }
html.ui-next[data-theme] body .nx-split-col::-webkit-scrollbar { display: none; }
html.ui-next[data-theme] body .nx-col-body { display: flex; flex-direction: column; gap: var(--nx-gap-section); }
html.ui-next[data-theme] body .nx-split-pane { min-width: 0; }
html.ui-next[data-theme] body .nx-pick { min-height: calc(100vh - 88px); display: flex; align-items: center; justify-content: center; color: var(--nx-muted); }
html.ui-next[data-theme] #contactDetailPanel { display: none !important; }
/* The right side's pieces */
html.ui-next[data-theme] body .nx-pane-top { display: flex; justify-content: flex-end; min-height: 44px; margin-bottom: -14px; }
html.ui-next[data-theme] body .nx-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
html.ui-next[data-theme] body .nx-who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html.ui-next[data-theme] body .nx-who-text .nx-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-pane-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
html.ui-next[data-theme] body .nx-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--nx-gap-card); }
html.ui-next[data-theme] body .nx-acts:empty { display: none; }
html.ui-next[data-theme] body :is(.nx-acts, .nx-acts-col) > .nx-btn { width: 100%; }
html.ui-next[data-theme] body .nx-acts-col { display: flex; flex-direction: column; gap: 8px; }
html.ui-next[data-theme] body .nx-acts-sm { display: flex; gap: 8px; flex: 0 0 auto; }
html.ui-next[data-theme] body .nx-center { text-align: center; }
html.ui-next[data-theme] body a.nx-btn { text-decoration: none; }
html.ui-next[data-theme] body .nx-btn.is-dark { background: var(--nx-warm-fg); color: var(--nx-warm-bg); }
html.ui-next[data-theme] body .nx-btn.is-quiet { background: transparent; }
html.ui-next[data-theme] body .nx-banner-act { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
html.ui-next[data-theme] body .nx-banner-text { display: flex; flex-direction: column; min-width: 0; }
html.ui-next[data-theme] body .nx-kv { justify-content: space-between !important; gap: 16px; cursor: default; }
html.ui-next[data-theme] body .nx-kv-k { font-weight: 600; flex: 0 0 auto; }
html.ui-next[data-theme] body .nx-kv-v { color: var(--nx-muted); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ui-next[data-theme] body .nx-kv.is-strong .nx-kv-v { color: var(--nx-text); font-weight: 600; }
html.ui-next[data-theme] body .nx-kv-in { all: unset; box-sizing: border-box; flex: 1 1 auto; min-width: 0; height: 44px; text-align: right; color: var(--nx-muted); font: 400 var(--nx-t-body)/44px var(--nx-font); cursor: text; }
html.ui-next[data-theme] body select.nx-kv-in { appearance: none; text-align-last: right; cursor: pointer; }
html.ui-next[data-theme] body .nx-kv-in:focus { color: var(--nx-text); }
html.ui-next[data-theme] body .nx-kv:focus-within { box-shadow: 0 1px 0 var(--nx-accent); }
html.ui-next[data-theme] body .nx-icontile.is-sm { width: 36px; height: 36px; border-radius: 10px; color: #fff; }
html.ui-next[data-theme] body .nx-icontile.is-orange { background: #f0932b; }
html.ui-next[data-theme] body .nx-icontile.is-grey { background: #8a8a85; }
html.ui-next[data-theme] body .nx-icontile.is-red { background: #e5534b; }
html.ui-next[data-theme] body .nx-icontile.is-pink { background: #c13584; }
html.ui-next[data-theme] body .nx-icontile.is-blue { background: #3d8bf2; }
html.ui-next[data-theme] body .nx-icontile.is-purple { background: #8b5cf6; }
html.ui-next[data-theme] body .nx-icontile.is-green { background: #3aa757; }
html.ui-next[data-theme] body .nx-line.is-open { background: var(--nx-soft); margin: 0 -16px; padding-left: 16px !important; padding-right: 16px !important; }
html.ui-next[data-theme] body .nx-line.is-quiet { opacity: .62; }
html.ui-next[data-theme] body .nx-line > .nx-pill { margin-left: auto; }
html.ui-next[data-theme] body .nx-line-r.is-muted { color: var(--nx-muted); font-weight: 400; }
html.ui-next[data-theme] body .nx-row-time { color: var(--nx-muted); white-space: nowrap; }
html.ui-next[data-theme] body .nx-row-wrap { white-space: normal; }
html.ui-next[data-theme] body .nx-ch { color: #14833f; font-weight: 600; }
html.ui-next[data-theme] body .nx-ch.is-ig { color: #b8246f; }
html.ui-next[data-theme][data-theme="dark"] body .nx-ch { color: #5fd38d; }
html.ui-next[data-theme][data-theme="dark"] body .nx-ch.is-ig { color: #ff7ab8; }
html.ui-next[data-theme] body .nx-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px;
  background: var(--nx-accent); color: var(--nx-ink); font: 600 var(--nx-t-small)/1 var(--nx-font) !important; }
html.ui-next[data-theme] body .nx-chip.is-on .nx-count { background: var(--nx-ink); color: var(--nx-accent); }
html.ui-next[data-theme] body .nx-pill-btn { all: unset; position: relative; cursor: pointer; display: inline-flex; padding: 2px 9px; border-radius: 10px; background: var(--nx-accent); color: var(--nx-ink); font: 600 var(--nx-t-small)/1.45 var(--nx-font) !important; white-space: nowrap; }
html.ui-next[data-theme] body .nx-pill-btn::after { content: ""; position: absolute; inset: -12px -6px; }   /* a 44 touch target around the small pill */
html.ui-next[data-theme] body .nx-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--nx-card); color: var(--nx-muted); cursor: text; }
html.ui-next[data-theme] body .nx-search input { all: unset; flex: 1 1 auto; min-width: 0; height: 44px; color: var(--nx-text); font: 400 var(--nx-t-body)/44px var(--nx-font); }
html.ui-next[data-theme] body .nx-back { align-self: flex-start; padding: 0 16px 0 10px; margin-top: -14px; }
html.ui-next[data-theme] body .nx-quote { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
html.ui-next[data-theme] body .nx-quote > .nx-muted { font-size: var(--nx-t-small) !important; }
html.ui-next[data-theme] body .nx-quote > b { font-weight: 600; }
html.ui-next[data-theme] body .nx-textarea { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 72px; padding: 16px; color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); white-space: pre-wrap; cursor: text; }
html.ui-next[data-theme] body .nx-textarea::placeholder, html.ui-next[data-theme] body :is(.nx-search, .nx-composer) input::placeholder { color: var(--nx-muted); }
/* Conversation bubbles (Service): theirs on a card, the studio's in lime; who and when under the words. */
html.ui-next[data-theme] body .nx-bubbles { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body .nx-bubble { align-self: flex-start; max-width: 70%; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 18px; background: var(--nx-card); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-bubble small { align-self: flex-end; color: var(--nx-muted); font-size: var(--nx-t-small) !important; }
html.ui-next[data-theme] body .nx-bubble.is-out { align-self: flex-end; background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-bubble.is-out small { color: var(--nx-ink-2); }
html.ui-next[data-theme] body .nx-composer { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 6px 0 16px; box-sizing: border-box; border-radius: 28px; background: var(--nx-card); }
html.ui-next[data-theme] body .nx-composer input { all: unset; flex: 1 1 auto; min-width: 0; height: 44px; color: var(--nx-text); font: 400 var(--nx-t-body)/44px var(--nx-font); }
html.ui-next[data-theme] body .nx-send { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nx-accent); color: var(--nx-ink); flex: 0 0 auto; }
html.ui-next[data-theme] body :is(.nx-send, .nx-pill-btn, #nx-x#nx-y#nx-z):not(.nx-x) { min-height: 0 !important; }
html.ui-next[data-theme] body :is(.nx-send, #nx-x#nx-y#nx-z):not(.nx-x) { height: 44px !important; }
html.ui-next[data-theme] body :is(.nx-split-pane, #nx-x) :is(span, b, small, a, label, p, strong, input, select, textarea):not(.material-symbols-outlined):not(.nx-pill):not(.nx-count):not(.nx-pill-btn) { font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] body :is(.nx-bubble small, .nx-quote > .nx-muted, .nx-col .nx-row-time, .nx-datechip span, #nx-x#nx-y#nx-z):not(.nx-x) { font-size: var(--nx-t-small) !important; }

/* ── CHAT: the new column on the left; the chat's own thread (composer, take over, window) on the right ── */
html.ui-next body.chat-active .shell { padding: 0 !important; }
html.ui-next[data-theme] body #page-conversations.nx-split:not([hidden]) { height: 100vh; overflow: hidden; }
html.ui-next[data-theme] body #page-conversations .inbox-shell { display: block !important; height: 100vh; min-width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important; grid-template-columns: none !important; }
html.ui-next[data-theme] body #page-conversations .inbox-list-pane { display: none !important; }
html.ui-next[data-theme] body #page-conversations .inbox-thread-pane { display: flex !important; flex-direction: column; height: 100vh; min-width: 0; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html.ui-next[data-theme] body #inboxThreadEmpty { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; color: var(--nx-muted); background: none !important; border: 0 !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body #inboxThread:not([hidden]) { display: flex !important; flex-direction: column; gap: var(--nx-gap-card); height: 100%; min-height: 0; box-sizing: border-box; padding: 28px 20px 20px;
  background: transparent !important; border: 0 !important; color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body #inboxThread .inbox-thread-head { display: flex !important; align-items: center; gap: 12px; min-height: 52px; padding: 0 !important; margin: 0 !important; border: 0 !important;
  background: none !important; box-shadow: none !important; position: static !important; }
html.ui-next[data-theme] body #inboxThread :is(#inboxBackBtn, #inboxThreadAvatar, #inboxThreadMeta, #inboxThreadChip) { display: none !important; }
html.ui-next[data-theme] body #inboxThread .inbox-thread-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.ui-next[data-theme] body #inboxThread .inbox-thread-nameline { display: flex; min-width: 0; }
html.ui-next[data-theme] body :is(#inboxThreadName, #nx-x#nx-y#nx-z):not(.nx-x) { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0 !important; }
html.ui-next[data-theme] body :is(#nxThreadSub, #nx-x#nx-y#nx-z):not(.nx-x) { color: var(--nx-muted) !important; font-size: var(--nx-t-small) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #inboxThread .inbox-thread-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
html.ui-next[data-theme] body #inboxThread :is(.inbox-thread-actions .button, #nx-x#nx-y#nx-z):not(.nx-x):not([hidden]) { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; padding: 0 !important;
  border-radius: 50% !important; border: 0 !important; box-shadow: none !important; background: var(--nx-card) !important; color: var(--nx-text) !important; font-size: 0 !important; gap: 0 !important;
  display: inline-flex !important; align-items: center; justify-content: center; overflow: hidden; }
html.ui-next[data-theme] body #inboxThread .inbox-thread-actions #inboxCallBtn:not(#nx-x) { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #inboxThread .inbox-thread-actions .button .material-symbols-outlined { font-size: 20px !important; margin: 0 !important; }
/* What Gia is doing, with Take over beside it. */
html.ui-next[data-theme] body .nx-gia-card { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 8px 8px 16px; box-sizing: border-box; border-radius: var(--nx-r-card); background: var(--nx-card); }
html.ui-next[data-theme] body .nx-gia-card:not(:has(#inboxGiaBanner:not([hidden]))):not(:has(#inboxTakeoverBtn:not([hidden]))) { display: none; }
html.ui-next[data-theme] body #inboxGiaBanner { flex: 1 1 auto; display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
  color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] body #inboxGiaBanner[hidden] { display: none !important; }
html.ui-next[data-theme] body #inboxGiaBanner::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #8cc63f; }
html.ui-next[data-theme] body #inboxGiaBanner.is-paused::before { background: #f0932b; }
html.ui-next[data-theme] body #inboxGiaBanner :is(span) { font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] body :is(#inboxTakeoverBtn, #inboxGiaBanner .inbox-banner-act, #nx-x#nx-y#nx-z):not(.nx-x):not([hidden]) { flex: 0 0 auto; height: 44px !important; min-height: 44px !important; padding: 0 16px !important; border-radius: 22px !important;
  border: 0 !important; box-shadow: none !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; display: inline-flex !important; align-items: center; }
/* The messages: theirs on a card, ours in lime; who and when inside the bubble, right-aligned. No initials. */
html.ui-next[data-theme] body #inboxMessages { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--nx-gap-card); padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; }
html.ui-next[data-theme] body #inboxMessages .msg-avatar { display: none !important; }
html.ui-next[data-theme] body #inboxMessages .msg { display: flex; justify-content: flex-start; margin: 0 !important; padding: 0 !important; gap: 0; }
html.ui-next[data-theme] body #inboxMessages .msg.out { justify-content: flex-end; }
html.ui-next[data-theme] body #inboxMessages .msg-col { max-width: 70%; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 18px; background: var(--nx-card); color: var(--nx-text); }
html.ui-next[data-theme] body #inboxMessages .msg.out .msg-col { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body #inboxMessages .msg-bubble { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; color: inherit !important;
  font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; max-width: none !important; }
html.ui-next[data-theme] body #inboxMessages .msg-bubble * { font-size: var(--nx-t-body) !important; color: inherit; }
html.ui-next[data-theme] body #inboxMessages .msg-meta { align-self: flex-end; margin: 0 !important; padding: 0 !important; color: var(--nx-muted) !important; font: 400 var(--nx-t-small)/1.3 var(--nx-font) !important; }
html.ui-next[data-theme] body #inboxMessages .msg.out .msg-meta { color: var(--nx-ink-2) !important; }
html.ui-next[data-theme] body #inboxMessages .msg-meta * { font-size: var(--nx-t-small) !important; }
html.ui-next[data-theme] body #inboxMessages .msg-tag { background: none !important; border: 0 !important; padding: 0 !important; color: inherit !important; font-weight: 600; }
html.ui-next[data-theme] body #inboxMessages .msg-datesep { display: flex; justify-content: center; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
html.ui-next[data-theme] body #inboxMessages .msg-datesep::before, html.ui-next[data-theme] body #inboxMessages .msg-datesep::after { display: none !important; }
html.ui-next[data-theme] body #inboxMessages .msg-datesep span { padding: 2px 10px; border-radius: 10px; background: var(--nx-card) !important; color: var(--nx-muted) !important; font: 400 var(--nx-t-small)/1.45 var(--nx-font) !important; }
/* The message box: + (attach), the words, Gia's suggestion, send. */
html.ui-next[data-theme] body #inboxThread .inbox-compose { display: flex; flex-direction: column; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; position: static !important; }
html.ui-next[data-theme] body #inboxThread .inbox-window-bar:not([hidden]) { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 0 4px !important; border: 0 !important; background: none !important; color: var(--nx-muted) !important; font: 400 var(--nx-t-small)/1.3 var(--nx-font) !important; min-height: 0; }
html.ui-next[data-theme] body #inboxThread .inbox-window-bar * { font-size: var(--nx-t-small) !important; }
html.ui-next[data-theme] body #inboxThread .inbox-compose-row { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #inboxThread .inbox-compose-row[hidden] { display: none !important; }
html.ui-next[data-theme] body :is(#inboxAttachBtn, #inboxFollowUpBtn, #inboxSendBtn, #nx-x#nx-y#nx-z):not(.nx-x) { flex: 0 0 auto; width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; padding: 0 !important;
  border-radius: 50% !important; border: 0 !important; box-shadow: none !important; background: var(--nx-card) !important; color: var(--nx-text) !important; display: inline-flex !important; align-items: center; justify-content: center; position: static !important; }
html.ui-next[data-theme] body #inboxSendBtn:not(#nx-x) { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body :is(#inboxAttachBtn, #inboxFollowUpBtn, #inboxSendBtn) .material-symbols-outlined { font-size: 20px !important; }
html.ui-next[data-theme] body :is(#inboxComposeText, #nx-x#nx-y#nx-z):not(.nx-x) { flex: 1 1 auto; min-width: 0; height: auto !important; field-sizing: content; min-height: 56px !important; max-height: 160px; box-sizing: border-box; padding: 17px 20px !important; margin: 0 !important;
  border-radius: 28px !important; border: 0 !important; box-shadow: none !important; outline: none; background: var(--nx-card) !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; resize: none; }
html.ui-next[data-theme] body #inboxComposeText::placeholder { color: var(--nx-muted); }
/* The chat's own bubble and call rules carry ids; these outrank them (the :is(#nx-x) trick). */
html.ui-next[data-theme] body :is(#inboxMessages .msg-bubble, #nx-x#nx-y#nx-z):not(.nx-x) { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important;
  border-radius: 0 !important; color: inherit !important; max-width: none !important; }
html.ui-next[data-theme] body :is(#inboxMessages .msg-bubble *, #nx-x#nx-y#nx-z):not(.nx-x) { color: inherit !important; }
html.ui-next[data-theme] body :is(#inboxThread .inbox-thread-actions #inboxCallBtn, #nx-x#nx-y#nx-z#nx-w):not(.nx-x):not([hidden]) { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body :is(#inboxMessages .msg-bubble, #inboxMessages .msg-bubble *, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { -webkit-text-fill-color: currentColor !important; color: inherit !important; }
html.ui-next[data-theme] body #inboxMessages .msg-col { color: var(--nx-text); }
/* Inside a section (gap 14) a heading sits 14 over its card, not pulled up. */
html.ui-next[data-theme] body .nx-sec > .nx-sec-head { margin-bottom: 0; }
/* Small labels on the summary card may take two lines in the 400 column (the board wraps them). */
html.ui-next[data-theme] body .nx-split-col .nx-hero-tiles small { white-space: normal; overflow: visible; line-height: 1.3; }
/* The open row in a card of lines: the soft band reaches the card's edges; the words stay put. */
html.ui-next[data-theme] body :is(.nx-line.is-open, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding-left: 16px !important; padding-right: 16px !important; }
/* The app's input, label and button rules (ids inside :is()) — the new look's fields and the pill button outrank them. */
html.ui-next[data-theme] body :is(.nx-kv-in, .nx-search input, .nx-composer input, .nx-textarea, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: transparent !important; border: 0 !important; box-shadow: none !important;
  outline: none !important; margin: 0 !important; min-height: 0 !important; color: var(--nx-text) !important; -webkit-text-fill-color: currentColor !important; font-family: var(--nx-font) !important; border-radius: 0 !important; }
html.ui-next[data-theme] body :is(.nx-kv-in, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { height: 44px !important; padding: 0 !important; text-align: right; color: var(--nx-muted) !important; }
html.ui-next[data-theme] body :is(.nx-kv-in:focus, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { color: var(--nx-text) !important; }
html.ui-next[data-theme] body :is(.nx-search input, .nx-composer input, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { height: 44px !important; padding: 0 !important; }
html.ui-next[data-theme] body :is(.nx-textarea, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding: 16px !important; min-height: 72px !important; background: var(--nx-card) !important; border-radius: var(--nx-r-card) !important; }
html.ui-next[data-theme] body :is(.nx-kv .nx-kv-k, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { color: var(--nx-text) !important; font-weight: 600 !important; }
html.ui-next[data-theme] body :is(.nx-pill-btn, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { height: auto !important; min-height: 0 !important; min-width: 0 !important; width: auto !important; padding: 2px 9px !important; border: 0 !important;
  border-radius: 10px !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important; box-shadow: none !important; font: 600 var(--nx-t-small)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] body :is(#inboxTakeoverBtn, #inboxGiaBanner .inbox-banner-act, #inboxAttachBtn, #inboxFollowUpBtn, #inboxSendBtn, #inboxThread .inbox-thread-actions .button, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { -webkit-text-fill-color: currentColor !important; }
html.ui-next[data-theme] body .nx-box.nx-lines { overflow: clip; }
html.ui-next[data-theme] body .nx-ct-list { display: flex; flex-direction: column; gap: var(--nx-gap-section); }

/* ═══ STAGE 2C (2026-11-28): SETUP — menu · Setup (search, Get Gia live, 7 pages) · the page's rows · the one setting ═══ */
/* Big numbers: proportional figures. Tabular ones gave the comma and ₹ a digit's width ("₹18 , 000"). */
html.ui-next[data-theme] body :is(.nx-big, .nx-tile-v, .px-card-value, #nx-x#nx-y#nx-z):not(.nx-x) { font-variant-numeric: proportional-nums !important; letter-spacing: 0 !important; }

html.ui-next body:has(#page-setup.nx-setup:not([hidden])) .shell { padding: 0 !important; }
html.ui-next[data-theme] body #page-setup.nx-setup:not([hidden]) { display: grid !important; grid-template-columns: 320px var(--nx-list-w) minmax(0, 1fr); align-items: start;
  padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; background: transparent !important; min-height: 100vh; }
html.ui-next[data-theme] body #page-setup.nx-setup > :is(:not(#nxSetNav, #nxSetRows, #nxSetPane), #nx-x#nx-y#nx-z) { display: none !important; }
html.ui-next[data-theme] body :is(#nxSetNav, #nxSetRows) { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; box-sizing: border-box;
  display: flex; flex-direction: column; color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body :is(#nxSetNav, #nxSetRows)::-webkit-scrollbar { display: none; }
html.ui-next[data-theme] body #nxSetNav { padding: 28px 20px 40px; gap: 22px; }
html.ui-next[data-theme] body #nxSetRows { padding: 28px 20px 60px; gap: var(--nx-gap-section); border-left: 1px solid var(--nx-line); }
html.ui-next[data-theme] body #nxSetPane { min-width: 0; min-height: 100vh; box-sizing: border-box; padding: 28px 20px 80px; border-left: 1px solid var(--nx-line);
  display: flex; flex-direction: column; gap: var(--nx-gap-section); color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
/* Setup's own column: search, Get Gia live, the pages */
html.ui-next[data-theme] body .nx-set-find { box-sizing: border-box; height: 44px; flex: 0 0 auto; border-radius: 22px; background: var(--nx-card); color: var(--nx-muted);
  display: flex; align-items: center; gap: 10px; padding: 0 16px; cursor: text; }
html.ui-next[data-theme] body .nx-set-find:focus-within { box-shadow: inset 0 0 0 2px var(--nx-accent); }
html.ui-next[data-theme] body #page-setup .nx-set-find input#nxSetFind { all: unset !important; flex: 1 1 auto; min-width: 0; height: 44px; color: var(--nx-text); font: 400 var(--nx-t-body)/1 var(--nx-font); }
html.ui-next[data-theme] body .nx-set-find input::placeholder { color: var(--nx-muted); opacity: 1; }
html.ui-next[data-theme] body .nx-set-find input::-webkit-search-cancel-button { cursor: pointer; }
html.ui-next[data-theme] body #nxSetLive:empty { display: none; }
html.ui-next[data-theme] body .nx-set-live { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--nx-r-card); background: var(--nx-hero); color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-set-live-top { display: flex; align-items: baseline; gap: 12px; }
html.ui-next[data-theme] body .nx-set-live-top b { flex: 1 1 auto; font-weight: 600; }
html.ui-next[data-theme] body .nx-set-live-top span { color: var(--nx-ink-2); white-space: nowrap; }
html.ui-next[data-theme] body .nx-set-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .5); overflow: hidden; }
html.ui-next[data-theme] body .nx-set-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #95d137 0%, #6fae1c 100%); }
html.ui-next[data-theme] body .nx-btn.nx-set-next { width: 100%; background: var(--nx-ink); color: var(--nx-accent); }
html.ui-next[data-theme] body .nx-set-pages { display: flex; flex-direction: column; padding: 6px; flex: 0 0 auto; }
html.ui-next[data-theme] body .nx-set-page { all: unset; box-sizing: border-box; cursor: pointer; min-height: 48px; border-radius: 16px; padding: 0 10px; display: flex; align-items: center; gap: 12px;
  color: var(--nx-text); font: 600 var(--nx-t-body)/1.2 var(--nx-font); white-space: nowrap; }
html.ui-next[data-theme] body .nx-set-page:hover { background: var(--nx-soft); }
html.ui-next[data-theme] body .nx-set-page.is-on { background: var(--nx-soft); }
html.ui-next[data-theme] body .nx-set-page:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
html.ui-next[data-theme] body .nx-set-page > span:not(.nx-icontile) { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-set-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: #9bd23a; flex: 0 0 auto; }
html.ui-next[data-theme] body .nx-set-page.is-on .nx-set-dot { display: block; }
html.ui-next[data-theme] body .nx-icontile.nx-set-tile { width: 30px; height: 30px; border-radius: 9px; color: #ffffff; }
html.ui-next[data-theme] body .nx-set-line .nx-icontile.nx-set-tile { width: 36px; height: 36px; border-radius: 10px; }
/* The page's rows: a card of lines, an icon tile on the left, the value or a pill on the right */
html.ui-next[data-theme] body .nx-set-line .nx-row-main { min-width: 0; }
html.ui-next[data-theme] body .nx-set-line > svg:last-child { color: var(--nx-muted); margin-left: auto; }
html.ui-next[data-theme] body .nx-set-line .nx-row-side { flex: 0 0 auto; }
html.ui-next[data-theme] body .nx-set-val { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
html.ui-next[data-theme] body .nx-set-line.is-open { background: var(--nx-soft); margin: 0 -16px; padding-left: 16px !important; padding-right: 16px !important; }
html.ui-next[data-theme] body .nx-set-line:first-child.is-open { border-radius: var(--nx-r-card) var(--nx-r-card) 0 0; }
html.ui-next[data-theme] body .nx-set-line:last-child.is-open { border-radius: 0 0 var(--nx-r-card) var(--nx-r-card); }
html.ui-next[data-theme] body .nx-set-line:only-child.is-open { border-radius: var(--nx-r-card); }
html.ui-next[data-theme] body .nx-set-line:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: -2px; }
/* ADVANCED: a folded card at the bottom of the page */
html.ui-next[data-theme] body .nx-set-adv { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body .nx-set-adv > summary { list-style: none; cursor: pointer; }
html.ui-next[data-theme] body .nx-set-adv > summary::-webkit-details-marker { display: none; }
html.ui-next[data-theme] body .nx-set-adv > summary svg:last-child { transition: transform .15s ease; }
html.ui-next[data-theme] body .nx-set-adv[open] > summary svg:last-child { transform: rotate(90deg); }
html.ui-next[data-theme] body .nx-set-adv > summary:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }

/* ── The one setting: its title, the page's autosave word, then the old card itself ── */
html.ui-next[data-theme] body .nx-set-head { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; }
html.ui-next[data-theme] body .nx-set-head .nx-title { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #page-setup .nx-set-head .setup-head-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin: 0 !important; position: static !important; }
html.ui-next[data-theme] body #page-setup .nx-set-head .setup-autosave-hint { min-width: 0; color: var(--nx-muted); font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] body #page-setup .nx-set-head .setup-head-actions.has-failure > .button { height: 44px !important; padding: 0 18px !important; border-radius: 22px !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #nxSetBody > #nxSetExtra:empty { display: none; }
html.ui-next[data-theme] body #page-setup.nx-set-nocards #nxSetPane .setup-layout { display: none !important; }
html.ui-next[data-theme] body #nxSetPane .nx-pane-top { margin-bottom: -14px; }
/* The old wrappers stop being grids and columns: one card, full width. */
html.ui-next[data-theme] body #page-setup #nxSetPane :is(.setup-layout, .setup-main, #setupForm, .integration-grid, #quoteCatalogPanel, .lib-grid) {
  display: flex !important; flex-direction: column; gap: var(--nx-gap-card); grid-template-columns: none !important; width: auto !important; max-width: 100% !important; min-width: 0 !important;
  margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; height: auto !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane :is(.setup-sidebar, #quoteCatalogPanel:not(:has(.nx-on)), .integration-grid:not(:has(.nx-on)), .lib-grid:not(:has(.nx-on))) { display: none !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on {
  box-sizing: border-box; width: auto !important; max-width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; padding: 20px !important;
  border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; box-shadow: none !important; color: var(--nx-text) !important;
  animation: none !important; transform: none !important; opacity: 1 !important; grid-column: auto !important; grid-row: auto !important; overflow: visible !important; }
/* The card's own title is the pane's title now. */
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(.eyebrow, .lib-card-title) { display: none !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on > h2,
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on > :is(.panel-heading, .setup-card-head, .lib-card-head) h2:first-of-type { display: none !important; }
/* One size scale inside the card: 20 for its sub-headings, 14 for everything, 12 for the small print. */
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(h2, h3, h4) { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; text-transform: none !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(p, span, label, b, strong, li, td, th, summary, div, a, em, code, button):not(.material-symbols-outlined):not(.nx-pill) { font-size: var(--nx-t-body) !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(.muted, .small, small, .hint, .note, .logo-sub, .logo-hint):not(.material-symbols-outlined) { font-size: var(--nx-t-small) !important; color: var(--nx-muted) !important; line-height: 1.4 !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(label > span:first-child, .cal-row-title) { color: var(--nx-text) !important; }
/* Fields: 44 tall, the field colour, a hairline. */
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):not([type=hidden]), select) {
  box-sizing: border-box; height: 44px !important; min-height: 44px !important; border-radius: 12px !important; border: 1px solid var(--nx-line) !important; background: var(--nx-field) !important;
  color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.2 var(--nx-font) !important; padding: 0 14px !important; box-shadow: none !important; max-width: 100%; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on textarea { box-sizing: border-box; border-radius: 12px !important; border: 1px solid var(--nx-line) !important; background: var(--nx-field) !important;
  color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; padding: 12px 14px !important; box-shadow: none !important; max-width: 100%; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(input, select, textarea):focus { outline: none !important; border-color: var(--nx-text) !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(.form-grid, .pay-details-grid, .cal-rows) { grid-template-columns: minmax(0, 1fr) !important; }
/* Buttons: 44 tall pills; the card's main one lime. */
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(.button, .lib-add-btn, .lib-add-line) {
  box-sizing: border-box; height: 44px !important; min-height: 44px !important; padding: 0 16px !important; border-radius: 22px !important; border: 0 !important; box-shadow: none !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; font: 600 var(--nx-t-body)/1 var(--nx-font) !important;
  background: var(--nx-soft) !important; color: var(--nx-text) !important; -webkit-text-fill-color: currentColor !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(.button.primary, .lib-add-btn:not(.ghost)) { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(.button, .lib-add-btn, .lib-add-line) .material-symbols-outlined { font-size: 18px !important; color: inherit !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(.button, .lib-add-btn):disabled { opacity: .45; }
/* Found by search: the field lights for a moment. */
html.ui-next[data-theme] body #page-setup .nx-set-flash { box-shadow: 0 0 0 2px var(--nx-accent) !important; border-radius: 12px; transition: box-shadow .3s ease; }
/* Whatever the old page hides stays hidden, whatever the rules above say about display. */
html.ui-next[data-theme] body #page-setup #nxSetPane [hidden] { display: none !important; }
/* Team: the invite fields one under the other, and each teammate a stacked block instead of a 7-column table. */
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel .team-invite-row { display: flex !important; flex-direction: column; align-items: stretch; gap: 8px; }
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel .team-invite-row > * { width: 100% !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel .table-wrap { overflow: visible !important; border: 0 !important; background: transparent !important; margin: 0 !important; padding: 0 !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel :is(table, tbody, tr, td) { display: block !important; width: auto !important; min-width: 0 !important; height: auto !important; background: transparent !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel thead { display: none !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel tr { padding: 14px 0 !important; border: 0 !important; border-top: 1px solid var(--nx-line) !important; border-radius: 0 !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel td { padding: 3px 0 !important; border: 0 !important; text-align: left !important; overflow-wrap: anywhere; }
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel td:first-child { font-weight: 600 !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel td select { display: inline-block !important; width: auto !important; margin: 0 8px 6px 0; }
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel td :is(.button) { margin: 6px 6px 0 0; }
html.ui-next[data-theme] body #page-setup #nxSetPane #teamPanel td.actions-cell { white-space: normal !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on .lib-empty { color: var(--nx-muted) !important; }

/* ═══ STAGE 2X (2026-11-28): quick replies, the Stage pill, crew chats, Record a payment, service link, Setup switches ═══ */
/* Quick replies: one row of 44 chips over the message box, scrolling sideways when it runs out of room. */
html.ui-next[data-theme] body #nxReplies:not([hidden]) { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; justify-content: safe center; }
html.ui-next[data-theme] body #nxReplies::-webkit-scrollbar { display: none; }
html.ui-next[data-theme] body #nxReplies .nx-chip:disabled { opacity: .55; cursor: progress; }
/* The Stage menu: the same 44 pill as Month / Type / Sort; four of them share the column, a long choice ends in … */
html.ui-next[data-theme] body #page-leads .page-heading .page-actions { overflow-x: auto; scrollbar-width: none; }
html.ui-next[data-theme] body #page-leads .page-heading .page-actions::-webkit-scrollbar { display: none; }
html.ui-next[data-theme] body #page-leads .page-heading .page-actions > .dash-filter { flex: 0 0 auto; }
html.ui-next[data-theme] body #page-leads .page-heading .dash-filter-pop { z-index: 300; min-width: 240px; }
/* A reply box that grows with a drafted link (Service, crew chats). */
html.ui-next[data-theme] body .nx-composer:has(textarea) { height: auto; min-height: 56px; align-items: flex-end; padding: 6px 6px 6px 16px; }
html.ui-next[data-theme] body :is(.nx-composer textarea, #nx-x#nx-y#nx-z):not(.nx-x) { all: unset; flex: 1 1 auto; min-width: 0; box-sizing: border-box; min-height: 44px !important; max-height: 160px !important; padding: 12px 0 !important; margin: 0 !important;
  field-sizing: content; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/20px var(--nx-font) !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none !important; border-radius: 0 !important; height: auto !important; resize: none; }
html.ui-next[data-theme] body .nx-composer textarea::placeholder { color: var(--nx-muted); }
/* Crew chats: the conversation takes the right side while it is open. */
html.ui-next[data-theme] body #nxCrewThread { display: none; }
html.ui-next[data-theme] body #page-conversations.nx-crew-open :is(#inboxThread, #inboxThreadEmpty, #nx-x#nx-y) { display: none !important; }
html.ui-next[data-theme] body #page-conversations.nx-crew-open #nxCrewThread { display: flex; flex-direction: column; gap: var(--nx-gap-card); height: 100%; min-height: 0; overflow-y: auto; box-sizing: border-box;
  padding: 28px 20px 20px; color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body #nxCrewThread .nx-bubbles { flex: 1 1 auto; }
html.ui-next[data-theme] body #nxCrewThread .nx-bubble b { font-weight: 600; }
html.ui-next[data-theme] body #nxCrewThread .nx-bubble .nx-acts-sm { margin-top: 6px; flex-wrap: wrap; }
/* Record a payment: the pop-up's fields. */
html.ui-next[data-theme] body .nx-paypop { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body .nx-paypop .nx-h2 { margin: 0; }
html.ui-next[data-theme] body .nx-paypop .nx-box { background: var(--nx-soft); }
html.ui-next[data-theme] body .nx-paypop .nx-payjob { cursor: pointer; }
html.ui-next[data-theme] body .nx-paypop .nx-payjob input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: #1a2000; }
html.ui-next[data-theme] body .nx-field { display: flex; flex-direction: column; gap: 6px; color: var(--nx-muted); font: 400 var(--nx-t-body)/1.4 var(--nx-font); }
html.ui-next[data-theme] body :is(.nx-field > input, #nx-x#nx-y#nx-z):not(.nx-x) { box-sizing: border-box; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--nx-line); background: var(--nx-field);
  color: var(--nx-text); font: 400 var(--nx-t-body)/1.2 var(--nx-font); outline: none; color-scheme: light dark; }
html.ui-next[data-theme] body .nx-field > input:focus { border-color: var(--nx-text); }
html.ui-next[data-theme] body .nx-btn-wide { width: 100%; justify-content: center; }
html.ui-next[data-theme] body .nx-btn:disabled { opacity: .45; cursor: default; }
/* Setup switches: the board's lime switch (50 × 30, a 24 knob, no On/Off word), not the old 62 × 24 pill. */
html.ui-next[data-theme] body #page-setup :is(input.switch, :is(.toggle-row, .setup-toggle, .switch-row) input[type="checkbox"]) {
  width: 50px !important; height: 30px !important; min-height: 30px !important; border-radius: 15px; background: var(--nx-soft) !important; box-shadow: inset 0 0 0 1px var(--nx-line); }
html.ui-next[data-theme] body #page-setup :is(input.switch, :is(.toggle-row, .setup-toggle, .switch-row) input[type="checkbox"])::before {
  top: 3px; left: 3px; width: 24px; height: 24px; background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
html.ui-next[data-theme] body #page-setup :is(input.switch, :is(.toggle-row, .setup-toggle, .switch-row) input[type="checkbox"])::after { content: none !important; }
html.ui-next[data-theme] body #page-setup :is(input.switch, :is(.toggle-row, .setup-toggle, .switch-row) input[type="checkbox"]):checked { background: var(--nx-accent) !important; box-shadow: none; }
html.ui-next[data-theme] body #page-setup :is(input.switch, :is(.toggle-row, .setup-toggle, .switch-row) input[type="checkbox"]):checked::before { transform: translateX(20px); background: var(--nx-ink); box-shadow: none; }
html.ui-next[data-theme] body #page-setup :is(input.switch, :is(.toggle-row, .setup-toggle, .switch-row) input[type="checkbox"]):focus-visible { outline: 2px solid var(--nx-text); outline-offset: 2px; }
html.ui-next[data-theme="dark"] body #page-setup :is(input.switch, :is(.toggle-row, .setup-toggle, .switch-row) input[type="checkbox"]):not(:checked)::before { background: #a6a6a6; }
/* Plain ticks and choices in the Setup cards: 22, the ink colour when on. */
html.ui-next[data-theme] body #page-setup #nxSetPane .setup-section.nx-on :is(input[type="checkbox"], input[type="radio"]):not(.switch):not(:is(.toggle-row, .setup-toggle, .switch-row) *) { width: 22px !important; height: 22px !important; accent-color: #1a2000; }
/* The leads filter menus (Stage, Month, Type, Sort): 44 rows, left-aligned, the count on the right. */
html.ui-next[data-theme] body :is(#page-leads, #page-conversations) .dash-filter-pop { box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: 6px !important; border-radius: 22px !important; border: 0 !important;
  background: var(--nx-card) !important; box-shadow: 0 12px 40px rgba(0, 0, 0, .22) !important; max-height: 60vh; overflow-y: auto; }
html.ui-next[data-theme] body :is(#page-leads, #page-conversations) .dash-filter-pop[hidden] { display: none !important; }
html.ui-next[data-theme] body :is(#page-leads, #page-conversations) .dash-filter-pop .dash-filter-opt { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 44px; padding: 0 14px; border-radius: 16px; cursor: pointer; white-space: nowrap; color: var(--nx-text); font: 400 var(--nx-t-body)/1.2 var(--nx-font); }
html.ui-next[data-theme] body :is(#page-leads, #page-conversations) .dash-filter-pop .dash-filter-opt:is(:hover, :focus-visible) { background: var(--nx-soft); }
html.ui-next[data-theme] body :is(#page-leads, #page-conversations) .dash-filter-pop .dash-filter-opt.is-current { background: var(--nx-soft); font-weight: 600; }
html.ui-next[data-theme] body :is(#page-leads, #page-conversations) .dash-filter-pop .dash-filter-opt .muted { color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1 var(--nx-font) !important; }
html.ui-next[data-theme] body .nx-paypop .nx-chip:not(.is-on) { background: var(--nx-soft); }
html.ui-next[data-theme] body .nx-paypop :is(.nx-payjob, .nx-field > span) { font-weight: 400 !important; }
html.ui-next[data-theme] body .nx-paypop .nx-field > span { color: var(--nx-muted) !important; font-size: var(--nx-t-body) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body .nx-paypop .nx-payjob .nx-row-name { font-weight: 600; }
html.ui-next[data-theme] body .nx-paypop .nx-payjob .nx-row-sub { font-weight: 400; color: var(--nx-muted); }
html.ui-next[data-theme] body #nxCrewThread .nx-bubble .nx-btn:not(.is-dark) { background: var(--nx-soft); }
html.ui-next[data-theme] body #page-setup #nxSetPane .wh-row { grid-template-columns: minmax(64px, 1fr) minmax(0, 96px) 18px minmax(0, 96px) 50px !important; }

/* ═══ STAGE 2D (2026-11-28): every pop-up · Money · Reports · Weekly review · Needs you · Search · Ask Gia · problem states · admin ═══ */
/* ── Every pop-up, whatever built it: a veil over the page, the card 540 wide, 28 corners, as tall as its content,
   centred in the page area right of the menu (screen centre when the menu is hidden). No close / Cancel button. ── */
html.ui-next[data-theme] body :is(.sg-dialog-veil, .px-modal-ov, .cal-modal-veil, .lib-modal-overlay, .dup-modal-veil, .tpl-modal, #nx-x#nx-y):not(.nx-x):not([hidden]) {
  position: fixed; inset: 0; z-index: 1200; display: flex !important; align-items: center !important; justify-content: center !important;
  padding: 40px 40px 40px calc(var(--nx-rail-w) + 40px) !important; box-sizing: border-box; background: rgba(0, 0, 0, .45) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.ui-next[data-theme] body .tpl-modal:not([hidden]) { background: transparent !important; }
html.ui-next[data-theme] body .tpl-modal .tpl-modal-backdrop { background: rgba(0, 0, 0, .45) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.ui-next[data-theme] body :is(.sg-dialog-veil .sg-dialog, .px-modal-ov .px-modal, .cal-modal-veil .cal-modal, .tpl-modal .tpl-modal-card, .lib-modal-overlay > *, .dup-modal-veil > *, #nx-x#nx-y):not(.nx-x) {
  width: 540px !important; max-width: 100% !important; max-height: calc(100vh - 80px) !important; overflow-y: auto; box-sizing: border-box;
  padding: 24px !important; border: 0 !important; border-radius: var(--nx-r-pop) !important; background: var(--nx-card) !important; color: var(--nx-text) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font); animation: none; }
/* Titles 20, words 14, small print 12. */
html.ui-next[data-theme] body :is(.sg-dialog, .px-modal, .cal-modal, .tpl-modal-card, #nx-x#nx-y):not(.nx-x) :is(h2, h3, .tpl-modal-head h3) { margin: 0 0 4px; font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; text-transform: none !important; }
html.ui-next[data-theme] body :is(.sg-dialog, .px-modal, .cal-modal, .tpl-modal-card, #nx-x#nx-y):not(.nx-x) :is(p, span, label, li, td, th, div, b, strong, small) { font-size: var(--nx-t-body); }
html.ui-next[data-theme] body :is(.sg-dialog, .px-modal, .cal-modal, .tpl-modal-card, #nx-x#nx-y):not(.nx-x) :is(p, span, label, div, li) { color: inherit; }
html.ui-next[data-theme] body :is(.sg-dialog, .px-modal, .cal-modal, .tpl-modal-card, #nx-x#nx-y):not(.nx-x) :is(.muted, .small, .cal-add-hint, .ci-sub, .hint) { color: var(--nx-muted) !important; font-size: var(--nx-t-small) !important; }
html.ui-next[data-theme] body .sg-dialog p { color: var(--nx-text) !important; font-size: var(--nx-t-body) !important; margin: 0 0 18px; }
html.ui-next[data-theme] body :is(.px-modal, .cal-modal, #nx-x#nx-y):not(.nx-x) label { display: block; margin: 14px 0 6px; color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
/* No close or Cancel: click outside or Escape closes. */
html.ui-next[data-theme] body :is(.sg-dialog-x, .tpl-modal-close, #tplPickerClose, #supportModalClose, #settingsModalClose, .sg-dialog [data-x="cancel"], .px-modal [data-act="cancel"], .px-modal .px-btn.ghost, .cal-modal [data-cm="cancel"], .lib-modal-x, .dup-modal-x) { display: none !important; }
/* Fields: 44 tall, the field colour; the main action 52 and lime. */
html.ui-next[data-theme] body :is(.tpl-modal, .lib-modal-overlay, .nx-pop-veil, .dup-modal-veil) :is(input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], input:not([type]), select, textarea),
html.ui-next[data-theme] body :is(.px-modal-ov, .cal-modal-veil, .sg-dialog-veil, body > .modal) :is(input[type="datetime-local"], input[type="password"]) {
  box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 14px; border-radius: 14px !important; border: 0 !important; box-shadow: none !important;
  background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] body :is(.tpl-modal, .lib-modal-overlay, .nx-pop-veil, .dup-modal-veil) textarea { padding: 12px 14px; min-height: 88px; }
html.ui-next[data-theme] body :is(.tpl-modal, .lib-modal-overlay, .nx-pop-veil, .dup-modal-veil, .sg-dialog-veil, .px-modal-ov, .cal-modal-veil) :is(input, select, textarea):focus { outline: 2px solid var(--nx-accent) !important; outline-offset: 0; }
html.ui-next[data-theme] body .sg-dialog-veil .sg-dialog .sg-dialog-input { margin: 0 0 18px; }
html.ui-next[data-theme] body :is(.sg-dialog-actions, .px-modal-actions, .cal-modal-actions, .tpl-modal-card .modal-actions, #nx-x#nx-y):not(.nx-x) { display: flex !important; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 20px; border: 0 !important; padding: 0 !important; background: none !important; }
html.ui-next[data-theme] body :is(.sg-dialog-btn, .px-btn, .cal-modal button, .tpl-modal-card :is(.button, button:not(.tpl-modal-close):not(.nx-row):not(.nx-chip):not(.nx-line):not(.mentor-week)), #nx-x#nx-y):not(.nx-x) {
  min-height: 44px; height: 44px; padding: 0 18px; border-radius: 22px !important; border: 0 !important; box-shadow: none !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body :is(.sg-dialog-ok, .sg-choice, .px-btn:not(.ghost), .tpl-modal-card :is(.button.primary, .btn-primary, [type="submit"]), #nx-x#nx-y):not(.nx-x) {
  height: 52px; min-height: 52px; border-radius: 26px !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body .sg-dialog-choices { display: flex; flex-direction: column; gap: 8px; }
html.ui-next[data-theme] body .sg-dialog .sg-choice:not(:first-child) { background: var(--nx-soft) !important; color: var(--nx-text) !important; height: 44px; min-height: 44px; }
html.ui-next[data-theme] body :is(.sg-dialog-ok.is-danger, .px-btn.danger, #nx-x#nx-y):not(.nx-x) { background: #ffd9d4 !important; color: #8a1c10 !important; }
html.ui-next[data-theme="dark"] body :is(.sg-dialog-ok.is-danger, .px-btn.danger, #nx-x#nx-y):not(.nx-x) { background: #4a1f1a !important; color: #ffb4a8 !important; }
/* Ticks inside pop-ups: 20, the ink colour. On/off settings (role=switch / .switch): the lime switch. */
html.ui-next[data-theme] body :is(.tpl-modal, .nx-pop-veil, .px-modal-ov, .cal-modal-veil, body > .modal) :is(input[type="checkbox"], input[type="radio"]):not(.switch):not([role="switch"]) { width: 20px !important; height: 20px !important; min-height: 0 !important; accent-color: #1a2000; }
html.ui-next[data-theme] body :is(.tpl-modal, .nx-pop-veil, .px-modal-ov, .cal-modal-veil, body > .modal) :is(input.switch, input[role="switch"]) {
  appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto; width: 50px !important; height: 30px !important; min-height: 30px !important; margin: 0; border-radius: 15px; cursor: pointer;
  background: var(--nx-soft) !important; box-shadow: inset 0 0 0 1px var(--nx-line); }
html.ui-next[data-theme] body :is(.tpl-modal, .nx-pop-veil, .px-modal-ov, .cal-modal-veil, body > .modal) :is(input.switch, input[role="switch"])::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
html.ui-next[data-theme] body :is(.tpl-modal, .nx-pop-veil, .px-modal-ov, .cal-modal-veil, body > .modal) :is(input.switch, input[role="switch"])::after { content: none !important; }
html.ui-next[data-theme] body :is(.tpl-modal, .nx-pop-veil, .px-modal-ov, .cal-modal-veil, body > .modal) :is(input.switch, input[role="switch"]):checked { background: var(--nx-accent) !important; box-shadow: none; }
html.ui-next[data-theme] body :is(.tpl-modal, .nx-pop-veil, .px-modal-ov, .cal-modal-veil, body > .modal) :is(input.switch, input[role="switch"]):checked::before { transform: translateX(20px); background: var(--nx-ink); box-shadow: none; }

/* ── The summary card (board: hero): label row, the one 40 number, three tiles inside — same in light and dark ── */
html.ui-next[data-theme] body .nx-sumcard { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--nx-r-hero); background: var(--nx-hero); color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-sum-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; }
html.ui-next[data-theme] body .nx-sum-label { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
html.ui-next[data-theme] body .nx-sum-note { color: var(--nx-ink-2) !important; white-space: nowrap; }
html.ui-next[data-theme] body .nx-sum-nav { display: inline-flex; align-items: center; gap: 2px; }
html.ui-next[data-theme] body .nx-sum-nav button { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; margin: -12px -8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-sum-nav button:hover { background: rgba(255, 255, 255, .35); }
html.ui-next[data-theme] body .nx-sum-nav b { padding: 0 10px; }
html.ui-next[data-theme] body .nx-sum-big { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
html.ui-next[data-theme] body .nx-sum-big > span:last-child { color: var(--nx-ink-2) !important; white-space: nowrap; }
html.ui-next[data-theme] body .nx-sum-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
html.ui-next[data-theme] body .nx-sum-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .45); }
html.ui-next[data-theme] body .nx-sum-tile b { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-sum-tile span { font-size: var(--nx-t-small) !important; color: var(--nx-ink-2) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-sumcard :is(.nx-sum-label, .nx-sum-label b, .nx-sum-big span) { color: var(--nx-ink); }
/* A line that is a button: name + line on the left, the value over a pill on the right, then a chevron. */
html.ui-next[data-theme] body .nx-line-row { width: 100%; }
html.ui-next[data-theme] body .nx-line-row .nx-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; max-width: 180px; }
html.ui-next[data-theme] body .nx-line-row .nx-chev { flex: 0 0 auto; display: inline-flex; color: var(--nx-muted); }
html.ui-next[data-theme] body .nx-line-row:hover .nx-row-name { text-decoration: underline; text-underline-offset: 3px; }
html.ui-next[data-theme] body .nx-pill.is-red { background: #ffd9d4; color: #8a1c10; }
html.ui-next[data-theme="dark"] body .nx-pill.is-red { background: #4a1f1a; color: #ffb4a8; }
html.ui-next[data-theme] body .nx-pill.is-green { background: #d6f2dc; color: #14532d; }
html.ui-next[data-theme="dark"] body .nx-pill.is-green { background: #1d3a24; color: #9be3ad; }

/* ── MONEY (full width, board: Extra money / costs) ── */
html.ui-next[data-theme] body #page-dashboard.is-money :is(#homeMore, .money-period, #finBand, #finForecastCell, #sourcesCell) { display: none !important; }
html.ui-next body:has(#page-dashboard.is-money:not([hidden])) .shell { padding: 0 !important; }
html.ui-next[data-theme] body #page-dashboard.is-money { background: transparent !important; padding: 0 !important; }
html.ui-next[data-theme] body #page-dashboard.is-money .dashx-main { display: flex; flex-direction: column; gap: var(--nx-gap-section); padding: 28px 20px 60px !important; max-width: none; }
html.ui-next[data-theme] body #page-dashboard.is-money .money-head { display: flex !important; align-items: center; gap: 12px; padding: 0 !important; margin: 0 !important; min-height: 52px; }
html.ui-next[data-theme] body #page-dashboard.is-money .money-title { margin: 0 !important; font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body .nx-money { display: flex; flex-direction: column; gap: var(--nx-gap-section); }
/* Next 12 months: twelve columns, booked dark green under likely-from-leads light green; a short month gets a red base. */
html.ui-next[data-theme] body .nx-year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 16px; align-items: end; }
html.ui-next[data-theme] body .nx-ycol { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; border-radius: 8px; }
html.ui-next[data-theme] body .nx-ycol:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
html.ui-next[data-theme] body .nx-ybar { display: flex; flex-direction: column; justify-content: flex-end; height: 120px; gap: 2px; }
html.ui-next[data-theme] body .nx-ybar i { display: block; border-radius: 6px; }
html.ui-next[data-theme] body .nx-ybar i.is-solid, html.ui-next[data-theme] body .nx-ykey i.is-solid { background: #4d7c0f; }
html.ui-next[data-theme] body .nx-ybar i.is-soft, html.ui-next[data-theme] body .nx-ykey i.is-soft { background: #a3cf4e; }
html.ui-next[data-theme] body .nx-ycol.is-gap .nx-ybar i.is-solid, html.ui-next[data-theme] body .nx-ykey i.is-gap { background: #c2382b; }
html.ui-next[data-theme] body .nx-ycol:hover .nx-ybar i { filter: brightness(1.08); }
html.ui-next[data-theme] body .nx-yx { text-align: center; font-size: var(--nx-t-small) !important; color: var(--nx-muted); font-weight: 600; }
html.ui-next[data-theme] body .nx-ykey { grid-column: 1 / -1; display: flex; gap: 16px; margin-top: 6px; }
html.ui-next[data-theme] body .nx-ykey span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--nx-t-small) !important; color: var(--nx-muted); }
html.ui-next[data-theme] body .nx-ykey i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
/* One month of money: a pop-up of sections. */
html.ui-next[data-theme] body .nx-monthpop { display: flex; flex-direction: column; gap: var(--nx-gap-section); background: var(--nx-bg); }
html.ui-next[data-theme] body .nx-monthpop .nx-lines { padding: 4px 16px; }

/* ── PROBLEM STATES: empty (+ action) · loading (grey bars, no spinner) · offline banner · couldn't load (+ Try again) · locked ── */
html.ui-next[data-theme] body .nx-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 36px 24px; border-radius: var(--nx-r-card); background: var(--nx-card); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-state > b { font: 600 var(--nx-t-body)/1.3 var(--nx-font); font-size: var(--nx-t-body) !important; }   /* 14, on the scale (audit #58) */
html.ui-next[data-theme] body .nx-state > span:not(.nx-state-icon) { color: var(--nx-muted) !important; max-width: 360px; }
html.ui-next[data-theme] body .nx-state .nx-btn { margin-top: 8px; }
html.ui-next[data-theme] body .nx-state-icon { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--nx-soft); color: var(--nx-text); margin-bottom: 4px; }
html.ui-next[data-theme] body .nx-state.nx-is-error .nx-state-icon { background: var(--nx-warm-bg); color: var(--nx-warm-fg); }
html.ui-next[data-theme] body .nx-state.nx-is-loading { align-items: stretch; gap: 0; padding: 8px 16px; }
html.ui-next[data-theme] body .nx-skel-row { display: grid; grid-template-columns: 1fr 44px; grid-template-rows: auto auto; gap: 8px 16px; align-items: center; padding: 14px 0; }
html.ui-next[data-theme] body .nx-skel-row + .nx-skel-row { border-top: 1px solid var(--nx-line); }
html.ui-next[data-theme] body .nx-skel-row span, html.ui-next[data-theme] body .nx-skel-row i { display: block; height: 12px; border-radius: 6px; background: var(--nx-soft); }
html.ui-next[data-theme] body .nx-skel-row span:first-child { height: 14px; }
html.ui-next[data-theme] body .nx-skel-row i { grid-column: 2; grid-row: 1 / 3; height: 22px; border-radius: 11px; }
html.ui-next[data-theme] body .nx-offline { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--nx-r-card); background: var(--nx-warm-bg); color: var(--nx-warm-fg); }
html.ui-next[data-theme] body .nx-offline :is(b, span) { color: var(--nx-warm-fg) !important; }
html.ui-next[data-theme] body :is(.nx-ycol, #nx-x#nx-y#nx-z):not(.nx-x) { height: auto !important; min-height: 0 !important; padding: 0 !important; display: flex !important; }
html.ui-next[data-theme] body .nx-ybar { width: 100%; align-self: stretch; }

/* ── REPORTS (full width, board: Extra reports) — the report, then City insights in the same type ── */
html.ui-next body:has(#page-insights:not([hidden])) .shell { padding: 0 !important; }
html.ui-next[data-theme] body #page-insights { display: flex; flex-direction: column; gap: var(--nx-gap-section); padding: 28px 20px 60px !important; background: transparent !important; max-width: none !important; }
html.ui-next[data-theme] body #page-insights[hidden] { display: none !important; }
html.ui-next[data-theme] body :is(.nx-reports, #nxRepBody) { display: flex; flex-direction: column; gap: var(--nx-gap-section); }
html.ui-next[data-theme] body .nx-page-head { display: flex; align-items: center; gap: 12px; min-height: 52px; }
html.ui-next[data-theme] body .nx-page-head .nx-head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
html.ui-next[data-theme] body #page-insights .ci-wrap { max-width: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body #page-insights .ci-head { margin: 0; padding: 0; }
html.ui-next[data-theme] body #page-insights .ci-head h1 { margin: 0 0 4px; font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body #page-insights :is(.ci-sub, .ci-foot, .ci-none) { color: var(--nx-muted) !important; font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] body #page-insights .ci-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nx-gap-card); }
html.ui-next[data-theme] body #page-insights .ci-card { margin: 0; padding: 16px; border: 0 !important; box-shadow: none !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body #page-insights .ci-card h2 { margin: 0 0 4px; font: 600 var(--nx-t-body)/1.3 var(--nx-font) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body #page-insights .ci-cities .src-pill { all: unset; box-sizing: border-box; cursor: pointer; height: 44px; padding: 0 16px; border-radius: 22px; display: inline-flex; align-items: center; font: 600 var(--nx-t-body)/1 var(--nx-font); background: var(--nx-card); color: var(--nx-text); }
html.ui-next[data-theme] body #page-insights .ci-cities .src-pill.is-active { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body #page-insights .ci-card :is(.button, button) { height: 44px; border-radius: 22px; }

/* ── WEEKLY REVIEW (full width, board: Extra review): the page area, not a pop-up; Escape or the menu leaves it ── */
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal:not([hidden]) { position: fixed !important; inset: 0 0 0 var(--nx-rail-w) !important; z-index: 55 !important; display: block !important; padding: 0 !important; background: var(--nx-bg) !important; overflow-y: auto; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .tpl-modal-backdrop { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .tpl-modal-card { width: auto !important; max-width: none !important; max-height: none !important; overflow: visible !important; padding: 28px 20px 60px !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important; display: flex; flex-direction: column; gap: var(--nx-gap-section); }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .tpl-modal-head { margin: 0; min-height: 52px; align-items: center; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal #mentorTitle { font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal #mentorSub { display: none; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-weeks { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0; border: 0; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-weeks:empty { display: none; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-week { all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 22px; display: inline-flex; align-items: center;
  font: 600 var(--nx-t-body)/1 var(--nx-font) !important; background: var(--nx-card); color: var(--nx-text); white-space: nowrap; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-week.is-on { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-body { display: flex; flex-direction: column; gap: var(--nx-gap-section); padding: 0; margin: 0; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-summary { margin: 0; padding: 14px 16px; border-radius: var(--nx-r-card); background: var(--nx-warm-bg); color: var(--nx-warm-fg) !important; font-weight: 600; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal :is(.mentor-finding, .mentor-drafts, .mentor-empty) { margin: 0; padding: 16px; border: 0 !important; border-radius: var(--nx-r-card); background: var(--nx-card) !important; color: var(--nx-text); display: flex; flex-direction: column; gap: 10px; box-shadow: none !important; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-headline { margin: 0; font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text); }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal :is(.mentor-why, .mentor-foot, .mentor-act-summary, .mentor-drafts-head p span) { margin: 0; color: var(--nx-muted) !important; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-suggest { margin: 0; display: flex; gap: 10px; align-items: flex-start; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-suggest .material-symbols-outlined { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f0932b; color: #fff; font-size: 20px !important; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal :is(.mentor-actions .button, .mentor-rate, .mentor-empty .button, #nx-x#nx-y):not(.nx-x) { height: 44px !important; min-height: 44px; padding: 0 16px !important; border-radius: 22px !important; border: 0 !important;
  display: inline-flex; align-items: center; gap: 6px; background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal :is(.mentor-rate.is-on, .mentor-actions [data-mentor-act]:not([disabled]), .mentor-empty .button.primary, #nx-x#nx-y):not(.nx-x) { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-rates { display: inline-flex; gap: 8px; margin-left: auto; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-drafts-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-drafts-head > .material-symbols-outlined { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f0932b; color: #fff; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-drafts-head p { margin: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
/* "Review and send": the page's main action, 52 and lime, the full width. */
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal :is([data-mentor-drafts], #nx-x#nx-y):not(.nx-x) { width: 100%; height: 52px !important; justify-content: center; border-radius: 26px !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal :is(.mentor-goals, .mentor-outcomes) { margin: 0; padding: 4px 16px; list-style: none; border-radius: var(--nx-r-card); background: var(--nx-card); }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal :is(.mentor-goals, .mentor-outcomes) li { padding: 14px 0; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal :is(.mentor-goals, .mentor-outcomes) li + li { border-top: 1px solid var(--nx-line); }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-subhead { margin: 0 0 calc(var(--nx-gap-card) - var(--nx-gap-section)); font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; }
/* "Check before it goes": the preview opens as a pop-up over the review (click outside or Escape closes it). */
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-preview:not([hidden]) { position: fixed; z-index: 1250; left: calc(var(--nx-rail-w) + (100vw - var(--nx-rail-w)) / 2); top: 50%; transform: translate(-50%, -50%);
  width: 540px; max-width: calc(100vw - var(--nx-rail-w) - 80px); max-height: calc(100vh - 80px); overflow-y: auto; box-sizing: border-box; padding: 24px; border-radius: var(--nx-r-pop);
  background: var(--nx-card); color: var(--nx-text); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45), 0 20px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-preview::before { content: "Check before it goes"; font: 600 var(--nx-t-h2)/1.2 var(--nx-head); }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-pv-intro { margin: 0; color: var(--nx-muted) !important; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-pv-list { margin: 0; padding: 4px 16px; list-style: none; border-radius: var(--nx-r-card); background: var(--nx-soft); }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-pv-row { padding: 12px 0; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-pv-row + .mentor-pv-row { border-top: 1px solid var(--nx-line); }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-pv-row label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-pv-row input { width: 20px; height: 20px; margin: 0; accent-color: #1a2000; flex: 0 0 auto; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-pv-via { margin-left: auto; color: var(--nx-muted) !important; font-weight: 400; font-size: var(--nx-t-small) !important; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal :is(.mentor-pv-text, .mentor-pv-skip) { margin: 4px 0 0 30px; color: var(--nx-muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-preview .mentor-actions [data-pv-go] { width: 100%; height: 52px !important; justify-content: center; border-radius: 26px !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body #mentorModal .mentor-preview [data-pv-cancel] { display: none !important; }

/* ── ASK GIA (full width, board: Extra askGia): the page area; theirs on a card, yours in lime; the box at the bottom ── */
html.ui-next[data-theme] body #askGiaPanel:not([hidden]) { position: fixed !important; inset: 0 0 0 var(--nx-rail-w) !important; width: auto !important; height: auto !important; max-height: none !important; z-index: 55 !important;
  display: flex !important; flex-direction: column; gap: var(--nx-gap-card); padding: 28px 20px 20px !important; box-sizing: border-box; border: 0 !important; border-radius: 0 !important; background: var(--nx-bg) !important; box-shadow: none !important; transform: none !important; }
html.ui-next[data-theme] body #askGiaPanel .askgia-panel-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #askGiaPanel .askgia-avatar, html.ui-next[data-theme] body #askGiaPanel #askGiaClose, html.ui-next[data-theme] body #askGiaPanel .askgia-status { display: none !important; }
html.ui-next[data-theme] body #askGiaPanel .askgia-title strong { font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body #askGiaPanel .askgia-title { margin-right: auto; }
html.ui-next[data-theme] body #askGiaPanel .askgia-iconbtn { width: 44px !important; height: 44px !important; border-radius: 22px !important; border: 0 !important; background: var(--nx-card) !important; color: var(--nx-text) !important; display: inline-flex; align-items: center; justify-content: center; }
html.ui-next[data-theme] body #askGiaPanel .askgia-thread { flex: 1 1 auto; overflow-y: auto; padding: 0 !important; background: none !important; display: flex; flex-direction: column; gap: 10px; }
html.ui-next[data-theme] body #askGiaPanel .askgia-msg { max-width: min(560px, 70%); padding: 12px 14px !important; border-radius: 18px !important; border: 0 !important; background: var(--nx-card) !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; box-shadow: none !important; }
html.ui-next[data-theme] body #askGiaPanel .askgia-msg.user { align-self: flex-end; background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #askGiaPanel .askgia-msg :is(p, span, b, li) { color: inherit !important; font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] body #askGiaPanel .askgia-tag { display: none; }
html.ui-next[data-theme] body #askGiaPanel .askgia-chips { display: flex !important; flex-wrap: nowrap !important; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 !important; background: none !important; border: 0 !important; }
html.ui-next[data-theme] body #askGiaPanel .askgia-chip { flex: 0 0 auto; height: 44px !important; padding: 0 16px !important; border-radius: 22px !important; border: 0 !important; background: var(--nx-card) !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; }
html.ui-next[data-theme] body #askGiaPanel .askgia-input { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 4px 0 18px !important; border-radius: 26px !important; border: 0 !important; background: var(--nx-card) !important; box-shadow: none !important; margin: 0 !important; }
html.ui-next[data-theme] body #askGiaPanel #askGiaInput { flex: 1 1 auto; height: 44px; border: 0 !important; background: transparent !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; outline: 0; box-shadow: none !important; padding: 0 !important; }
html.ui-next[data-theme] body #askGiaPanel :is(.askgia-send, .askgia-mic) { width: 44px !important; height: 44px !important; border-radius: 22px !important; border: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
html.ui-next[data-theme] body #askGiaPanel .askgia-send { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #askGiaPanel .askgia-mic { background: var(--nx-soft) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body #askGiaPanel :is(.askgia-confirm, .askgia-review) { max-width: min(560px, 80%); border-radius: var(--nx-r-card) !important; }

/* ── SEARCH (full width, board: Extra search): the results take the page area under the box ── */
html.ui-next[data-theme] body #globalSearchResults:not([hidden]) { position: fixed !important; inset: 0 0 0 var(--nx-rail-w) !important; top: 0 !important; width: auto !important; max-width: none !important; max-height: none !important; height: auto !important;
  z-index: 54 !important; overflow-y: auto; box-sizing: border-box; padding: 112px 20px 60px !important; border: 0 !important; border-radius: 0 !important; background: var(--nx-bg) !important; box-shadow: none !important; display: flex !important; flex-direction: column; }
html.ui-next[data-theme] body #globalSearchResults::before { content: "Search"; position: absolute; top: 34px; left: 20px; font: 600 var(--nx-t-title)/1.15 var(--nx-head); color: var(--nx-text); }
html.ui-next[data-theme] body:has(#globalSearchResults:not([hidden])) .nx-tools { position: fixed; top: 28px; right: 20px; z-index: 56; }   /* 28 like every page (audit #93) */
html.ui-next[data-theme] body #globalSearchResults .gs-group-label { margin: var(--nx-gap-section) 0 var(--nx-gap-card); padding: 0 !important; font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; text-transform: none !important; letter-spacing: 0 !important; background: none !important; }
html.ui-next[data-theme] body #globalSearchResults .gs-group-label:first-child { margin-top: 0; }
html.ui-next[data-theme] body #globalSearchResults .gs-opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; background: var(--nx-card); color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body #globalSearchResults .gs-group-label + .gs-opt { border-radius: var(--nx-r-card) var(--nx-r-card) 0 0; }
html.ui-next[data-theme] body #globalSearchResults .gs-opt:not(:has(+ .gs-opt)) { border-radius: 0 0 var(--nx-r-card) var(--nx-r-card); }
html.ui-next[data-theme] body #globalSearchResults .gs-group-label + .gs-opt:not(:has(+ .gs-opt)) { border-radius: var(--nx-r-card); }
html.ui-next[data-theme] body #globalSearchResults .gs-opt + .gs-opt { box-shadow: inset 0 1px 0 var(--nx-line); }
html.ui-next[data-theme] body #globalSearchResults .gs-opt:is(:hover, .is-active, [aria-selected="true"]) { background: var(--nx-soft); }
html.ui-next[data-theme] body #globalSearchResults .gs-opt-body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
html.ui-next[data-theme] body #globalSearchResults .gs-opt-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--nx-text) !important; font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] body #globalSearchResults .gs-opt-sub { color: var(--nx-muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] body #globalSearchResults .gs-opt-tag { flex: 0 0 auto; padding: 2px 9px; border-radius: 10px; background: var(--nx-soft); color: var(--nx-text) !important; font: 600 var(--nx-t-small)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] body #globalSearchResults .gs-more .gs-opt-title { color: var(--nx-muted) !important; font-weight: 600; }
html.ui-next[data-theme] body #globalSearchResults .gs-empty { padding: 36px 16px; text-align: center; border-radius: var(--nx-r-card); background: var(--nx-card); color: var(--nx-muted) !important; }

/* ── ALERTS (the bell): a 540 pop-up in the middle of the page area, a veil behind it ── */
html.ui-next[data-theme] body .nx-tools .notif-menu .notif-pop:not([hidden]) { position: fixed !important; z-index: 1200 !important; top: 50% !important; left: calc(var(--nx-rail-w) + (100vw - var(--nx-rail-w)) / 2) !important; right: auto !important; bottom: auto !important;
  transform: translate(-50%, -50%) !important; width: 540px !important; max-width: calc(100vw - var(--nx-rail-w) - 80px) !important; max-height: calc(100vh - 80px) !important; overflow-y: auto; box-sizing: border-box;
  padding: 24px !important; border: 0 !important; border-radius: var(--nx-r-pop) !important; background: var(--nx-card) !important; color: var(--nx-text) !important;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45), 0 20px 60px rgba(0, 0, 0, .35) !important; display: flex !important; flex-direction: column; gap: var(--nx-gap-card); animation: none !important; }
html.ui-next[data-theme] body .notif-pop .notif-head { padding: 0 !important; margin: 0; border: 0 !important; font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; color: var(--nx-text) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body .notif-pop .notif-feed { display: flex; flex-direction: column; padding: 4px 16px; border-radius: var(--nx-r-card); background: var(--nx-soft); max-height: none !important; overflow: visible !important; }
html.ui-next[data-theme] body .notif-pop .notif-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; cursor: pointer; }
html.ui-next[data-theme] body .notif-pop .notif-row + .notif-row { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme] body .notif-pop .notif-row-title { font: 600 var(--nx-t-body)/1.45 var(--nx-font) !important; color: var(--nx-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .notif-pop .notif-row-body { grid-column: 1; color: var(--nx-muted) !important; font-size: var(--nx-t-body) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .notif-pop .notif-row-foot { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
html.ui-next[data-theme] body .notif-pop .notif-row-when { color: var(--nx-muted) !important; font-size: var(--nx-t-small) !important; }
html.ui-next[data-theme] body .notif-pop .notif-row.is-unread .notif-row-title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 4px; background: #4d7c0f; vertical-align: 1px; }
html.ui-next[data-theme] body .notif-pop .notif-row button { height: 44px !important; padding: 0 16px; border-radius: 22px !important; border: 0 !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; }
html.ui-next[data-theme] body .notif-pop .notif-empty { padding: 20px 0; text-align: center; color: var(--nx-muted) !important; }
html.ui-next[data-theme] body .notif-pop .notif-sep { display: none; }
html.ui-next[data-theme] body .notif-pop .notif-item { display: flex !important; align-items: center; gap: 12px; min-height: 52px !important; height: auto !important; padding: 0 16px !important; border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; }
html.ui-next[data-theme] body .notif-pop .notif-item .notif-label { flex: 1 1 auto; text-align: left; }

/* ── NEEDS YOU on its own page (#/today, board: Extra today): only the queue, under its own title ── */
html.ui-next[data-theme] body #page-dashboard.nx-today :is(#nxHome .nx-home-top, #nxHome .nx-quick, #nxHomeMoney, #nxHomeTiles, .dash-todo-band, #homeComing, #homeMonth, #homeMore, .money-head) { display: none !important; }
html.ui-next[data-theme] body #page-dashboard.nx-today :is(#nxHello, #nxHelloSub, .nx-today-all) { display: none !important; }
html.ui-next[data-theme] body #page-dashboard.nx-today .nx-hello::before { content: "Needs you"; font: 600 var(--nx-t-title)/1.15 var(--nx-head); color: var(--nx-text); }

/* ── SIGN-IN FAMILY (login · forgot · choose your own password · which studio · sign-up · invite · first-time setup) ──
   A centred 540 column, the original Pixxl Studio logo only, fields as a card of rows (label left, value right),
   the main action 52 and lime. Same switch as the app: these pages link next.css and add .ui-next themselves. */
html.ui-next[data-theme] body.login-body, html.ui-next[data-theme] body.invite-body, html.ui-next[data-theme] body:has(> .onbw) { background: var(--nx-bg) !important; color: var(--nx-text) !important; font-family: var(--nx-font) !important; }
html.ui-next[data-theme] .nx-auth-logo { width: 156px; height: auto; margin: 0 auto 28px; }
html.ui-next[data-theme="light"] .nx-auth-logo.nx-l, html.ui-next[data-theme="dark"] .nx-auth-logo.nx-d { display: block !important; }
html.ui-next[data-theme] :is(.login-word, .login-eyebrow, .login-lede, .inv-eyebrow, .onbw-brand) { display: none !important; }
html.ui-next[data-theme] :is(.login-shell, .inv-shell) { min-height: 100vh; display: flex !important; align-items: center; justify-content: center; padding: 40px 16px !important; box-sizing: border-box; background: none !important; }
html.ui-next[data-theme] :is(.login-card, .inv-card) { width: 540px !important; max-width: 100% !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] .login-panel { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] :is(.login-title, .inv-title) { margin: 0 0 6px !important; text-align: center; font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] :is(.inv-lede, #resetLede, .login-panel .login-muted, .inv-note) { text-align: center; color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; margin: 0 0 8px; }
html.ui-next[data-theme] #view-reset .login-lede#resetLede, html.ui-next[data-theme] #view-change .login-lede { display: block !important; }
html.ui-next[data-theme] :is(.login-panel form, .inv-form) { display: flex !important; flex-direction: column; gap: 0 !important; margin-top: 28px !important; }
html.ui-next[data-theme] :is(.login-field, .inv-field) { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; margin: 0 !important; padding: 0 16px !important; background: var(--nx-card) !important; border: 0 !important; }
html.ui-next[data-theme] :is(.login-field, .inv-field) + :is(.login-field, .inv-field) { box-shadow: inset 0 1px 0 var(--nx-line); }
html.ui-next[data-theme] :is(.login-field, .inv-field):not(:is(.login-field, .inv-field, [hidden], .login-hidden) + *) { border-radius: var(--nx-r-card) var(--nx-r-card) 0 0 !important; }
html.ui-next[data-theme] :is(.login-field, .inv-field):not(:has(~ :is(.login-field, .inv-field):not([hidden]))) { border-radius: 0 0 var(--nx-r-card) var(--nx-r-card) !important; }
html.ui-next[data-theme] :is(.login-field, .inv-field):first-child:not(:has(~ :is(.login-field, .inv-field):not([hidden]))) { border-radius: var(--nx-r-card) !important; }
html.ui-next[data-theme] :is(.login-field, .inv-field) > span { flex: 0 0 auto; font: 600 var(--nx-t-body)/1.3 var(--nx-font) !important; color: var(--nx-text) !important; text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important; }
html.ui-next[data-theme] :is(.login-field, .inv-field) > span .login-muted { color: var(--nx-muted) !important; font-weight: 400 !important; }
html.ui-next[data-theme] :is(.login-field, .inv-field) input { flex: 1 1 auto; min-width: 0; height: 44px !important; min-height: 44px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; text-align: right;
  color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; outline: 0; }
html.ui-next[data-theme] :is(.login-field, .inv-field):focus-within { box-shadow: inset 0 0 0 2px var(--nx-accent) !important; position: relative; z-index: 1; }
html.ui-next[data-theme] :is(.login-field, .inv-field) input::placeholder { color: var(--nx-muted); opacity: 1; }
html.ui-next[data-theme] :is(.login-submit, .inv-primary, #nx-x#nx-y):not(.nx-x) { width: 100% !important; height: 52px !important; min-height: 52px; margin-top: 28px !important; border: 0 !important; border-radius: 26px !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important;
  font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; box-shadow: none !important; cursor: pointer; }
html.ui-next[data-theme] :is(.login-ghost, .inv-ghost, #nx-x#nx-y):not(.nx-x) { width: 100% !important; height: 44px !important; min-height: 44px; margin: 8px 0 0 !important; display: flex !important; align-items: center; justify-content: center; gap: 8px; border: 0 !important; border-radius: 22px !important;
  background: transparent !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; text-decoration: none; box-shadow: none !important; cursor: pointer; }
html.ui-next[data-theme] :is(.login-ghost, .inv-ghost):hover { background: var(--nx-card) !important; }
html.ui-next[data-theme] :is(.login-ghost, .inv-ghost) img { width: 18px; height: 18px; }
html.ui-next[data-theme] :is(.login-or, .inv-or) { display: none !important; }
html.ui-next[data-theme] :is(.login-alt, .inv-alt) { margin: 8px 0 0 !important; text-align: center; color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] :is(.login-alt, .inv-alt) a { display: inline-flex; align-items: center; min-height: 44px; color: var(--nx-text) !important; font-weight: 600; text-decoration: none; cursor: pointer; }
html.ui-next[data-theme] .login-legal { margin-top: 28px !important; text-align: center; color: var(--nx-muted) !important; font-size: var(--nx-t-small) !important; border: 0 !important; }
html.ui-next[data-theme] .login-legal a { color: var(--nx-muted) !important; }
html.ui-next[data-theme] :is(.login-banner, .inv-banner) { margin: 0 0 14px !important; padding: 14px 16px !important; border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-warm-bg) !important; color: var(--nx-warm-fg) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] .inv-who { display: flex; justify-content: space-between; gap: 12px; padding: 0 16px; min-height: 56px; align-items: center; border-radius: var(--nx-r-card); background: var(--nx-card); color: var(--nx-muted); margin-top: 20px; }
html.ui-next[data-theme] .inv-who b { color: var(--nx-text); }
html.ui-next[data-theme] :is(#signupSent, #verifyEmailBlock, #verifyPhoneBlock, #signupPaused) { border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; padding: 16px !important; }
/* Which studio: a card of rows, a building icon (never letters), the picked one ringed in lime. */
html.ui-next[data-theme] .login-studios { display: flex; flex-direction: column; margin-top: 28px; border-radius: var(--nx-r-card); overflow: hidden; background: var(--nx-card); }
html.ui-next[data-theme] .login-studio { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] .login-studio + .login-studio { box-shadow: inset 0 1px 0 var(--nx-line); }
html.ui-next[data-theme] .login-studio.sel { background: var(--nx-soft); }
html.ui-next[data-theme] .login-studio .st-av { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; font-size: 0 !important; color: transparent !important; background: #f0932b !important; position: relative; }
html.ui-next[data-theme] .login-studio .st-av::after { content: ""; position: absolute; inset: 8px; background: #fff; -webkit-mask: var(--nx-building) center / contain no-repeat; mask: var(--nx-building) center / contain no-repeat; }
html.ui-next[data-theme] .login-studio .st-meta { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
html.ui-next[data-theme] .login-studio .st-meta b { font-weight: 600; }
html.ui-next[data-theme] .login-studio .st-meta span { color: var(--nx-muted); }
html.ui-next[data-theme] .login-studio .st-tick { color: var(--nx-muted); opacity: 0; }
html.ui-next[data-theme] .login-studio.sel .st-tick { opacity: 1; color: var(--nx-text); }
html.ui-next { --nx-building: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 21V8l8-5 8 5v13M9 21v-6h6v6M4 21h16'/></svg>"); }
/* First-time setup with Gia (the wizard): the same 540 column, the progress as the summary card's bar, Next 52 lime. */
html.ui-next[data-theme] .onbw { background: var(--nx-bg) !important; color: var(--nx-text) !important; max-width: 540px !important; margin: 0 auto !important; padding: 40px 0 120px !important; box-sizing: border-box; font-family: var(--nx-font); }
html.ui-next[data-theme] .onbw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 !important; border: 0 !important; background: none !important; position: static !important; }
html.ui-next[data-theme] .onbw-step { color: var(--nx-muted) !important; font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] .onbw-later { height: 44px !important; padding: 0 16px !important; border: 0 !important; border-radius: 22px !important; background: var(--nx-card) !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; }
html.ui-next[data-theme] .onbw-prog { height: 8px !important; margin: 14px 0 28px !important; border-radius: 4px; background: var(--nx-card) !important; overflow: hidden; }
html.ui-next[data-theme] .onbw-prog i { background: var(--nx-accent) !important; border-radius: 4px; }
html.ui-next[data-theme] .onbw-body { padding: 0 !important; display: block !important; }
html.ui-next[data-theme] .onbw-card { width: auto !important; max-width: none !important; margin: 0 !important; padding: 24px !important; border: 0 !important; border-radius: var(--nx-r-pop) !important; background: var(--nx-card) !important; color: var(--nx-text) !important; box-shadow: none !important; }
html.ui-next[data-theme] .onbw-card :is(h1, h2, h3) { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] .onbw-card :is(p, .onbw-blurb, .onbw-note) { color: var(--nx-muted) !important; font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] .onbw-card label, html.ui-next[data-theme] .onbw-field > span { color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] .onbw-card :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { box-sizing: border-box; min-height: 44px; padding: 0 14px; border-radius: 14px !important; border: 0 !important; box-shadow: none !important;
  background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] .onbw-card textarea { padding: 12px 14px; min-height: 88px; }
html.ui-next[data-theme] .onbw-card :is(input, select, textarea):focus { outline: 2px solid var(--nx-accent) !important; }
html.ui-next[data-theme] .onbw-card :is(input[type="checkbox"], input[type="radio"]) { width: 20px; height: 20px; accent-color: #1a2000; }
html.ui-next[data-theme] .onbw-chips { display: flex; gap: 8px; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
html.ui-next[data-theme] .onbw-chip { flex: 0 0 auto; height: 44px !important; min-height: 44px; padding: 0 16px !important; border: 0 !important; border-radius: 22px !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; }
html.ui-next[data-theme] .onbw-chip:is(.on, .is-on, .sel, [aria-pressed="true"], [aria-checked="true"]) { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] .onbw-qty-btn { width: 44px !important; height: 44px !important; border-radius: 22px !important; border: 0 !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] .onbw-foot { left: 0 !important; right: 0 !important; display: flex; justify-content: center; gap: 8px; padding: 16px !important; border: 0 !important; background: var(--nx-bg) !important; box-shadow: 0 -1px 0 var(--nx-line); }
html.ui-next[data-theme] .onbw-foot > * { max-width: 266px; }
html.ui-next[data-theme] :is(.onbw-next, #nx-x#nx-y):not(.nx-x) { flex: 1 1 auto; height: 52px !important; min-height: 52px; padding: 0 24px !important; border: 0 !important; border-radius: 26px !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; opacity: 1; }
html.ui-next[data-theme] :is(.onbw-back, #nx-x#nx-y):not(.nx-x) { flex: 0 0 auto; height: 52px !important; min-height: 52px; padding: 0 24px !important; border: 0 !important; border-radius: 26px !important; background: var(--nx-card) !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; }
html.ui-next[data-theme] .onbw .nx-auth-logo { margin-bottom: 28px; }
html.ui-next[data-theme] :is(.login-field, .inv-field) input:focus { outline: 0 !important; box-shadow: none !important; border: 0 !important; }
html.ui-next[data-theme] body #nxOffline { position: fixed; z-index: 1150; bottom: 16px; left: calc(var(--nx-rail-w) + 20px); right: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }

/* ── PIXXL ADMIN (platform workspace; board: Extra adminStudios · adminStudio) — style only.
   Studios: the list 400 on the left (name + one line, status pill on the right, a building icon), the studio you
   opened on the right. The other tabs stay full width. ── */
html.ui-next[data-theme] body:not(.is-platform) .nx-rail .nx-item-platform, html.ui-next[data-theme] body.no-platform-console .nx-rail .nx-item-platform { display: none !important; }
html.ui-next body:has(#page-platform:not([hidden])) .shell { padding: 0 !important; }
html.ui-next[data-theme] body #page-platform:not([hidden]) { display: flex; flex-direction: column; gap: var(--nx-gap-section); padding: 28px 20px 60px !important; background: transparent !important; max-width: none !important; margin: 0 !important; }
html.ui-next[data-theme] body #page-platform:has(.pf-tablewrap) { width: var(--nx-list-w); box-sizing: border-box; min-height: 100vh; border-right: 1px solid var(--nx-line); }
html.ui-next[data-theme] body #page-platform .qg-sage-head { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 0; }
html.ui-next[data-theme] body #page-platform .sg-display { margin: 0 !important; font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body #page-platform .pf-subnav { max-width: 100%; min-width: 0; display: flex !important; gap: 8px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; width: auto !important; }
html.ui-next[data-theme] body #page-platform .pf-subtab { all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 22px; display: inline-flex; align-items: center; white-space: nowrap;
  font: 600 var(--nx-t-body)/1 var(--nx-font) !important; background: var(--nx-card); color: var(--nx-text); }
html.ui-next[data-theme] body #page-platform .pf-subtab.is-active { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body #page-platform .pf-body { margin: 0; padding: 0; background: none; border: 0; }
html.ui-next[data-theme] body #page-platform :is(.pf-count, .pf-sub) { color: var(--nx-muted) !important; font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] body #page-platform .pf-count { margin: 0 0 14px; }
html.ui-next[data-theme] body #page-platform :is(.pf-empty, .pf-loading) { padding: 28px 16px; text-align: center; border: 0 !important; border-radius: var(--nx-r-card); background: var(--nx-card) !important; color: var(--nx-muted) !important; }
/* The studios table becomes the list: one card of lines, only who it is and its status. */
html.ui-next[data-theme] body #page-platform .pf-tablewrap { overflow: visible !important; border: 0 !important; background: var(--nx-card) !important; border-radius: var(--nx-r-card); padding: 4px 16px; box-shadow: none !important; }
html.ui-next[data-theme] body #page-platform .pf-table { display: block; width: 100%; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #page-platform .pf-table thead { display: none; }
html.ui-next[data-theme] body #page-platform .pf-table tbody { display: flex; flex-direction: column; }
html.ui-next[data-theme] body #page-platform .pf-trow { display: grid !important; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; min-height: 64px; padding: 10px 0; cursor: pointer; background: none !important; border: 0 !important; }
html.ui-next[data-theme] body #page-platform .pf-trow + .pf-trow { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme] body #page-platform .pf-trow.is-open .pf-td-name b { text-decoration: underline; text-decoration-color: var(--nx-accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
html.ui-next[data-theme] body #page-platform .pf-trow td { display: none; padding: 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #page-platform .pf-trow :is(.pf-td-attention, .pf-td-name, .pf-td-status) { display: block; min-width: 0; }
html.ui-next[data-theme] body #page-platform .pf-trow .pf-td-attention { width: 36px; height: 36px; border-radius: 10px; background: #f0932b !important; position: relative; }
html.ui-next[data-theme] body #page-platform .pf-trow.is-suspended .pf-td-attention { background: #8a8a85 !important; }
html.ui-next[data-theme] body #page-platform .pf-td-attention::after { content: ""; position: absolute; inset: 8px; background: #fff; -webkit-mask: var(--nx-building) center / contain no-repeat; mask: var(--nx-building) center / contain no-repeat; }
html.ui-next[data-theme] body #page-platform .pf-td-attention .pf-dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 5px; border: 2px solid var(--nx-card); box-sizing: content-box; }
html.ui-next[data-theme] body #page-platform .pf-td-attention .pf-dot:not(.is-hot):not(.is-warn) { display: none; }
html.ui-next[data-theme] body #page-platform .pf-td-name { display: flex !important; flex-direction: column; color: var(--nx-text); }
html.ui-next[data-theme] body #page-platform .pf-td-name :is(b, .pf-sub) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #page-platform .pf-td-name b { font-weight: 600; }
html.ui-next[data-theme] body #page-platform .pf-pill { display: inline-flex; padding: 2px 9px; border-radius: 10px; font: 600 var(--nx-t-small)/1.45 var(--nx-font) !important; text-transform: capitalize; background: var(--nx-soft); color: var(--nx-text); border: 0; }
html.ui-next[data-theme] body #page-platform .pf-pill.is-ok { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body #page-platform .pf-pill.is-warn { background: var(--nx-warm-bg); color: var(--nx-warm-fg); }
/* One studio: the right side of the split, the page's own colour, no scrim and no close button. */
html.ui-next[data-theme] body #page-platform .pf-drawer-scrim, html.ui-next[data-theme] body #page-platform .pf-drawer-x { display: none !important; }
html.ui-next[data-theme] body #page-platform .pf-drawer { position: fixed !important; z-index: 40; top: 0 !important; bottom: 0 !important; right: 0 !important; left: calc(var(--nx-rail-w) + var(--nx-list-w)) !important; width: auto !important; max-width: none !important;
  transform: none !important; overflow-y: auto; padding: 28px 20px 60px !important; box-sizing: border-box; border: 0 !important; border-radius: 0 !important; background: var(--nx-bg) !important; box-shadow: none !important; display: flex; flex-direction: column; gap: var(--nx-gap-section); animation: none !important; }
html.ui-next[data-theme] body #page-platform .pf-drawer-head { padding: 0 !important; border: 0 !important; background: none !important; min-height: 52px; display: flex; align-items: center; }
html.ui-next[data-theme] body #page-platform .pf-drawer-head b { display: block; font: 600 var(--nx-t-title)/1.15 var(--nx-head) !important; color: var(--nx-text); }
html.ui-next[data-theme] body #page-platform .pf-drawer-body { padding: 0 !important; display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body #page-platform :is(.pf-card, .pf-grid > *) { border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; color: var(--nx-text) !important; box-shadow: none !important; padding: 16px !important; }
html.ui-next[data-theme] body #page-platform .pf-grid { display: flex !important; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body #page-platform .pf-card :is(h3, h4, .pf-card-h) { margin: 0 0 8px; font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body #page-platform :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { min-height: 44px; padding: 0 14px; border-radius: 14px !important; border: 0 !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] body #page-platform :is(.pf-btn, #page-platform button.button) { height: 44px !important; min-height: 44px; padding: 0 16px !important; border-radius: 22px !important; border: 0 !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; }
html.ui-next[data-theme] body #page-platform .pf-btn.is-primary { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #page-platform:not(:has(.pf-drawer)):has(.pf-tablewrap) ~ * { }
/* Nothing open yet: the right side says so. */
html.ui-next body:has(#page-platform:not([hidden]) .pf-tablewrap):not(:has(.pf-drawer)) .shell::after { content: "Pick a studio from the list to open it here"; position: fixed; z-index: 1;
  left: calc(var(--nx-rail-w) + var(--nx-list-w)); right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: var(--nx-muted); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
/* Other tabs (invites, service requests, talent, cities): their tables sit on a card. */
html.ui-next[data-theme] body #page-platform .pf-body > :is(table, .pf-table-plain, div:not(.pf-tablewrap):not(.pf-count):not(.pf-drawer):not(.pf-drawer-scrim)) { border-radius: var(--nx-r-card); }

/* ── Needs you's answers (check the message · payment is fine · mark a no-show): pop-ups, not panels in the row ── */
html.ui-next[data-theme] body #page-dashboard .today-draft { position: fixed !important; z-index: 1250; left: calc(var(--nx-rail-w) + (100vw - var(--nx-rail-w)) / 2) !important; top: 50% !important; transform: translate(-50%, -50%);
  width: 540px !important; max-width: calc(100vw - var(--nx-rail-w) - 80px) !important; max-height: calc(100vh - 80px); overflow-y: auto; box-sizing: border-box; margin: 0 !important; padding: 24px !important;
  border: 0 !important; border-radius: var(--nx-r-pop) !important; background: var(--nx-card) !important; color: var(--nx-text) !important;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45), 0 20px 60px rgba(0, 0, 0, .35) !important; display: flex !important; flex-direction: column; gap: var(--nx-gap-card); grid-column: 1 / -1; }
html.ui-next[data-theme] body #page-dashboard .today-draft::before { content: attr(data-nx-title); font: 600 var(--nx-t-h2)/1.2 var(--nx-head); color: var(--nx-text); }
html.ui-next[data-theme] body #page-dashboard .today-draft .today-draft-text { box-sizing: border-box; width: 100%; min-height: 120px; padding: 12px 14px; border: 0 !important; border-radius: 14px !important; background: var(--nx-soft) !important; color: var(--nx-text) !important;
  font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; box-shadow: none !important; resize: vertical; }
html.ui-next[data-theme] body #page-dashboard .today-draft .today-draft-text:focus { outline: 2px solid var(--nx-accent) !important; }
html.ui-next[data-theme] body #page-dashboard .today-draft .today-draft-actions { display: flex !important; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; padding: 0; border: 0; }
html.ui-next[data-theme] body #page-dashboard .today-draft .today-draft-actions .muted { color: var(--nx-muted) !important; font-size: var(--nx-t-body) !important; white-space: normal; }
html.ui-next[data-theme] body #page-dashboard .today-draft .today-draft-cancel { display: none !important; }
html.ui-next[data-theme] body #page-dashboard .today-draft :is(.button.primary, #nx-x#nx-y):not(.nx-x) { width: 100%; height: 52px !important; min-height: 52px; padding: 0 24px !important; border: 0 !important; border-radius: 26px !important;
  background: var(--nx-accent) !important; color: var(--nx-ink) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; justify-content: center; }
html.ui-next[data-theme] body #page-dashboard .today-draft :is(.today-noshow-save, #nx-x#nx-y#nx-z):not(.nx-x) { background: #ffd9d4 !important; color: #8a1c10 !important; }
html.ui-next[data-theme="dark"] body #page-dashboard .today-draft :is(.today-noshow-save, #nx-x#nx-y#nx-z):not(.nx-x) { background: #4a1f1a !important; color: #ffb4a8 !important; }
html.ui-next[data-theme] body #page-dashboard.nx-today .today-head .today-h { display: none !important; }
html.ui-next[data-theme] body .nx-pop .nx-field { display: flex; flex-direction: column; gap: 6px; }
html.ui-next[data-theme] body .nx-pop .nx-field > span { color: var(--nx-muted); }

/* ── HELP (Need a hand?) and a help ticket's thread: the pop-up's own type, fields on the scale, Send to Pixxl 52 and lime ── */
html.ui-next[data-theme] body #supportModal #supportBody { padding: 0 !important; display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body #supportModal .sup-lede { margin: 0; color: var(--nx-muted) !important; }
html.ui-next[data-theme] body #supportModal .sup-form { display: flex; flex-direction: column; gap: var(--nx-gap-card); margin: 0; padding: 0; border: 0; background: none; }
html.ui-next[data-theme] body #supportModal .sup-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
html.ui-next[data-theme] body #supportModal .sup-field > span { color: var(--nx-muted) !important; font-weight: 400 !important; }
html.ui-next[data-theme] body #supportModal .sup-actions { display: flex; margin: 0; }
html.ui-next[data-theme] body #supportModal :is(#supportRaiseBtn, #nx-x#nx-y):not(.nx-x) { width: 100%; height: 52px !important; border-radius: 26px !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #supportModal .sup-list { display: flex; flex-direction: column; gap: var(--nx-gap-card); margin-top: 14px; }
html.ui-next[data-theme] body #supportModal .sup-list-head { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text); text-transform: none !important; letter-spacing: 0 !important; }
html.ui-next[data-theme] body #supportModal .sup-empty { color: var(--nx-muted) !important; margin: 0; }
html.ui-next[data-theme] body #supportModal .sup-thread { border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-soft) !important; padding: 0 16px !important; margin: 0 !important; }
html.ui-next[data-theme] body #supportModal .sup-thread > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 64px; padding: 10px 0; cursor: pointer; list-style: none; }
html.ui-next[data-theme] body #supportModal .sup-thread > summary::-webkit-details-marker { display: none; }
html.ui-next[data-theme] body #supportModal .sup-thread-subj { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #supportModal .sup-thread-when { grid-row: 2; color: var(--nx-muted) !important; }
html.ui-next[data-theme] body #supportModal .sup-chip { grid-column: 2; grid-row: 1 / span 2; padding: 2px 9px; border-radius: 10px; font: 600 var(--nx-t-small)/1.45 var(--nx-font) !important; background: var(--nx-card) !important; color: var(--nx-text) !important; border: 0 !important; }
html.ui-next[data-theme] body #supportModal .sup-chip.st-in_progress { background: var(--nx-warm-bg) !important; color: var(--nx-warm-fg) !important; }
html.ui-next[data-theme] body #supportModal .sup-chip.st-resolved { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #supportModal .sup-notes { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 12px; }
html.ui-next[data-theme] body #supportModal .sup-note { align-self: flex-end; max-width: 80%; padding: 10px 14px; border: 0 !important; border-radius: 18px; background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #supportModal .sup-note.is-them { align-self: flex-start; background: var(--nx-card) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme] body #supportModal .sup-note-who { display: block; font-size: var(--nx-t-small) !important; opacity: .75; color: inherit !important; }
html.ui-next[data-theme] body #supportModal .sup-note-text { color: inherit !important; }
html.ui-next[data-theme] body #supportModal .sup-reply { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 4px 0 16px; margin: 0 0 14px; border-radius: 26px; background: var(--nx-card); }
html.ui-next[data-theme] body #supportModal .sup-reply input { flex: 1 1 auto; min-height: 44px; padding: 0 !important; background: transparent !important; }
html.ui-next[data-theme] body #supportModal .sup-reply input:focus { outline: 0 !important; }
html.ui-next[data-theme] body #supportModal :is(.sup-reply .sup-send, #nx-x#nx-y):not(.nx-x) { height: 44px !important; border-radius: 22px !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
/* Send a template: the list a card of rows, the chosen one in lime; the filled-in words a card. */
html.ui-next[data-theme] body #tplPickerModal .tpl-picker-list { display: flex; flex-direction: column; border-radius: var(--nx-r-card); background: var(--nx-soft); padding: 4px 16px; }
html.ui-next[data-theme] body #tplPickerModal :is(.tpl-picker-item, .tpl-picker-list > button, #nx-x#nx-y):not(.nx-x):not(.nx-x2) { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 0; color: var(--nx-text); }
html.ui-next[data-theme] body #tplPickerModal .tpl-picker-list > * + * { border-top: 1px solid var(--nx-line); }
html.ui-next[data-theme] body #tplPickerModal :is(.tpl-picker-preview, .tpl-picker-vars) { border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; padding: 14px 16px; }
html.ui-next[data-theme] body #tplPickerModal .eyebrow { color: var(--nx-muted) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] body :is(.tpl-modal-card .banner, #nx-x#nx-y):not(.nx-x) { border: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-warm-bg) !important; color: var(--nx-warm-fg) !important; padding: 14px 16px !important; }
/* The toast: one 44 pill in the new look's type, centred over the page area. */
html.ui-next[data-theme] body #appToast:not([hidden]) { left: calc(var(--nx-rail-w) + (100vw - var(--nx-rail-w)) / 2) !important; transform: translateX(-50%) !important; min-height: 44px; box-sizing: border-box; padding: 12px 18px !important;
  border: 0 !important; border-radius: 22px !important; background: var(--nx-text) !important; color: var(--nx-bg) !important; font: 600 var(--nx-t-body)/1.45 var(--nx-font) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .25) !important; }

/* ═══ THE QUOTE BUILDER (owner 2026-11-28: "quote builder design is ok, build it") ═══════════════════════════════
   Board: Extra qbAll + qbPrice, web layout 'builder' (WebApp10/11). The form on the left, the Price column FIXED on
   the right (480). Q = the page, doubled so these beat the old builder's own heavy rules. */
html.ui-next body:has(#page-quotes:not([hidden])) { --qbx-price-w: 480px; }
/* The old builder fitted one screen and scrolled inside its cards; the new one is a page that scrolls. */
html.ui-next[data-theme] body:has(#page-quotes:not([hidden])) .shell { height: auto !important; min-height: 100vh; max-height: none !important; overflow: visible !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes:not([hidden]) { height: auto !important; max-height: none !important; overflow: visible !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes:not([hidden]) { padding: 28px calc(var(--qbx-price-w) + 20px) 80px 20px !important; gap: var(--nx-gap-section); min-height: 100vh; box-sizing: border-box; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qg-shell, .qg-shell.qg-cols3) { display: flex !important; flex-direction: column; gap: var(--nx-gap-section); grid-template-columns: none !important; max-width: none !important; margin: 0 !important; padding: 0 !important; height: auto !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qg-card:not(#manualPricingPreview) { all: unset; box-sizing: border-box; display: flex !important; flex-direction: column; gap: var(--nx-gap-card); min-width: 0; height: auto !important; color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font);
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qg-card-head { all: unset; display: block; background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; height: auto !important; min-height: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qg-card-head h3 { height: auto !important; padding: 0 !important; background: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qg-card-head h3,
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-timeline-head > span,
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-pkg-title { margin: 0 !important; font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; text-transform: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-packages-card > .qg-card-head { display: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualQuoteBanner:not([hidden]) { margin: 0; padding: 14px 16px; border-radius: var(--nx-r-card); border: 0; background: var(--nx-card); color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualQuoteBanner.error { background: var(--nx-warm-bg); color: var(--nx-warm-fg); }

/* Fields everywhere on the form: one look — the label on the left, the value on the right, a line between. */
html.ui-next[data-theme] body #page-quotes#page-quotes :is(input:not([type="checkbox"]):not([type="hidden"]), select) {
  box-sizing: border-box; height: 44px !important; min-height: 44px !important; padding: 0 12px !important; border-radius: 12px !important; border: 1px solid var(--nx-line) !important;
  background: var(--nx-field) !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.2 var(--nx-font) !important; box-shadow: none !important; color-scheme: light dark; outline: none; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(input, select):focus { border-color: var(--nx-text) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(input, select)::placeholder { color: var(--nx-muted) !important; opacity: 1; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-card,
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-pkg-fields { display: flex !important; flex-direction: column; padding: 4px 16px !important; margin: 0 !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qbx-card, .qgm-pkg-fields) :is(.qgm-field, .crm-search-row) {
  display: grid !important; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 64px; margin: 0 !important; padding: 10px 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qbx-card, .qgm-pkg-fields) > * + *:not([hidden]),
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-card #quoteDealSection > .qgm-field { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-card > [hidden] { display: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qbx-label, .qgm-field > span) { font: 600 var(--nx-t-body)/1.3 var(--nx-font) !important; color: var(--nx-text) !important; text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-card .qgm-lead-fields { display: block; margin: 0 !important; padding: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-card #quoteDealSection { display: flex; flex-direction: column; margin: 0; padding: 0; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-card #quoteDealSection[hidden] { display: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-card #loadSavedQuoteBtn:not([hidden]) { background: none !important; border: 0 !important; box-shadow: none !important; width: auto !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-card #loadSavedQuoteBtn:not([hidden]) { all: unset; cursor: pointer; align-self: flex-end; height: 44px; margin-bottom: 8px; font: 600 var(--nx-t-body)/44px var(--nx-font); color: var(--nx-text); text-decoration: underline; text-underline-offset: 3px; }
/* The contact picked: name and number on one row, the way the board shows Contact · Kavya Reddy. */
html.ui-next[data-theme] body #page-quotes#page-quotes #quoteBoundContact:not([hidden]) { display: flex !important; align-items: center; gap: 12px; min-height: 64px; margin: 0 !important; padding: 10px 0 !important;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #quoteBoundContact::before { content: "Contact"; flex: 0 0 140px; font-weight: 600; }
html.ui-next[data-theme] body #page-quotes#page-quotes #quoteBoundContact :is(strong, b, span) { font-size: var(--nx-t-body) !important; color: inherit !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #quoteContactResults:not([hidden]) { margin: 0 0 10px !important; border-radius: 14px !important; background: var(--nx-soft) !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #quoteContactResults .contact-result-item { min-height: 44px; color: var(--nx-text) !important; background: none !important; font: 400 var(--nx-t-body)/1.3 var(--nx-font) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qg-newcontact:not([hidden]) { display: flex !important; flex-direction: column; gap: 0; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qg-newcontact-head { padding: 14px 0 4px; font: 600 var(--nx-t-body)/1.3 var(--nx-font); color: var(--nx-muted); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qg-newcontact .qgm-field + .qgm-field { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qg-newcontact-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 0; }

/* Start from a package: a row with a pink box, the words, and the choice on the right. */
html.ui-next[data-theme] body #page-quotes#page-quotes #qgTemplateBar:not([hidden]) { display: grid !important; grid-template-columns: auto minmax(0, 1fr) minmax(0, 220px); align-items: center; gap: 14px; margin: 0 !important;
  padding: 14px 16px !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #qgTemplateBar > label { display: flex; flex-direction: column; min-width: 0; margin: 0; color: var(--nx-text); font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; text-transform: none; letter-spacing: 0; }
html.ui-next[data-theme] body #page-quotes#page-quotes #qgTemplateBar .nx-row-name { color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1.45 var(--nx-font) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #page-quotes#page-quotes #qgTemplateBar .nx-row-sub { color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The package: its name as the section title, Duplicate / Add package as 44 chips. */
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPackageList,
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPackageForm { display: flex; flex-direction: column; gap: var(--nx-gap-section); margin: 0; padding: 0; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-pkg { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-pkg { all: unset; box-sizing: border-box; display: flex !important; flex-direction: column; gap: var(--nx-gap-section); min-width: 0; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-pkg + .qgm-pkg { padding-top: var(--nx-gap-section); border-top: 1px solid var(--nx-line); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-pkg-head { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-pkg-title { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-pkg-actions { display: flex; gap: 8px; flex: 0 0 auto; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qgm-pkg-actions button, .qgm-add-event-btn, .qgm-add-del-btn, .qgm-add-svc, .qg-newcontact-actions button, .qgm-cat-switch .desk-tab) {
  all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  font: 600 var(--nx-t-body)/1 var(--nx-font) !important; background: var(--nx-card); color: var(--nx-text) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qgm-add-event-btn, .qgm-add-del-btn, .qgm-add-svc, .qg-newcontact-actions button, .qgm-cat-switch .desk-tab) { background: var(--nx-soft); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-cat-switch .desk-tab.is-active, html.ui-next[data-theme] body #page-quotes#page-quotes .qg-newcontact-actions button[type="submit"] { background: var(--nx-accent); color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-pkg-actions .qgm-remove-package { color: #c0281c !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qgm-pkg-actions button, .qgm-add-event-btn, .qgm-add-del-btn, .qgm-add-svc) .material-symbols-outlined { font-size: 18px !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(button, a):focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }

/* Events and What they get: a section each — title, then a card per event. */
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-timeline { display: flex !important; flex-direction: column; gap: var(--nx-gap-card); margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-timeline-head { display: flex; margin: 0 !important; padding: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-timeline-rule { display: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-empty { margin: 0 !important; padding: 20px 16px !important; border-radius: var(--nx-r-card); background: var(--nx-card); color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; text-align: left; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event { display: flex !important; flex-direction: column; gap: 0; margin: 0 !important; padding: 14px 16px 6px !important; border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; border: 0 !important; box-shadow: none !important; }
/* Line 1: the date chip, the event's name, its price, remove. Line 2: date · city · venue · time. */
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-head { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 !important; padding: 0 0 14px !important; border: 0 !important; border-bottom: 1px solid var(--nx-line) !important; background: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-head::after { content: ""; order: 5; flex: 0 0 100%; height: 0; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-ico { display: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-chip { order: 1; width: 48px; height: 48px; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-chip.is-none { color: var(--nx-muted); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-head select.qgm-event-type { order: 2; flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; max-width: none !important; border-color: transparent !important; background-color: transparent !important; padding-left: 4px !important; font-weight: 600 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-head select.qgm-event-type:hover { border-color: var(--nx-line) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-evprice { order: 3; flex: 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-del { order: 4; all: unset; order: 4; box-sizing: border-box; cursor: pointer; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--nx-muted); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-del:hover { background: var(--nx-soft); color: #c0281c; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-del svg { width: 18px; height: 18px; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-head :is(.qgm-event-date, .qgm-event-city) { order: 6; flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; max-width: none !important; margin: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-head input.qgm-event-date { flex: 0 0 150px !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event-head input.qgm-event-time { flex: 0 0 112px !important; }
/* The team: one row per person or add-on, − n + on the right (44 targets). */
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-svc-table { display: flex; flex-direction: column; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-svc-headrow { display: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-svc-row:not(.is-empty) { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 60px; margin: 0 !important; padding: 8px 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-svc-row:not(.is-empty) ~ .qgm-svc-row:not(.is-empty) { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-svc-name { display: block !important; min-width: 0; font: 600 var(--nx-t-body)/1.3 var(--nx-font) !important; color: var(--nx-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-svc-name .material-symbols-outlined { display: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-svc-price { order: 1; min-width: 72px; text-align: right; color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.3 var(--nx-font) !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-step { order: 2; display: inline-flex !important; align-items: center; height: 44px; padding: 0; gap: 0; border-radius: 22px; background: var(--nx-soft) !important; border: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-step-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font: 600 18px/1 var(--nx-font); color: var(--nx-text); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-step-btn:hover { background: var(--nx-line); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-step-val { min-width: 24px; text-align: center; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; color: var(--nx-text) !important; font-variant-numeric: tabular-nums; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-event .qgm-add-svc { align-self: flex-start; width: auto !important; margin: 6px 0 8px !important; }
/* Add an event / add something they get: a row with the list and the button. */
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-add-event { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 14px 16px !important; border-radius: var(--nx-r-card); background: var(--nx-card) !important; border: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-add-event select { flex: 1 1 auto; min-width: 0; width: auto !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-cat-switch { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
/* What they get: name and its note, how many, ready in (days), remove. */
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-del-card { display: grid !important; grid-template-columns: minmax(0, 1fr) 84px 84px 44px; align-items: center; gap: 10px; margin: 0 !important; padding: 12px 16px !important;
  border-radius: var(--nx-r-card) !important; background: var(--nx-card) !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-del-card > input[type="hidden"] + .qgm-del-daysf { grid-column: 3; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-del-main { min-width: 0; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-del-title { font: 600 var(--nx-t-body)/1.35 var(--nx-font) !important; color: var(--nx-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-del-std { margin-left: 6px; padding: 2px 9px; border-radius: 10px; background: var(--nx-soft) !important; color: var(--nx-muted) !important; font: 600 var(--nx-t-small)/1.45 var(--nx-font) !important; border: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qgm-del-hint, .qgm-del-auto) { color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.4 var(--nx-font) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qgm-del-qtyf, .qgm-del-daysf) { display: block; margin: 0; padding: 0; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qgm-del-qtyf, .qgm-del-daysf) input { width: 100% !important; text-align: center; }
html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qgm-del-qtyf, .qgm-del-daysf)::before, html.ui-next[data-theme] body #page-quotes#page-quotes :is(.qgm-del-qtyf, .qgm-del-daysf)::after { display: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-del-remove { grid-column: 4; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-delivs .qgm-add-event { margin-top: 0 !important; }

/* ── The Price column: fixed on the right, its own scroll ─────────────────────────────────────── */
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview {
  position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important; z-index: 20; width: var(--qbx-price-w) !important; max-width: none !important; height: 100vh !important; min-height: 0 !important; max-height: none !important;
  display: flex !important; flex-direction: column; gap: var(--nx-gap-section); box-sizing: border-box; padding: 28px 20px 0 !important; margin: 0 !important;
  overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; border-radius: 0 !important; border: 0 !important; box-shadow: none !important; background: var(--nx-bg) !important; transform: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview .qg-rail-head { display: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview .qbx-price-title { min-height: 44px; display: flex; align-items: center; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview :is(.qg-rail-body, .qg-rail-footer) { display: flex !important; flex-direction: column; gap: var(--nx-gap-section); margin: 0 !important; padding: 0 !important; border: 0 !important;
  background: none !important; max-height: none !important; height: auto !important; overflow: visible !important; flex: 0 0 auto; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview .qg-rail-footer { gap: var(--nx-gap-card); position: static !important; box-shadow: none !important; }
/* Nothing in the column squeezes: it scrolls instead (a squeezed card clipped its own rows). */
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview :is(*) { flex-shrink: 0 !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview .nx-box { overflow: visible !important; height: auto !important; max-height: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview .qbx-adjust { margin-bottom: calc(var(--nx-gap-section) - var(--nx-gap-card)); }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview :is(#manualCrmStatus, #manualQuoteLinks) { display: none !important; }
/* The Total card: the 40 number on one line; the line under it wraps below when it doesn't fit beside it. */
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-hero .nx-hero-big { flex-wrap: wrap; row-gap: 4px; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-hero .nx-hero-big > span:last-child { white-space: normal; overflow: visible; min-width: 0; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-hero .nx-big { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #page-quotes#page-quotes .nx-line.qbx-kv { min-height: 52px; padding: 8px 0; justify-content: space-between; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-kv .nx-row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-kv .nx-row-name .nx-muted { font-weight: 400; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-kv .nx-row-sub { color: var(--nx-muted); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-kv .nx-row-main { min-width: 0; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-warns { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-warns .qgp-warn { display: flex; gap: 10px; margin: 0 !important; padding: 14px 16px !important; border-radius: var(--nx-r-card) !important; border: 0 !important; background: var(--nx-warm-bg) !important; color: var(--nx-warm-fg) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-warns .qgp-warn * { color: inherit !important; font-size: var(--nx-t-body) !important; }
/* Adjust: Your markup · Discount · Show the price as — rows in one card. */
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-adjust-box { display: flex; flex-direction: column; padding: 4px 16px; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-adjust-box .qg-rail-discount { display: flex !important; align-items: center; gap: 10px; min-height: 64px; margin: 0 !important; padding: 10px 0 !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-adjust-box .qg-rail-discount + .qg-rail-discount { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-adjust-box .qg-rail-discount-label { flex: 1 1 auto; min-width: 0; font: 600 var(--nx-t-body)/1.3 var(--nx-font) !important; color: var(--nx-text) !important; text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-adjust-box :is(#manualMarkup, #manualDiscount) { flex: 0 0 132px; width: 132px !important; text-align: right; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-adjust-box #manualPricingDetail { flex: 0 0 180px; width: 180px !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-adjust-box .qg-disc-toggle { flex: 0 0 auto; display: inline-flex !important; height: 44px; padding: 0 !important; border-radius: 22px !important; background: var(--nx-soft) !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-adjust-box .qg-disc-opt { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font: 600 var(--nx-t-body)/1 var(--nx-font); color: var(--nx-text); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-adjust-box .qg-disc-opt.is-active { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-adjust-box .qg-disc-opt * { color: inherit !important; font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualThemeNote:not([hidden]) { margin: 0; color: var(--nx-muted); font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
/* Save the quote (lime 52) · Save and send (44) · Clear the form (ghost) — full width, never wrapping. */
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview .qg-generate { all: unset; box-sizing: border-box; cursor: pointer; width: 100% !important; height: 44px !important; min-height: 0 !important; border-radius: 22px !important; display: flex !important; align-items: center; justify-content: center;
  white-space: nowrap; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; background: var(--nx-card) !important; color: var(--nx-text) !important; -webkit-text-fill-color: currentColor !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; padding: 0 16px !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview #generateManualQuote { height: 52px !important; border-radius: 26px !important; background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview .qg-generate.is-ghost { background: transparent !important; box-shadow: inset 0 0 0 1px var(--nx-line) !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview .qg-generate:disabled { opacity: .45; cursor: default; }
html.ui-next[data-theme] body #page-quotes#page-quotes #manualPricingPreview .qg-generate.perm-off { display: none !important; }
/* The three buttons stay in sight at the bottom of the column while it scrolls. */
html.ui-next[data-theme] body #page-quotes#page-quotes .qbx-actions { position: sticky; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; margin: 0 -20px; padding: 14px 20px 20px; background: var(--nx-bg);
  box-shadow: 0 -14px 18px -14px rgba(0, 0, 0, .18); }
html.ui-next[data-theme] body :is(#page-quotes, .qbx-pop) .qbx-foot { margin: 0; text-align: center; color: var(--nx-muted); font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }

/* ── The two pop-ups: Quote saved · Send the quote? (centred card, no close button) ──────────────── */
html.ui-next[data-theme] body .qbx-pop { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body .qbx-pop > .nx-title { margin: 0 0 6px; }
html.ui-next[data-theme] body .qbx-pop .nx-sec { gap: var(--nx-gap-card); margin-top: 6px; }
html.ui-next[data-theme] body .qbx-pop .nx-box { background: var(--nx-soft); }
html.ui-next[data-theme] body .qbx-pop .nx-banner b { font-weight: 600; }
html.ui-next[data-theme] body .qbx-pop .nx-line:disabled { opacity: .5; cursor: default; }
html.ui-next[data-theme] body .qbx-pop .nx-line .nx-row-name { font-weight: 600; }
html.ui-next[data-theme] body .qbx-pop .nx-line .nx-row-sub { color: var(--nx-muted); }
html.ui-next[data-theme] body .qbx-pop .nx-line .nx-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
html.ui-next[data-theme] body .qbx-pop .nx-line { gap: 14px !important; padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; width: 100%; text-decoration: none !important; }
html.ui-next[data-theme] body .qbx-pop .is-main { margin-top: 6px; }
html.ui-next[data-theme] body .qbx-pop .qbx-ghost { background: transparent; }
html.ui-next[data-theme] body .qbx-pop .qbx-err { margin: 0; padding: 12px 16px; border-radius: 14px; background: #ffd9d6; color: #8a1c12; font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme="dark"] body .qbx-pop .qbx-err { background: #47201c; color: #ffb4ab; }

/* ── A lead's Quotes tab (owner 2026-11-28): every version, newest first, round icon buttons under each ── */
html.ui-next[data-theme] body #dealDetailContent .nx-qpane:not([hidden]) { display: flex; flex-direction: column; gap: var(--nx-gap-card); }
html.ui-next[data-theme] body #dealDetailContent .nx-qpane .nx-sec-head { margin-bottom: 0; }
html.ui-next[data-theme] body #dealDetailContent .nx-qpane #dealQuotesList { margin: 0; padding: 0; }
html.ui-next[data-theme] body .nx-qv-list { display: flex; flex-direction: column; padding: 4px 16px; }
html.ui-next[data-theme] body .nx-qv { display: flex; flex-direction: column; gap: 12px; padding: 14px 0; }
html.ui-next[data-theme] body .nx-qv + .nx-qv { border-top: 1px solid var(--nx-line); }
html.ui-next[data-theme] body .nx-qv-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; font: 400 var(--nx-t-body)/1.45 var(--nx-font); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-qv-top .nx-row-name { font-weight: 600; }
html.ui-next[data-theme] body .nx-qv-btns { display: flex; justify-content: flex-end; gap: 8px; }
html.ui-next[data-theme] body .nx-qv-ico { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nx-soft); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-qv-ico:hover { filter: brightness(.95); }
html.ui-next[data-theme] body .nx-qv-ico:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
html.ui-next[data-theme] body .nx-qv-ico.is-lime { background: var(--nx-accent); color: var(--nx-ink); }
html.ui-next[data-theme] body .nx-qv-ico.is-red { background: #ffe1de; color: #c0281c; }
html.ui-next[data-theme="dark"] body .nx-qv-ico.is-red { background: #47201c; color: #ffb4ab; }
html.ui-next[data-theme] body .nx-qv-ico:disabled { opacity: .45; cursor: default; }
html.ui-next[data-theme] body #dealDetailContent .nx-newq { align-self: center; }

/* ── The small yes/no card: 400 wide, title 20, one muted line, Keep (outline) · the action ── */
html.ui-next[data-theme] body .nx-yesno-veil { z-index: 320; }
html.ui-next[data-theme] body .nx-pop.nx-yesno { width: 400px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
html.ui-next[data-theme] body .nx-yesno .nx-h2 { margin: 0; overflow-wrap: anywhere; }
html.ui-next[data-theme] body .nx-yesno p { margin: 0; font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body .nx-yesno-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
html.ui-next[data-theme] body .nx-yesno-btns .nx-btn { width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-yesno .nx-yn-keep { background: transparent; box-shadow: inset 0 0 0 1px var(--nx-line); }
html.ui-next[data-theme] body .nx-yesno .nx-yn-danger { background: #e0524a; color: #fff; }

/* Setup → Calendars → My calendar: the row, one line, then Connect (lime) or Disconnect (outline). */
html.ui-next[data-theme] body #page-setup .nx-mycal-note { margin: 0; font: 400 var(--nx-t-body)/1.45 var(--nx-font); }
html.ui-next[data-theme] body #page-setup [data-nx-mycal].nx-yn-keep { background: transparent; box-shadow: inset 0 0 0 1px var(--nx-line); }

/* ═══ LIVE QA FIXES, WAVE 1 (2026-11-28): ONE scroll pattern · the four icons in one place ═══════════════════
   SPLIT pages (Leads, Contacts, Projects, Chat, Service, Crew, Setup): the list column and what it opened each
   scroll on their own, the full height of the screen; the column's title row stays at its top; the opened side
   keeps an 88 band at its top where the four icons sit. FULL-WIDTH pages (Home, Money, Reports, Calendar,
   Deliveries, Needs you, the quote builder): the page scrolls and its title row stays at the top.
   The four icons (search · Ask Gia · alerts · +) are fixed at the top right — 28 down, 20 in — on every page. */
html.ui-next { --nx-band: 88px; --nx-tools-w: 212px; }
html.ui-next[data-theme] body > .nx-tools { position: fixed !important; top: 28px; right: 20px; z-index: 190; margin: 0; }
/* Ask Gia switched off (owner, launch): the button goes, the other three stay where they were. */
html.ui-next[data-theme] body .nx-tools #helpBtn.perm-off { display: none !important; }
/* Search opens into a box that grows to the LEFT over the page; the icons beside it never move. */
html.ui-next[data-theme] body > .nx-tools:has(.search-shell:focus-within) { padding-left: 52px; }
html.ui-next[data-theme] body > .nx-tools .search-shell:focus-within { position: absolute !important; top: 0; right: calc(100% - 44px); z-index: 2; box-shadow: 0 6px 24px rgba(0,0,0,.12) !important; }
/* The page's own head row (full-width pages and the opened side of a split page): stays at the top, page colour
   behind it, and leaves the icons their room on the right. Its own buttons (Share PDF…) sit left of the icons. */
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body .nx-headrow { position: sticky !important; top: 0; z-index: 30; background: var(--nx-bg);
  margin-top: -28px !important; padding-top: 28px !important; padding-bottom: 16px !important; margin-bottom: -16px !important; padding-right: var(--nx-tools-w) !important; box-sizing: content-box; min-height: 44px; }
html.ui-next[data-theme] body .nx-headrow > .nx-head-tools:empty { display: none; }

/* — Split: the list column. Its title row stays at the top; the rest scrolls under it. — */
html.ui-next body.leads-active #page-leads:not([hidden]) { position: sticky; top: 0; height: 100vh; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important;
  scrollbar-width: none; padding-top: 28px !important; }
html.ui-next body.leads-active #page-leads::-webkit-scrollbar { display: none; }
html.ui-next[data-theme] body #nxProjList { position: sticky; top: 0; height: 100vh; min-height: 0 !important; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
html.ui-next[data-theme] body #nxProjList::-webkit-scrollbar { display: none; }
html.ui-next[data-theme] body #page-projects:not([hidden]) { height: auto !important; min-height: 100vh; overflow: visible !important; }
html.ui-next[data-theme] body :is(.nx-split-col, #nxProjList) > .nx-col-head,
html.ui-next[data-theme] body #page-leads > .sg-leads-head,
html.ui-next[data-theme] body :is(#nxSetNav, #nxSetRows) > .nx-title {
  position: sticky; top: -28px; z-index: 20; background: var(--nx-bg); height: auto !important; box-sizing: content-box !important; margin-top: -28px !important; padding-top: 28px !important; padding-bottom: 14px !important; margin-bottom: -14px !important; }
/* The emptied icon slot in a column head takes no room. */
html.ui-next[data-theme] body :is(.nx-col-head, .sg-leads-head) > .nx-head-tools:empty { display: none; }

/* — Split: what the list opened. Its own scroll, starting under the icons' band. — */
html.ui-next body:is(.leads-active, .quote-active) .detail-fullpage:not([hidden]),
html.ui-next body.projects-active #projectsBody .detail-fullpage:not([hidden]) { top: 0 !important; bottom: 0 !important; }
html.ui-next[data-theme] body :is(#dealDetailPanel, #projectDetailPanel) .detail-content { height: 100% !important; overflow: hidden; }
html.ui-next[data-theme] body :is(#dealDetailPanel, #projectDetailPanel) .dlp { height: 100% !important; }
html.ui-next[data-theme]:is(html, #nx-x) body :is(#dealDetailPanel, #projectDetailPanel) .dlp-scroll { overflow-y: auto !important; overflow-x: hidden !important; min-height: 0; padding-top: 28px !important; }
/* The built split pages (Contacts, Service, Crew, Chat) and Setup: the page is exactly the screen; each column
   scrolls itself. clip (not hidden) so a "jump to this item" can never slide the whole app out of place. */
html.ui-next[data-theme] body .page.nx-split:not([hidden]) { height: 100vh !important; min-height: 0 !important; overflow: clip !important; }
html.ui-next[data-theme] body .page.nx-split:not([hidden]) > .nx-split-pane { position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
html.ui-next[data-theme] body #page-setup:not([hidden]) { height: 100vh !important; overflow: clip !important; }
html.ui-next[data-theme] body #page-setup #nxSetPane { position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; box-sizing: border-box; scrollbar-width: thin; }
/* Every column starts on the same top line (owner): the empty band that held the icons is gone; the opened
   side's first row keeps its right end clear for the floating icons. */
html.ui-next[data-theme] body :is(.nx-split-pane, #nxSetPane) > .nx-pane-top:not(:has(> :not(.nx-head-tools))):has(> .nx-head-tools:empty),
html.ui-next[data-theme] body :is(.nx-split-pane, #nxSetPane) > .nx-pane-top:empty { display: none !important; }
html.ui-next[data-theme] body :is(.nx-split-pane, #nxSetPane) > .nx-pane-top + *,
html.ui-next[data-theme] body #nxSetPane > .nx-set-head { padding-right: var(--nx-tools-w) !important; box-sizing: border-box; }
/* A sticky row inside a padded scroller sticks at the padding's edge: pull it up to the very top. */
html.ui-next[data-theme]:is(html, #nx-x#nx-y#nx-z) body :is(.nx-split-pane, #nxSetPane) > .nx-headrow { top: -28px; }
/* Home's top row is inside a short box; let the row stick for the whole page. */
html.ui-next[data-theme] body #page-dashboard:not(.is-money) #nxHome { display: contents; }
/* Chat: the thread's own top row keeps clear of the icons (its Lead · Contact · call buttons sat under them). */
html.ui-next[data-theme] body #page-conversations .inbox-thread-pane .inbox-thread-header,
html.ui-next[data-theme] body #page-conversations .inbox-thread-pane .inbox-thread-head { padding-right: var(--nx-tools-w) !important; min-height: var(--nx-band); box-sizing: border-box; }
/* Full-width pages: the page scrolls — no box inside it scrolls on its own. */
html.ui-next[data-theme] body #page-dashboard .sg-list { max-height: none !important; overflow: visible !important; }
html.ui-next[data-theme] body #page-quotes#page-quotes .qgm-packages-card { max-height: none !important; height: auto !important; overflow: visible !important; }
/* The quote builder's Price column: it is fixed on the right, so it starts under the icons. */
/* (its title sits at the top line like every column; the icons float over its right end) */
/* Projects: the list view is exactly the screen (the list and the project scroll themselves); Deliveries, the
   call sheet and the calendar are full-width pages that scroll. */
html.ui-next body.projects-active .shell { height: auto !important; max-height: none !important; overflow: visible !important; }
html.ui-next[data-theme] body:not(.nx-projview-alt) #page-projects:not([hidden]) { height: 100vh !important; min-height: 0 !important; overflow: clip !important; }

/* ── One font (G6): the old "Outfit" stack is gone from the new look — Inter for text, Schibsted for titles. ── */
html.ui-next { --sans: Inter, -apple-system, system-ui, sans-serif; }
/* ── One dropdown (G7): every select gets the same chevron INSIDE the field, 14 in from the edge, with room so the
   text never runs under it; no select is left looking like a text box. (4 ids so it outranks each screen's own
   background shorthand.) ── */
html.ui-next {
  --nx-chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356594f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}
html.ui-next[data-theme="dark"] {
  --nx-chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6a6a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body select:not([multiple]):not([size]) {
  -webkit-appearance: none !important; appearance: none !important;
  background-image: var(--nx-chev) !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 16px 16px !important;
  padding-right: 40px !important; padding-left: 14px !important; text-overflow: ellipsis; text-align-last: auto;
}
/* The quiet right-aligned selects inside a row (label left · value right) keep their look, chevron included. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body select.nx-kv-in { padding-left: 0 !important; text-align-last: right; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body select::-ms-expand { display: none; }
/* Which studio (LG3): a plain building tile per studio (not one orange house for all), the picked one ringed in lime. */
html.ui-next[data-theme] .login-studio .st-av { background: var(--nx-soft) !important; }
html.ui-next[data-theme] .login-studio .st-av::after { background: var(--nx-text); }
html.ui-next[data-theme] .login-studio { border-radius: var(--nx-r-card); }
html.ui-next[data-theme] .login-studio.sel { background: var(--nx-card); box-shadow: inset 0 0 0 2px var(--nx-accent) !important; }
html.ui-next[data-theme] .login-studio .st-tick { flex: 0 0 auto; }
html.ui-next[data-theme] .login-studio.sel .st-tick { color: #4d7c0f; }
html.ui-next[data-theme="dark"] .login-studio.sel .st-tick { color: var(--nx-accent); }
html.ui-next[data-theme] .login-studios { gap: 0; }

/* The icons float top-right over every page; a patch of page colour behind them so whatever scrolls under them
   never shows through between the round buttons. Nothing is pushed down for them. */
html.ui-next[data-theme] body > .nx-tools::before { content: ""; position: absolute; z-index: -1; top: -28px; right: -20px; bottom: -14px; left: -14px; background: var(--nx-bg); pointer-events: none; }
/* Setup: the opened setting's title sits on the same top line as "Setup" and the page list (it was 5 lower). */
html.ui-next[data-theme] body #nxSetPane > .nx-set-head { align-items: flex-start !important; min-height: 0 !important; }

/* ═══ WAVE 2 (live QA 2026-11-28) ═══════════════════════════════════════════════════════════════════════════ */
/* A shoot card: the same inner padding on every row, dated or not (an undated row sat flush on the card's edge);
   its opened form keeps 16 inside the card. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #projectDetailPanel .proj-evt-head { padding: 12px 16px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #projectDetailPanel .proj-evt-body { padding: 4px 16px 16px !important; }
html.ui-next[data-theme] body .nx-datechip.is-none { background: var(--nx-soft); color: var(--nx-muted); }
/* Buttons keep the app's sizes (owner): a row of actions never stretches a button past 320 wide. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b) body .nx-acts { grid-auto-columns: minmax(0, 320px) !important; justify-content: start; }
/* A project opened on its own (from Home, the calendar, a delivery): the page is capped at 900 and centred, not
   stretched edge to edge on a wide screen. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b) body.nx-proj-full #projectDetailPanel .dlp-scroll { padding-left: max(20px, calc((100% - 900px) / 2)) !important; padding-right: max(20px, calc((100% - 900px) / 2)) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b) body #projectDetailPanel .nx-ph-btns { grid-template-columns: repeat(4, minmax(0, 220px)); justify-content: start; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b) body #dealDetailContent .nx-ph-btns.is-3 { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: start; }
/* Client page pop-up: the link on one line, four round icon buttons, then the PIN · New PIN · how far it got. */
html.ui-next[data-theme] body .nx-portalpop { display: flex; flex-direction: column; gap: 16px; }
html.ui-next[data-theme] body .nx-portalpop .pj-portal { all: unset; display: block; }
html.ui-next[data-theme] body .nx-portalpop .pj-portal-h { display: none !important; }
html.ui-next[data-theme] body .nx-portalpop .dlp-portal-row { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
html.ui-next[data-theme] body .nx-portalpop .dlp-portal-url { display: block; padding: 12px 16px; border-radius: 14px; background: var(--nx-soft); color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
html.ui-next[data-theme] body .nx-portalpop .dlp-portal-icons { display: flex; gap: 10px; }
html.ui-next[data-theme] body .nx-portalpop .dlp-portal-ico { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nx-soft); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-portalpop .dlp-portal-ico .material-symbols-outlined { font-size: 20px; }
html.ui-next[data-theme] body .nx-portalpop .dlp-portal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; font: 400 var(--nx-t-body)/1.45 var(--nx-font); color: var(--nx-text); }
html.ui-next[data-theme] body .nx-portalpop .dlp-portal-newpin { all: unset; cursor: pointer; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--nx-soft); font: 600 var(--nx-t-body)/44px var(--nx-font); }
html.ui-next[data-theme] body .nx-portalpop .dlp-portal-reach { flex-basis: 100%; color: var(--nx-muted) !important; font-size: var(--nx-t-small) !important; }
html.ui-next[data-theme] body .nx-portalpop .muted { color: var(--nx-muted) !important; font-size: var(--nx-t-body) !important; }

/* ── The chat inside a lead, a project and a contact (board: "A lead · chat") — the Chat page's look: a status card with
   a dot and Take over, bubbles (theirs on a card, ours in lime), quick replies, one rounded box with a round send. ── */
html.ui-next[data-theme] body .contact-chat { height: auto !important; min-height: 0; display: flex; flex-direction: column; gap: var(--nx-gap-card); border: 0 !important; background: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat-bar { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 60px; box-sizing: border-box; margin: 0 !important;
  padding: 8px 8px 8px 16px !important; border: 0 !important; border-radius: 18px !important; background: var(--nx-card) !important; box-shadow: none !important; }
html.ui-next[data-theme] body .contact-chat-bar::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #f0932b; }
html.ui-next[data-theme] body .contact-chat-bar:is([data-state="open"], [data-state="no-window"])::before { background: #8cc63f; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat-bar .cc-window-text { flex: 1 1 auto; min-width: 0; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat-bar .cc-window-text :is(a, strong) { color: inherit !important; font-size: inherit !important; }
html.ui-next[data-theme] body .contact-chat-bar .cc-bar-actions { display: flex; gap: 8px; flex: 0 0 auto; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat-bar :is(.cc-takeover-btn, .cc-tpl-btn):not([hidden]) { height: 44px !important; min-height: 44px !important; padding: 0 16px !important; border: 0 !important; border-radius: 22px !important;
  box-shadow: none !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; display: inline-flex !important; align-items: center; gap: 6px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat-bar .cc-tpl-btn:not([hidden]) { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body .contact-chat-bar .cc-tpl-btn .material-symbols-outlined { font-size: 18px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-banner:not([hidden]) { margin: 0 !important; padding: 0 4px !important; border: 0 !important; background: none !important; color: var(--nx-muted) !important; font: 400 var(--nx-t-small)/1.4 var(--nx-font) !important; }
/* The messages: the page scrolls (no box inside the page scrolls on its own). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages { flex: 0 0 auto; height: auto !important; max-height: none !important; overflow: visible !important; display: flex; flex-direction: column; gap: 8px;
  padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; }
html.ui-next[data-theme] body .contact-chat .inbox-messages .msg-avatar { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg { display: flex; max-width: none !important; align-self: stretch !important; justify-content: flex-start; margin: 0 !important; padding: 0 !important; gap: 0; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg.out { justify-content: flex-end; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg-col { max-width: 78%; display: flex; flex-direction: column; gap: 3px; padding: 10px 14px !important; border-radius: 18px !important;
  background: var(--nx-card) !important; color: var(--nx-text) !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg.out .msg-col { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg-bubble { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important;
  max-width: none !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; overflow-wrap: anywhere; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg-bubble * { color: inherit !important; -webkit-text-fill-color: currentColor !important; font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg-meta { align-self: flex-end; margin: 0 !important; padding: 0 !important; color: var(--nx-muted) !important; font: 400 var(--nx-t-small)/1.3 var(--nx-font) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg.out .msg-meta { color: var(--nx-ink-2, #3d4a12) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg-meta * { font-size: var(--nx-t-small) !important; color: inherit !important; }
html.ui-next[data-theme] body .contact-chat .inbox-messages .msg-tag { background: none !important; border: 0 !important; padding: 0 !important; color: inherit !important; font-weight: 600; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg-datesep { display: flex; justify-content: center; margin: 6px 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
html.ui-next[data-theme] body .contact-chat .inbox-messages .msg-datesep::before, html.ui-next[data-theme] body .contact-chat .inbox-messages .msg-datesep::after { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages .msg-datesep span { padding: 2px 10px; border-radius: 10px; background: var(--nx-card) !important; color: var(--nx-muted) !important; font: 400 var(--nx-t-small)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-messages > :is(.muted, .empty, p) { margin: 0 !important; padding: 16px !important; border-radius: 18px; background: var(--nx-card); color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; text-align: center; }
/* Quick replies: one row of 44 chips over the box; gone while the box is shut. */
html.ui-next[data-theme] body .contact-chat .nx-ereplies:not([hidden]) { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
html.ui-next[data-theme] body .contact-chat .nx-ereplies::-webkit-scrollbar { display: none; }
html.ui-next[data-theme] body .contact-chat:has(.inbox-compose textarea:disabled) .nx-ereplies { display: none !important; }
html.ui-next[data-theme] body .contact-chat .nx-ereplies .nx-chip { flex: 0 0 auto; }
html.ui-next[data-theme] body .contact-chat .nx-ereplies .nx-chip:disabled { opacity: .55; cursor: progress; }
/* The box: one rounded card — attach, the words, a round lime send. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-compose { position: static !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-compose-row { display: flex !important; align-items: flex-end; gap: 6px; min-height: 56px; box-sizing: border-box; padding: 6px !important; margin: 0 !important;
  border: 0 !important; border-radius: 28px !important; background: var(--nx-card) !important; box-shadow: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .inbox-compose-row textarea { all: unset; flex: 1 1 auto; min-width: 0; box-sizing: border-box; min-height: 44px !important; max-height: 160px !important; padding: 12px 4px !important;
  field-sizing: content; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--nx-text) !important; -webkit-text-fill-color: currentColor !important; font: 400 var(--nx-t-body)/20px var(--nx-font) !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none !important; border-radius: 0 !important; height: auto !important; resize: none; opacity: 1 !important; }
html.ui-next[data-theme] body .contact-chat .inbox-compose-row textarea::placeholder { color: var(--nx-muted); -webkit-text-fill-color: var(--nx-muted); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat :is(.compose-attach, .cc-send-btn) { flex: 0 0 auto; width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 50% !important; box-shadow: none !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; display: inline-flex !important; align-items: center; justify-content: center; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat .cc-send-btn { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat :is(.compose-attach, .cc-send-btn):disabled { opacity: .45 !important; cursor: not-allowed; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .contact-chat :is(.compose-attach, .cc-send-btn) .material-symbols-outlined { font-size: 20px !important; color: inherit !important; margin: 0 !important; }

/* ── Home · Needs you (live QA H1–H6): Home shows the first five, the count's "See all" sits right of the title; the
   tabs and the Sales / Production / Money chips live on the See-all page, which has a way back. ── */
html.ui-next[data-theme] body #page-dashboard:not(.nx-today) #todayQueue :is(.today-tabs, .today-groups) { display: none !important; }
html.ui-next[data-theme] body :is(#page-dashboard:not(.nx-today) #todayQueue .today-list > .today-item:nth-child(n+6), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-head, #nx-x#nx-y#nx-z):not(.nx-x) { display: flex !important; align-items: center; gap: 12px; }
html.ui-next[data-theme] body #todayQueue .today-head .nx-today-all { margin-left: auto; flex: 0 0 auto; height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 22px;
  background: var(--nx-soft); color: var(--nx-text) !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; text-decoration: none; }
html.ui-next[data-theme] body :is(#todayQueue .today-item[hidden], #nx-x#nx-y#nx-z):not(.nx-x) { display: none !important; }
html.ui-next[data-theme] body :is(#todayQueue .src-pill:disabled, #nx-x#nx-y#nx-z):not(.nx-x) { opacity: .45; cursor: default; }
/* The See-all page: Needs you · Gia did side by side, then the three groups; Back to Home above the title. */
html.ui-next[data-theme] body :is(#page-dashboard.nx-today #todayQueue .today-head, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #page-dashboard.nx-today #todayQueue .today-tabs { display: flex !important; justify-content: flex-start; gap: 8px; margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #page-dashboard.nx-today #todayQueue .today-tabs .src-pill { display: inline-flex !important; }
html.ui-next[data-theme] body .nx-today-back { display: none !important; }
html.ui-next[data-theme] body #page-dashboard.nx-today .nx-today-back { display: inline-flex !important; margin: 0 0 14px; }
/* Dark: the row's action is lime (board), and "waiting N days" is plain words, not a brown highlight (live QA H10). */
html.ui-next[data-theme="dark"] body :is(#todayQueue .today-do, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: var(--nx-accent) !important; color: var(--nx-ink) !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-age, #todayQueue .today-note, #nx-x#nx-y#nx-z):not(.nx-x) { background: none !important; padding: 0 !important; color: inherit !important; font-weight: 400 !important; border: 0 !important; }
/* Alerts: a long alert shows three lines, not one cut short (live QA HP3); the whole row opens what it is about. */
html.ui-next[data-theme] body .notif-pop .notif-row-body { white-space: normal !important; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
html.ui-next[data-theme] body .notif-pop .notif-row { cursor: pointer; }
/* Search: the clear "×" is the app's grey, not the browser's blue (live QA HP1). */
html.ui-next[data-theme] body input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; cursor: pointer; background: var(--nx-muted);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/></svg>") center / 16px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/></svg>") center / 16px no-repeat; }
html.ui-next[data-theme] body :is(#todayQueue .today-head .nx-today-all, #nx-x#nx-y#nx-z):not(.nx-x) { margin-left: auto !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-list, #nx-x#nx-y#nx-z):not(.nx-x) { margin-top: 0 !important; }
html.ui-next[data-theme] body #page-dashboard:not(.nx-today) #todayQueue .today-pane { margin-top: -14px !important; }
/* Delete lead: one row card with a red icon tile, like Delete contact (live QA L7: a small icon with its label wrapped under it). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #dealDetailPanel .nx-del { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 16px;
  border-radius: var(--nx-r-card); background: var(--nx-card); color: var(--nx-text); font: 600 var(--nx-t-body)/1.45 var(--nx-font); cursor: pointer; white-space: nowrap; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #dealDetailPanel .nx-del .material-symbols-outlined { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; background: #e0524a; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #dealDetailPanel .nx-del span:not(.material-symbols-outlined) { font: inherit !important; color: inherit !important; }
/* A dropdown in a details row lines up with the other values (its text starts where theirs does). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body :is(#dealDetailPanel, #projectDetailPanel) .dl-field > select { padding-left: 0 !important; background-color: transparent !important; }
/* Quote builder · Adjust: Markup and Discount line up — the label takes the room, the ₹/% switch and the amount are fixed (live QA Q5). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .qbx-adjust-box .qg-rail-discount-label { flex: 1 1 auto !important; min-width: 0; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .qbx-adjust-box .qg-rail-discount > input:not([type="hidden"]):not([hidden]) { flex: 0 0 160px !important; width: 160px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body .qbx-adjust-box .qg-disc-toggle { flex: 0 0 auto !important; }
/* "Show more" at the end of a long list. */
html.ui-next[data-theme] body .nx-more { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; border-radius: 22px;
  background: var(--nx-soft); color: var(--nx-text); font: 600 var(--nx-t-body)/1 var(--nx-font); margin-top: 6px; }
/* A full-width page reached from a list has a way back above its title (live QA P4: Deliveries had none). */
html.ui-next[data-theme] body .nx-page-back { margin: 0 0 14px !important; }
/* Payments as read rows (live QA P7); the edit boxes show only for the line that was pressed. */
html.ui-next[data-theme] body #projectDetailPanel .proj-pay-list .proj-pay-row:not(.is-editing) { display: none !important; }
html.ui-next[data-theme] body .nx-payread[hidden] { display: none !important; }
html.ui-next[data-theme] body .nx-payread + .proj-pay-list:not(:has(.is-editing)) { display: none !important; }
html.ui-next[data-theme] body .nx-row-side-h { flex-direction: row !important; align-items: center; gap: 10px; }
/* Preview invoice is the quiet one; Issue invoice (permanent) is the main action (live QA P8). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #projectDetailPanel .proj-invoice-preview { background: var(--nx-soft) !important; color: var(--nx-text) !important; }
/* Coordinator sheet: a 44 button like its neighbours, at body size (live QA P6: 13px, looked greyed out). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #projectDetailPanel .proj-coord-sheet { height: 44px !important; min-height: 44px !important; padding: 0 16px !important; border-radius: 22px !important;
  background: var(--nx-soft) !important; color: var(--nx-text) !important; opacity: 1 !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; display: inline-flex !important; align-items: center; gap: 6px; }
/* City insights hidden in the new look (owner, live QA extra finding; R2: every card said "Not enough studios"). */
html.ui-next[data-theme] body :is(#cityInsightsBody, #cityInsightsPanel, [data-ci-open]) { display: none !important; }

/* ═══ WAVE 3 · SETUP (live QA 2026-11-28) ═══════════════════════════════════════════════════════════════════ */
/* The opened setting's card grows with what is in it (its fields ran out under a card cut at the screen's height). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane :is(.setup-layout, .setup-main, #setupForm, .setup-section, .panel) { height: auto !important; max-height: none !important; min-height: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane > .nx-set-head { height: auto !important; min-height: 0 !important; }
/* Every card in the opened setting is the column's full width (owner: equal Setup card widths). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane :is(.setup-main, #setupForm) { display: flex !important; flex-direction: column; align-items: stretch !important; width: 100% !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane :is(.setup-section, .panel):not([hidden]) { width: 100% !important; max-width: none !important; box-sizing: border-box !important; flex: 0 0 auto !important; }
/* Grey filled fields, like every pop-up in the app (owner + G9: Setup had white bordered boxes). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]), select, textarea) {
  background-color: var(--nx-soft) !important; border: 0 !important; box-shadow: none !important; border-radius: 14px !important; color: var(--nx-text) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane :is(input, select, textarea):focus { box-shadow: inset 0 0 0 2px var(--nx-accent) !important; outline: none !important; }
/* Setup → Team → Crew rules: the list, overview, applicants and Find crew are the Crew page's (live QA CR4). */
html.ui-next[data-theme] body #nxSetPane #teamResourcesPanel :is(#teamResourcesList, #crewOverview, #teamApplicants, #teamFindCrewBtn, .panel-heading .muted) { display: none !important; }
/* Services: name, cost, sell and margin fit the column (live QA ST6: "₹30,(" and Margin ran off the right);
   the list grows with the page instead of scrolling inside a box. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane :is(.lib-svc-row, .lib-svc-headrow) { grid-template-columns: minmax(0, 1fr) 60px 84px 52px !important; gap: 8px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane .lib-svc-main { min-width: 0; overflow: hidden; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane .lib-svc-main * { overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane .lib-svc-table { max-height: none !important; overflow: visible !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane .lib-svc-headrow { font-size: var(--nx-t-small) !important; text-transform: none !important; letter-spacing: 0 !important; }
/* Payment plan: the label gets the full width on its own line, then share · anchor · offset · delete (live QA ST7: ~30 wide). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane .lib-plan-row { grid-template-columns: 76px minmax(0, 1fr) 72px 34px !important; gap: 8px !important; row-gap: 6px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane .lib-plan-row > :first-child { grid-column: 1 / -1; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane .lib-plan-row + .lib-plan-row { margin-top: 10px; }
/* Event types: the list grows with the page (no box scrolling inside it). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane :is(.lib-evt-list, .lib-del-list, .lib-pkg-list) { max-height: none !important; overflow: visible !important; }
/* Work samples, What Gia knows, costs: each list is as tall as what it holds — the old 208 window left empty space
   under one line and cut long lists (live QA ST8, ST9). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane :is(#setupOverheads .fin-oh-list, #teamResourcesList, #contentDropsList, #kbList) { height: auto !important; overflow: visible !important; padding-right: 0 !important; }
/* Work samples: the delete button shows its bin (it was a blank grey square), long links wrap inside the card (live QA ST8). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #contentDropsList .content-drop-delete { width: 44px !important; height: 44px !important; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #contentDropsList .content-drop-delete .material-symbols-outlined { display: inline-block !important; font-size: 20px !important; width: auto !important; color: #c2410c !important; -webkit-text-fill-color: currentColor !important; }
html.ui-next[data-theme] body #contentDropsList :is(a, p, span) { overflow-wrap: anywhere; }
/* Setup: "Setup", the page name and the opened setting's title sit on one line (live QA ST10: 28 vs 56). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body :is(#nxSetNav, #nxSetRows) > .nx-title { margin-top: -28px !important; }
html.ui-next[data-theme] body #contentDropsList a { white-space: normal !important; word-break: break-all; }
/* "Use your own Meta app" pop-up: the app's two text sizes and its own face — no 11.5 / 13, no typewriter type (live QA ST11). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #settingsModalBody :is(p, li, label, span, small, code, kbd, pre, input, details, summary) { font-family: var(--nx-font) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #settingsModalBody :is(p, li, label > span, summary, input, code) { font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #settingsModalBody :is(small, .muted, .small) { font-size: var(--nx-t-small) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #settingsModalBody code { background: var(--nx-soft); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
/* Profile menu · Switch studio (live QA HP5). */
html.ui-next[data-theme] body #studioSwitchList:not(:empty) { border-top: 1px solid var(--nx-line); margin-top: 6px; padding-top: 6px; }
html.ui-next[data-theme] body #studioSwitchList .nx-pm-head { padding: 8px 12px 4px; color: var(--nx-muted); font: 600 var(--nx-t-small)/1.3 var(--nx-font); }
html.ui-next[data-theme] body #studioSwitchList .nx-pm-studio { display: flex !important; align-items: center; gap: 10px; }
html.ui-next[data-theme] body #studioSwitchList .nx-pm-studio .nx-pm-name { flex: 1 1 auto; text-align: left; }
html.ui-next[data-theme] body #studioSwitchList .nx-pm-studio.is-current { opacity: 1 !important; cursor: default; font-weight: 600; }
html.ui-next[data-theme] body #studioSwitchList .nx-pm-tick { color: #4d7c0f; display: inline-flex; }
html.ui-next[data-theme="dark"] body #studioSwitchList .nx-pm-tick { color: var(--nx-accent); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #profileMenuPop .profile-menu-email { font-size: var(--nx-t-small) !important; color: var(--nx-muted) !important; }
/* Change password: its title is the pop-up title size like every other (live QA G10: 14 vs 20). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body .sg-dialog :is(h2, h3, .sg-dialog-title) { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #studioSwitchList .nx-pm-head { text-align: left !important; align-self: stretch; }
/* Setup on a 1280 screen: the two lists narrow so the opened setting keeps a usable width (1280 pass: it was 287 wide). */
@media (max-width: 1399px) {
  html.ui-next[data-theme] body #page-setup.nx-setup:not([hidden]) { grid-template-columns: 260px 320px minmax(0, 1fr); }
}
/* The lead's Stage pill: its words start after its colour dot (the dropdown's own padding had put them on top of it). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body .nx-stage-chip select { padding-left: 30px !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-head, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { width: 100% !important; align-self: stretch !important; }
/* Tax and travel (and every label · value row in Setup): a dropdown gets room for its words — "Plus GST", "A premium"
   (live QA G8: cut to "Plus…" / "A pr…"); number boxes stay narrow. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane .cal-row:has(> select) { grid-template-columns: minmax(0, 1fr) 176px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetPane .cal-row > select { width: 176px !important; }
/* Quote builder: grey filled fields like the rest of the new look (owner 2026-11-28: they were white boxes). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-quotes :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]), select, textarea) {
  background-color: var(--nx-soft) !important; border: 0 !important; box-shadow: none !important; border-radius: 14px !important; color: var(--nx-text) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-quotes :is(input, select, textarea):focus { box-shadow: inset 0 0 0 2px var(--nx-accent) !important; outline: none !important; }
html.ui-next[data-theme] body .nx-quick-chip[hidden] { display: none !important; }
/* Chat thread: with no number the Call button says so in words (it is otherwise a round icon). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #inboxThread .inbox-thread-actions #inboxCallBtn:disabled { width: auto !important; padding: 0 14px !important; gap: 6px !important; border-radius: 22px !important;
  font: 600 var(--nx-t-small)/1 var(--nx-font) !important; background: var(--nx-soft) !important; color: var(--nx-muted) !important; opacity: 1 !important; cursor: default; }

/* ═══ WAVE 4 · two-reviewer audit fixes (2026-11-29) ═══════════════════════════════════════════════════════════ */
/* Setup: the opened setting's title row is the pane's own sticky band (page colour, full width, to y=86), so the
   card under it starts below the icons — no notch where the icons' page-colour patch met the card — and a long
   title wraps instead of being cut ("When leads g…"). The title box starts at 0 like Setup / the page list. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane > .nx-set-head { position: sticky; top: -28px; z-index: 20; background: var(--nx-bg); margin: -28px -20px 0 !important; padding: 0 var(--nx-tools-w) 0 20px !important; min-height: 86px !important; box-sizing: border-box !important; align-items: flex-start !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane > .nx-set-head > .nx-title { padding: 28px 0 14px !important; margin: 0 !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane > .nx-set-head > .setup-head-actions { margin-top: 28px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane > .nx-set-head { margin-bottom: -14px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane #rerunSetupItem { margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane .setup-section.nx-on > .setup-card-head:has(> :not(h2):not([hidden])) { margin: 0 0 14px !important; }
/* Profile menu: every row is 44 like every other button (audit #35: 40; an old 40 min-height won). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #profileMenuPop .profile-menu-item { min-height: 44px !important; }
/* Search keeps its icon where it always is (audit #93): the open box grows left from the icon's own spot, the icon
   at the box's right end, so it never slides from 1272. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body > .nx-tools .search-shell:focus-within > .material-symbols-outlined { order: 2; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body > .nx-tools .search-shell:focus-within > input { order: 1; padding: 0 4px 0 18px !important; }
/* The clear × is the app's grey in both themes (audit #32: the old look's own #globalSearch rule out-ranked it). */
html.ui-next[data-theme] body #globalSearch::-webkit-search-cancel-button { -webkit-appearance: none !important; appearance: none !important; width: 16px; height: 16px; cursor: pointer; background: var(--nx-muted);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/></svg>") center / 16px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/></svg>") center / 16px no-repeat; }
/* Contact: its buttons hug their words (audit #42-#44: New lead / Add note / New quote ran the pane's full 768). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #nxContactsPane > .nx-btn.is-main { align-self: flex-start; width: auto !important; min-width: 160px; max-width: 480px; padding: 0 28px !important; }
/* Setup: a field brought into view is marked by a soft panel that reaches past it (no ring flush on its words —
   audit #67, #83, #88). The spread is shadow, so nothing moves. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #page-setup .nx-set-flash { box-shadow: 0 0 0 12px color-mix(in srgb, var(--nx-accent) 22%, transparent) !important; background: color-mix(in srgb, var(--nx-accent) 22%, transparent) !important; border-radius: 4px; outline: 0 !important; }
/* Setup at 1280: the page list keeps its 400 (audit #63: 320 cut every second line); the Setup menu narrows instead. */
@media (max-width: 1399px) {
  html.ui-next[data-theme]:is(html, #nx-a#nx-b) body #page-setup.nx-setup:not([hidden]) { grid-template-columns: 220px 400px minmax(0, 1fr); }
}
/* Chat thread: the name starts on the page's top line like "Chat" (audit #12: 50 vs 33), and its Lead · Contact ·
   Call buttons sit on their own row under the name, out of the icons' band (audit #51, #52). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-conversations #inboxThread .inbox-thread-head { flex-wrap: wrap !important; align-items: flex-start !important; row-gap: 10px !important; padding-top: 5px !important; min-height: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-conversations #inboxThread .inbox-thread-actions { flex: 0 0 100% !important; justify-content: flex-start; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-conversations #inboxThread .inbox-thread-actions:not(:has(> :not([hidden]))) { display: none !important; }
/* Filter rows in a list column wrap onto a second line instead of cutting the last chip ("WhatsAp", "Editors" —
   audit #53, #56). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body .nx-col-body > .nx-chips { flex-wrap: wrap !important; overflow: visible !important; row-gap: 8px; }
/* The reply box is a grey filled field like every other (audit #54: card colour in light). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #inboxComposeText { background: var(--nx-soft) !important; }
/* A column that scrolls itself never squashes what is in it: the chip rows (Projects / Calendar, All · This week…,
   a contact's Details · Leads · Activity · Quotes) were shrunk to 0 tall by the column's fixed height
   (audit #4, #7, #8). The column scrolls instead. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body :is(#nxProjList, .nx-split-pane, .nx-split-col, .nx-col-body) > * { flex-shrink: 0 !important; }
/* Projects list: the empty tools slot (the icons float in the body) took 88px under the list and cut its last rows
   (audit #10: 960 in 900, nothing scrolls). */
html.ui-next[data-theme] body:not(.nx-projview-alt) #page-projects > .nx-page-head.nx-tools-only:not(:has(> :not(.nx-head-tools))):has(> .nx-head-tools:empty) { display: none !important; }
/* Deliveries: "‹ Projects" sits on the title's own line, left of it, so the title keeps the page's top line (audit #50). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body .nx-page-head > .nx-page-back { margin: 0 !important; flex: 0 0 auto; align-self: center; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body .nx-page-head:has(> .nx-page-back) { align-items: center; gap: 14px; }
/* Home · Needs you: the row's words are trimmed, never the "waiting N days" after them (audit #27, 1280). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #todayQueue .today-sub { display: flex !important; min-width: 0; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #todayQueue .today-sub > * { flex: 0 0 auto; white-space: pre; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #todayQueue .today-sub > .today-desc { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Quote builder · price column: the Save buttons follow the column's content instead of floating over it (audit #28,
   #46: the sticky block cut the last note and, at 1280, the "Show the price as" row); the column scrolls to them. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-quotes .qbx-actions { position: static !important; box-shadow: none !important; margin: 0 !important; padding: 0 0 20px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-quotes #manualThemeNote a { color: inherit !important; font-weight: 600; text-decoration: underline; }
/* "Clear the form" is a soft filled button in both themes (audit #48: an outline in dark, bare words in light). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-quotes #manualPricingPreview .qg-generate.is-ghost { background: var(--nx-soft) !important; box-shadow: none !important; color: var(--nx-text) !important; }
/* Pop-ups (Add a shoot, Record a payment): the main button hugs its word at the right like "Create lead" (audit #29:
   492 wide), and in dark the page behind dims like the New lead pop-up so the card stands clear (audit #30). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body .nx-pop > .nx-btn.is-main { align-self: flex-end; width: auto !important; min-width: 140px; padding: 0 28px !important; }
html.ui-next[data-theme="dark"]:is(html, #nx-a#nx-b#nx-c) body .nx-pop-veil { background: rgba(0, 0, 0, .74) !important; }
html.ui-next[data-theme="dark"]:is(html, #nx-a#nx-b#nx-c) body .nx-pop { box-shadow: 0 0 0 1px var(--nx-line), 0 24px 64px rgba(0, 0, 0, .55) !important; }
/* New lead: "Contact *" sits like every other label — the normal gap above, 10 down to its chips, no dashed rule
   (audit #33). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #newDealModal .modal-section-header { border-top: 0 !important; margin: 4px 0 10px !important; padding: 0 !important; }
/* New task: Task, Type and Due share the Lead box's edges (the form had its own 24 sides — audit #37), and Due is a
   grey filled box like the rest (audit #34: black in dark, white in light). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #newTaskModal #newTaskForm { padding-left: 0 !important; padding-right: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body > .modal input[type="datetime-local"] { background: var(--nx-soft) !important; border: 0 !important; box-shadow: none !important; border-radius: 14px !important;
  height: 44px !important; padding: 0 14px !important; color: var(--nx-text) !important; color-scheme: light dark; }
html.ui-next[data-theme="dark"] body > .modal input[type="datetime-local"] { color-scheme: dark; }
html.ui-next[data-theme="light"] body > .modal input[type="datetime-local"] { color-scheme: light; }
/* A lead's Booking value: the ₹ sits inside one grey box with the number, 16 in from its edge (audit #40). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #dealDetailPanel label.dlp-amount { display: inline-flex !important; align-items: center; gap: 6px; height: 44px; box-sizing: border-box; padding: 0 16px !important;
  border-radius: 14px; background: var(--nx-soft) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #dealDetailPanel label.dlp-amount input { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; height: 44px; width: 120px; color: inherit !important; }
/* Applicant: Add to crew / Not now hug their words (audit #55: 768 wide). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body .nx-acts-col { align-items: flex-start; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body .nx-acts-col > .nx-btn { width: auto !important; min-width: 200px; max-width: 480px; padding: 0 28px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-conversations #inboxThread > :not(#inboxMessages) { flex-shrink: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-conversations #inboxThread > #inboxMessages { flex: 1 1 auto !important; min-height: 0 !important; }

/* ── Setup words and fields (audit 2026-11-29) ── */
html.ui-next[data-theme] body .nx-label-old { display: none !important; }
html.ui-next[data-theme] body .nx-label-new { display: inline !important; }
html.ui-next[data-theme] body #teamPanel .team-role-more { display: none !important; }
html.ui-next[data-theme] body #teamPanel .team-role-link:not(#x) { display: inline !important; margin-left: 6px; color: inherit; font-weight: 600; text-decoration: underline; }
/* A unit inside the box after the number ("7 days", "60 min", "10 %") — audit #117, #125, #134, #118. */
html.ui-next[data-theme] body #page-setup .nx-unit { display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 16px; border-radius: 14px; background: var(--nx-soft); }
html.ui-next[data-theme] body #page-setup .nx-unit:focus-within { box-shadow: inset 0 0 0 2px var(--nx-accent); }
html.ui-next[data-theme] body #page-setup .nx-unit::after { content: attr(data-unit); flex: 0 0 auto; pointer-events: none; color: var(--nx-muted); font: 400 var(--nx-t-body)/1 var(--nx-font); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #page-setup .nx-unit > input { flex: 1 1 auto; width: auto !important; min-width: 0; height: 44px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #page-setup .cal-row > .nx-unit { display: flex !important; flex-direction: row !important; width: 120px; justify-self: end; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #page-setup .cal-row:has(> .nx-unit) { grid-template-columns: minmax(0, 1fr) 120px !important; }
/* Gia: "Routine messages" gets a section's room above it, and the switch rows start on the fields' left edge (audit #68). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane #autonomyRows { margin-top: 28px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane :is(.toggle-row, .setup-toggle) { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
/* Follow-up messages: each message's on/off is a real switch you can see in dark (audit #21), and the blanks are
   readable chips (#a6a6a6-class contrast). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #fuEditor .fu-step-on input[data-fu-on] { -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 auto; width: 44px !important; height: 26px !important; margin: 0 10px 0 0 !important;
  border-radius: 13px; background: var(--nx-line) !important; border: 0 !important; cursor: pointer; vertical-align: middle; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #fuEditor .fu-step-on input[data-fu-on]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--nx-text); transition: left .15s ease; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #fuEditor .fu-step-on input[data-fu-on]:checked { background: var(--nx-accent) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #fuEditor .fu-step-on input[data-fu-on]:checked::before { left: 21px; background: var(--nx-ink); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #fuEditor .fu-step-on { display: inline-flex !important; align-items: center; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #fuEditor .fu-blank { background: var(--nx-soft) !important; color: var(--nx-text) !important; opacity: 1 !important; border: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #fuEditor .fu-blank:disabled { color: var(--nx-muted) !important; }
/* Bring in your data: the two ways stacked full width; the file button is the app's own soft pill (audit #64). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #importPanel .imp-source { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #importPanel .imp-source > .imp-field { width: 100% !important; display: flex; flex-direction: column; gap: 8px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #importPanel .imp-or { align-self: flex-start; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #importPanel #impSheet { width: 100% !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #importPanel #impFile { width: 100% !important; height: 44px; padding: 0 !important; border: 0 !important; background: none !important; color: var(--nx-muted); font: 400 var(--nx-t-body)/44px var(--nx-font); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #importPanel #impFile::file-selector-button { height: 44px; margin-right: 12px; padding: 0 18px; border: 0; border-radius: 22px; background: var(--nx-soft); color: var(--nx-text); font: 600 var(--nx-t-body)/1 var(--nx-font); cursor: pointer; }
/* Studio calendar: the Connected pill is one line, dot beside the word (audit #74). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #gcalStatus { display: flex !important; align-items: center; gap: 10px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #gcalStatusPill { display: inline-flex !important; align-items: center; flex: 0 0 auto; white-space: nowrap !important; height: auto !important; min-height: 0 !important; padding: 3px 10px !important; border-radius: 10px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #gcalStatusText { flex: 1 1 auto; min-width: 0; }
/* My calendar: Disconnect is the compact soft pill the Studio calendar uses, not a full-width outline (audit #76). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetExtra [data-nx-mycal="off"] { width: auto !important; align-self: flex-end; margin-left: auto; display: flex; padding: 0 18px !important; height: 44px !important;
  border: 0 !important; box-shadow: none !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetExtra .nx-sec:has([data-nx-mycal]) { display: flex; flex-direction: column; }
/* Services: "per shift" always shows whole; the role words are trimmed instead (audit #77). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane .lib-svc-sub { display: flex !important; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane .lib-svc-sub > .lib-tag { flex: 0 0 auto; overflow: visible !important; text-overflow: clip !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane .lib-svc-sub > .lib-svc-role { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Payment plan: each heading sits over its box (audit #81); the label has its own line, so no "Label" heading. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane .lib-plan-headrow { display: grid !important; grid-template-columns: 76px minmax(0, 1fr) 72px 34px !important; gap: 8px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetPane .lib-plan-headrow > :first-child { display: none !important; }
/* The picked row in a Setup list is the plain filled row of the Setup menu — no extra ring (audit #85). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetRows .nx-line.is-open { box-shadow: none !important; outline: 0 !important; border-color: transparent !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #nxSetRows .nx-box:has(> .nx-line.is-open) { box-shadow: none !important; outline: 0 !important; }
/* GST number: its own full-width box under its label (audit #86: 68 wide, "GST numb"). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #paymentsCard .cal-row:has(> input[name="gstin"]) { grid-template-columns: minmax(0, 1fr) !important; row-gap: 8px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #paymentsCard .cal-row > input[name="gstin"] { width: 100% !important; }
/* Ad spend: one two-column grid — Month · Channel over Ad id · Amount, both filling the card (audit #89). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #adSpendForm { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 12px !important; align-items: end; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #adSpendForm > .field { width: auto !important; min-width: 0 !important; margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #adSpendForm > .field :is(input, select) { width: 100% !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #adSpendForm > button { grid-column: 1 / -1; justify-self: end; }
/* Crew rules: "Add crew member" after the field, at the card's bottom right (audit #135). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #teamResourcesPanel.nx-on { display: flex !important; flex-direction: column; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #teamResourcesPanel.nx-on > .panel-heading { order: 5; justify-content: flex-end; margin: 0 !important; }
/* Roles table: the seats each column covers, under its name (audit #133). */
html.ui-next[data-theme] body #rolesPermsGrid .roles-seats { display: block; margin-top: 2px; color: var(--nx-muted); font: 400 var(--nx-t-small)/1.3 var(--nx-font); white-space: normal; }
/* WhatsApp messages, not connected: one line and the button, no empty gap (audit #120). */
html.ui-next[data-theme] body #waTplList .nx-wa-first { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
html.ui-next[data-theme] body #waTplList .nx-wa-first .nx-btn { width: auto; padding: 0 28px; }
/* Appearance: the pane's "Theme" and its card start on the same lines as the page list's (audit #91: 5 higher). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #nxSetBody > #nxSetExtra:not(:empty) { margin-top: 5px; }
/* A project's stage, owner and crew gap are statuses, not buttons (improved audit: "Post-Production" looked like a
   tab and did nothing when pressed) — a small pill, not a 44 chip. */
html.ui-next[data-theme] body .nx-ph-chips .nx-status { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; box-sizing: border-box;
  background: var(--nx-soft); color: var(--nx-text); font: 600 var(--nx-t-small)/1 var(--nx-font); cursor: default; white-space: nowrap; }
html.ui-next[data-theme] body .nx-ph-chips .nx-status.is-warm { background: var(--nx-warm-bg); color: var(--nx-warm-fg); }
/* The icons float with no box behind them (coordinator + audit #18/#20: the page-colour patch covered prices and pills
   as a pane scrolled under it). Setup's opened setting has its own full-width sticky band. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body > .nx-tools::before { display: none !important; }
/* Setup page lists: the picked row fills the card edge to edge (audit #85: the card's own 4px showed as a ring). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetRows .nx-box.nx-lines { padding: 0 !important; overflow: hidden; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #nxSetRows .nx-box.nx-lines > .nx-line { padding-left: 16px !important; padding-right: 16px !important; margin: 0 !important; }
/* Follow-up messages: a switched-off message's switch still shows its track, and its blanks stay readable (audit #21). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #fuEditor .fu-step-on input[data-fu-on]:not(:checked) { background: color-mix(in srgb, var(--nx-muted) 55%, transparent) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #fuEditor .fu-blank:disabled { color: var(--nx-text) !important; opacity: .75 !important; }
/* Tax and travel: each label's note is one short line under it, no brackets (audit #129). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #chargesPanel :is(.cal-row, .ch-travel) > span > .muted.small:not([hidden]),
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #chargesPanel > div > .muted.small:not([hidden]) { display: block !important; margin-top: 2px; }
/* Search open: the round search button itself stays 44 at its spot; the typing box opens to its left behind it (audit
   #93: the measured button moved to 1056 as it grew). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body > .nx-tools .search-shell:focus-within { position: relative !important; right: auto !important; top: auto !important; width: 44px !important; overflow: visible !important; box-shadow: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body > .nx-tools:has(.search-shell:focus-within) { padding-left: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body > .nx-tools .search-shell:focus-within > .material-symbols-outlined { position: relative !important; top: 0 !important; left: 0 !important; z-index: 2; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body > .nx-tools .search-shell:focus-within > input { position: absolute !important; top: 0; right: 0; z-index: 1; width: 260px !important; height: 44px !important; box-sizing: border-box;
  padding: 0 48px 0 18px !important; border-radius: 22px !important; background: var(--nx-card) !important; box-shadow: 0 6px 24px rgba(0,0,0,.12) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body #globalSearchResults .gs-empty { font-size: var(--nx-t-body) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c) body .nx-datechip > b { font-size: var(--nx-t-h2) !important; }
/* Team: a person picked in the list opens on their own — just their block, under their name (audit #83). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-setup.nx-person-open #teamPanel > :not(.table-wrap) { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-setup.nx-person-open #teamPanel tr:not(.nx-person-on) { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-setup.nx-person-open #teamPanel tr.nx-person-on { border-top: 0 !important; padding-top: 0 !important; }
/* Follow-ups: a switched-off message's blanks read at full contrast (audit #21: 3.3:1). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #fuEditor .fu-blank:disabled { color: var(--nx-text) !important; opacity: 1 !important; }

/* ═══ WAVE 5 · two-reviewer re-check fixes (2026-11-29, the 43 "unsure") ═══════════════════════════════════════════ */
/* Setup: the opened setting's title row stays put and its cards scroll in their own area that starts under it, below
   the search / bell / + — no page-colour band behind the icons; the top edge fades so nothing reads as chopped. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #page-setup #nxSetPane { height: 100vh !important; min-height: 0 !important; overflow: hidden !important; padding-bottom: 0 !important; gap: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #nxSetPane > .nx-set-head { position: relative !important; top: auto !important; flex: 0 0 auto; background: none !important; margin-bottom: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #nxSetPane > #nxSetBody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
  display: flex; flex-direction: column; gap: var(--nx-gap-section); margin: 0 -20px; padding: 14px 20px 28px; box-sizing: border-box;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px); mask-image: linear-gradient(to bottom, transparent 0, #000 14px); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #nxSetPane > #nxSetBody > * { flex-shrink: 0 !important; }
/* "Re-run setup with Gia": the field rhythm under it (20, like field to next label), on the fields' left edge. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #nxSetPane #rerunSetupItem { margin: 0 0 6px !important; }
/* Your logos: the two marks sit in a soft panel with room on every side (audit: thumbnails touched the frame). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #page-setup #companyCard .logo-row { padding: 16px !important; border-radius: 16px !important; background: var(--nx-soft); box-sizing: border-box; gap: 16px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #page-setup #companyCard .logo-row.nx-set-flash { box-shadow: 0 0 0 2px var(--nx-accent) !important; border-radius: 16px !important; }
/* Tax and travel: the choice boxes show their whole option ("Inclusive of GST", "Travel & stay"). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #chargesPanel .cal-row:has(> select) { grid-template-columns: minmax(0, 1fr) 192px !important; gap: 12px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #chargesPanel .cal-row > select { width: 100% !important; min-width: 0 !important; }
/* Payment plan: each installment's numbers come first, right under Share / Anchor / Days, its name under them. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #nxSetPane .lib-plan-row > .lib-plan-label { order: 2; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #nxSetPane .lib-plan-headrow { margin-bottom: 6px !important; padding-bottom: 0 !important; border-bottom: 0 !important; }
/* Bring in your data: the three kinds stacked full width, a real button for the file, nothing cut. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-kinds { display: flex !important; flex-direction: column !important; gap: 8px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-kind { width: auto !important; min-height: 0 !important; padding: 12px 16px !important; display: flex !important; flex-direction: column; gap: 2px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-kind input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-kind-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-file { position: relative; cursor: pointer; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-file > #impFile { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; overflow: hidden; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-file-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-file-btn { flex: 0 0 auto; width: auto !important; height: 44px; padding: 0 20px !important; border-radius: 22px; background: var(--nx-soft) !important; color: var(--nx-text) !important;
  display: inline-flex; align-items: center; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-file:focus-within .imp-file-btn { box-shadow: inset 0 0 0 2px var(--nx-accent); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nx-muted) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel [data-imp-read] { margin: 0 !important; align-self: flex-start; }
/* Follow-up messages: a [blank] in the message reads as a chip, not code (a copy behind the clear box marks it). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #fuEditor .fu-hl-wrap { position: relative; border-radius: 14px; background: var(--nx-soft); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #fuEditor .fu-hl-wrap > textarea { position: relative; z-index: 1; display: block; width: 100% !important; background: transparent !important; scrollbar-width: none; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #fuEditor .fu-hl { position: absolute; inset: 0; overflow: hidden; box-sizing: border-box; padding: 12px 14px; margin: 0;
  font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; white-space: pre-wrap; overflow-wrap: break-word; color: transparent !important; pointer-events: none; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #fuEditor .fu-hl .fu-chip { color: transparent !important; background: color-mix(in srgb, var(--nx-accent) 55%, transparent); border-radius: 6px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--nx-accent) 55%, transparent); font: inherit !important; }
html.ui-next[data-theme="dark"]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #fuEditor .fu-hl .fu-chip { background: color-mix(in srgb, var(--nx-accent) 26%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--nx-accent) 26%, transparent); }

/* Chat: the thread scrolls up to its first message under a soft top edge (nothing reads as cut under the name). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #page-conversations #inboxThread > #inboxMessages { padding-top: 16px !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px); mask-image: linear-gradient(to bottom, transparent 0, #000 16px); }
/* Home: "waiting N days" keeps its place at the right end of the line; the description is what shortens. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #todayQueue .today-sub > .today-age { margin-left: auto !important; padding-left: 14px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #todayQueue .today-sub > .today-sep:has(+ .today-age) { display: none !important; }
/* Quote builder: room under the last line of the price column. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #page-quotes .qbx-actions { padding-bottom: 28px !important; }
/* Dark pop-ups: the page behind goes darker and soft, so the card stands clear. */
html.ui-next[data-theme="dark"]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body :is(.nx-pop-veil, .sg-dialog-veil, .px-modal-ov, .cal-modal-veil, .lib-modal-overlay, .dup-modal-veil, body > .modal .modal-overlay, .tpl-modal .tpl-modal-backdrop):not([hidden]) {
  background: rgba(0, 0, 0, .78) !important; -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important; }
/* Pop-up fields: the focus ring is drawn inside the box, so a focused field is as wide as the rest (New task: Lead). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body :is(.tpl-modal, .lib-modal-overlay, .nx-pop-veil, .dup-modal-veil, .sg-dialog-veil, .px-modal-ov, .cal-modal-veil, body > .modal) :is(input, select, textarea):focus { outline: none !important; box-shadow: inset 0 0 0 2px var(--nx-accent) !important; }
/* New lead: one rhythm — 7 from a label to its field, 16 between fields, Contact included. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #newDealForm .modal-section-header { margin: 0 0 7px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #newDealForm .seg-toggle { margin: 0 0 16px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #newDealForm > p.muted { margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #newDealForm > .modal-actions { margin-top: 12px !important; }
/* Profile menu: every row exactly 44. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #profileMenuPop .profile-menu-item { height: 44px !important; min-height: 44px !important; box-sizing: border-box !important; padding-top: 0 !important; padding-bottom: 0 !important; }
/* Booking value: ₹ and the number sit 14 in, like every field. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #dealDetailPanel label.dlp-amount { padding: 0 14px !important; gap: 8px !important; }
/* Chat: Call with a number is a lime pill with its word (it was squeezed into a 44 circle); the paused-Gia line reads
   from the left, its button under it. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #inboxThread .inbox-thread-actions #inboxCallBtn:not([hidden]) { width: auto !important; padding: 0 16px !important; gap: 6px !important; border-radius: 22px !important;
  font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #inboxGiaBanner { flex-wrap: wrap !important; justify-content: flex-start !important; row-gap: 12px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #inboxGiaBanner > span { flex: 1 1 calc(100% - 18px) !important; min-width: 0; margin: 0 !important; text-align: left !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #inboxGiaBanner > .inbox-banner-act { margin-left: 18px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #page-setup #companyCard .logo-row .button { background: var(--nx-card) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel .imp-kind-title { font-weight: 600 !important; color: var(--nx-text) !important; }

/* Chat: the messages' scroll area has its own top edge — a hairline under the name and Call, then a soft fade — so a
   message scrolled up reads as scrolled, not as cut under the header (audit 20261129-0529). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #page-conversations #inboxThread > #inboxMessages { border-top: 1px solid var(--nx-line) !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 1px, transparent 1px, #000 20px); mask-image: linear-gradient(to bottom, #000 0 1px, transparent 1px, #000 20px); }
/* Home: a Needs-you row with two buttons keeps every button on its one line — the words are what shorten. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #todayQueue .today-item { grid-template-columns: 44px minmax(0, 1fr) !important; grid-auto-flow: column !important; grid-auto-columns: auto !important; }

/* ═══ OWNER ANSWERS (2026-11-29) ═══════════════════════════════════════════════════════════════════════════════ */
/* 1 · No number: every Call button without a number is the same greyed button — soft fill, quiet words, the Call pill's
   size and type (the lead / project page's was a faded lime; the chat's used small print). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f#nx-g) body :is(.nx-btn[title="No number"], #inboxThread .inbox-thread-actions #inboxCallBtn):disabled {
  background: var(--nx-soft) !important; color: var(--nx-muted) !important; opacity: 1 !important; cursor: default; box-shadow: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f#nx-g) body #inboxThread .inbox-thread-actions #inboxCallBtn:disabled {
  padding: 0 16px !important; font: 600 var(--nx-t-body)/1 var(--nx-font) !important; white-space: nowrap; }
/* 2 · Roles: a column per job, a tick or a dash — it scrolls sideways when the pane is narrower than the table, the
   permission names staying put on the left. (Boosted: the old look's roles rules hide column 2 and right-align 3–4.) */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #rolesPermsGrid .nx-jobs-wrap { overflow-x: auto; margin: 14px -20px 0; padding: 0 20px; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #rolesPermsGrid .nx-jobs-wrap.is-end { -webkit-mask-image: none; mask-image: none; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #rolesPermsGrid .nx-jobs { border-collapse: separate !important; border-spacing: 0; width: 100%; min-width: 640px; margin-right: 16px; font: 400 var(--nx-t-body)/1.3 var(--nx-font); color: var(--nx-text); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #rolesPermsGrid .nx-jobs :is(th, td) { display: table-cell !important; padding: 0 6px !important; height: 44px; border: 0 !important; border-bottom: 1px solid var(--nx-line) !important;
  text-align: center !important; vertical-align: middle; width: 76px; background: transparent !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #rolesPermsGrid .nx-jobs thead th { font: 600 var(--nx-t-small)/1.3 var(--nx-font); color: var(--nx-muted); height: auto; padding-bottom: 10px !important; vertical-align: bottom; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #rolesPermsGrid .nx-jobs :is(tbody th, thead th:first-child) { position: sticky; left: 0; z-index: 1; background: var(--nx-card) !important; text-align: left !important;
  padding-left: 0 !important; font-weight: 400; width: auto; min-width: 168px; color: var(--nx-text); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #rolesPermsGrid .nx-jobs tr.nx-jobs-group :is(th, td) { padding: 20px 0 6px !important; height: auto; font: 600 var(--nx-t-small)/1.3 var(--nx-font); color: var(--nx-muted); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #rolesPermsGrid .nx-jobs td { color: var(--nx-muted); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #rolesPermsGrid .nx-jobs td.is-yes { color: var(--nx-text); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #rolesPermsGrid .nx-jobs tr:last-child :is(th, td) { border-bottom: 0 !important; }
html.ui-next[data-theme] body #rolesPermsGrid .nx-jobs td.is-yes svg { display: inline-block; vertical-align: middle; }
html.ui-next[data-theme] body #rolesPermsGrid .nx-jobs-note { margin: 14px 0 0; font: 400 var(--nx-t-small)/1.4 var(--nx-font); }
html.ui-next[data-theme] body #rolesPermsGrid .nx-roles-edit { margin-top: 20px; }
html.ui-next[data-theme] body #rolesPermsGrid .nx-roles-edit > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font: 600 var(--nx-t-body)/1.2 var(--nx-font); color: var(--nx-text); }
/* 5 · 6 · Under the lead's quote card: their budget against the card, and how often they opened the quote. One line
   each — the trailing part ("· ₹40k over", "· last 3h ago") is what gives way when the line is short of room. */
html.ui-next[data-theme] body .nx-qfacts { display: flex; flex-direction: column; background: var(--nx-card); border-radius: 22px; padding: 0 18px; }
html.ui-next[data-theme] body .nx-qfact { display: flex; align-items: center; gap: 10px; min-height: 52px; min-width: 0; font: 400 var(--nx-t-body)/1.3 var(--nx-font); color: var(--nx-text); white-space: nowrap; }
html.ui-next[data-theme] body .nx-qfact + .nx-qfact { border-top: 1px solid var(--nx-line); }
html.ui-next[data-theme] body .nx-qfact > svg { flex: none; color: var(--nx-muted); }
html.ui-next[data-theme] body .nx-qfact-main { flex: none; font-weight: 600; }
html.ui-next[data-theme] body .nx-qfact-tail { flex: 0 1 auto; margin-left: -5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--nx-muted); }
html.ui-next[data-theme] body .nx-qfact-tail.is-over { color: var(--nx-warm-fg, #8a4b00); }
/* Chat list (owner 2026-11-29, option A): All · Unread · Taken over · App ▾ on ONE row — the App pill is the Leads list's
   Stage dropdown (its menu, its "hang from the pill" placement), drawn as a chip; picking an app turns it on. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-conversations .nx-col-body > .nx-chips.nx-chatf-row { flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; }
html.ui-next[data-theme] body #page-conversations .nx-chatf-row > * { flex: none; }
html.ui-next[data-theme] body #page-conversations #nxChatApp { position: relative; display: flex; }
html.ui-next[data-theme] body #page-conversations #nxChatAppBtn { gap: 6px; }
html.ui-next[data-theme] body #page-conversations #nxChatAppPop { z-index: 300; min-width: 200px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-conversations .nx-col-body > .nx-chips.nx-chatf-row { gap: 6px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-conversations .nx-chatf-row .nx-chip { padding: 0 10px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d) body #page-conversations .nx-chatf-row #nxChatAppBtn { gap: 4px !important; }
/* The open App menu sits above the chat beside the list (the list column is its own layer). */
html.ui-next[data-theme] body #page-conversations :is(#nxChatCol, .nx-col-body):has(#nxChatAppPop:not([hidden])) { position: relative; z-index: 400 !important; }
/* PILL ROWS ARE THEIR OWN SECTION (owner 2026-11-29; the app's GreenKit pillRow, web ⇄ app parity). Pills in a row sit
   10 apart. A row keeps the page's 28 from what is above it; a FILTER row sits 18 over the list it filters, so it reads
   as that list's header. Nothing comes closer than 16 to a pill row. The columns are flex stacks 28 apart, so the list
   under a filter row gives back the difference. Stays last: these are state rules over the ones above. */
html.ui-next[data-theme] { --nx-pill-gap: 10px; --nx-under-filters: 18px; --nx-section-gap: 28px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body :is(.nx-chips, .sales-subnav, #page-leads .page-heading .page-actions) { column-gap: var(--nx-pill-gap) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body :is(.nx-col-body, .nx-col) > .nx-chips + :is(.nx-list, .nx-ct-list),
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #page-leads > #crmLeadsList { margin-top: calc(var(--nx-under-filters) - var(--nx-section-gap)) !important; }
/* Stage · Month · Type · Sort runs past the 400 column once the sort reads "Newest added": as the app's ChipRow, the
   last pill fades at the edge instead of being cut, and scrolls fully clear of the fade. */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e) body #page-leads .page-heading .page-actions { padding-right: 28px !important;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }

/* The project summary card opens what it shows (owner 2026-11-29). */
html.ui-next .nx-hero.is-tap { cursor: pointer; }
html.ui-next .nx-hero.is-tap:focus-visible { outline: 2px solid var(--mid-accent, #d9ff5e); outline-offset: 3px; }
html.ui-next body:not(.leads-active) #nxFollowUpAll { display: none !important; }
html.ui-next[data-theme] body .nx-tools #nxFollowUpAll.perm-off { display: none !important; }

/* NEEDS YOU, TWO LINES (owner 2026-11-29): a plain card is one click to its page — its Open button is the row
   itself; Done and Later appear when you point at a card (always shown on touch screens); repeats fold. */
html.ui-next[data-theme] body :is(#todayQueue .today-item.is-tap .today-do, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
html.ui-next[data-theme] body :is(#todayQueue .today-item.is-folded:not(.is-unfolded), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
html.ui-next #todayQueue :is(.today-item.is-tap, .today-fold) { cursor: pointer; }
html.ui-next #todayQueue :is(.today-item.is-tap, .today-fold):focus-visible { outline: 2px solid var(--mid-accent, #d9ff5e); outline-offset: -2px; }
html.ui-next #todayQueue .today-chev { color: var(--mid-muted, #a6a6a6); font-size: 20px; }
@media (hover: hover) {
  html.ui-next #todayQueue .today-item:not(:hover):not(:focus-within) :is(.today-done, .today-dismiss) { opacity: 0; }
}
html.ui-next[data-theme] body :is(#todayQueue .today-fold[aria-expanded="true"] .today-sub, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }

/* HOME, WIDE (owner 2026-11-29): Needs you as three columns on Home; the full Needs you page and narrow screens keep
   the one list. Get Gia live is one line: ring · title · a button per step left · Later. */
html.ui-next[data-theme] body :is(#todayQueue .today-cols, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
@media (min-width: 900px) {
  html.ui-next[data-theme] body :is(#page-dashboard:not(.nx-today) #todayQueue .today-cols, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 8px; }
  html.ui-next[data-theme] body :is(#page-dashboard:not(.nx-today) #todayQueue :is(.today-list, .today-groups), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
}
html.ui-next #todayQueue .today-col { min-width: 0; display: flex; flex-direction: column; }
html.ui-next #todayQueue .today-col-h { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mid-muted, #a6a6a6); }
html.ui-next #todayQueue .today-col-h b { font-weight: 600; margin-left: 4px; }
html.ui-next #todayQueue .today-col-row { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; padding: 12px 0; min-height: 44px; cursor: pointer; border-top: 1px solid var(--mid-line, #3a3a3a); }
html.ui-next #todayQueue .today-col-h + .today-col-row { border-top: 0; }
html.ui-next #todayQueue .today-col-row:hover .today-col-t { text-decoration: underline; text-underline-offset: 3px; }
html.ui-next #todayQueue .today-col-row:focus-visible { outline: 2px solid var(--mid-accent, #d9ff5e); outline-offset: 2px; border-radius: 8px; }
html.ui-next #todayQueue .today-col-t { color: var(--mid-text, #ededed); font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ui-next #todayQueue .today-col-s { color: var(--mid-muted, #a6a6a6); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ui-next #todayQueue .today-col-none { color: var(--mid-muted, #a6a6a6); font-size: 13px; margin: 8px 0 0; }
html.ui-next #todayQueue .today-col-all { margin-top: 8px; padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--mid-text, #ededed); text-decoration: none; }
html.ui-next #todayQueue .today-col-all:hover { text-decoration: underline; }

html.ui-next[data-theme] body :is(#setupBanner:not([hidden]), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex !important; flex-direction: row !important; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 18px !important; border-radius: 22px; background: var(--mid-surface, #242424) !important; border: 0 !important; box-shadow: none !important; }
html.ui-next #setupBanner .sb-head { display: contents; }
html.ui-next #setupBanner #sbTitle { order: 0; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--mid-text, #ededed); margin-right: auto; }
html.ui-next #setupBanner .sb-ring { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--mid-accent, #d9ff5e) var(--p), var(--mid-surface-3, #383838) 0); }
html.ui-next #setupBanner .sb-ring > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mid-surface, #242424); font-size: 11px; font-weight: 700; color: var(--mid-text, #ededed); font-variant-numeric: tabular-nums; }
html.ui-next #setupBanner .sb-steps { order: 1; display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
html.ui-next #setupBanner .sb-step-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--mid-accent, #d9ff5e); color: var(--mid-on-accent, #1a2000); font-size: 13px; font-weight: 600; text-decoration: none; }
html.ui-next #setupBanner .sb-later { all: unset; order: 2; cursor: pointer; padding: 8px 6px; font-size: 13px; color: var(--mid-muted, #a6a6a6); }
html.ui-next #setupBanner .sb-later:hover { color: var(--mid-text, #ededed); }
html.ui-next #setupBanner .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.ui-next #nxHome #setupBanner { margin-top: 22px; }
html.ui-next[data-theme] body :is(#page-dashboard.nx-today #setupBanner, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
/* SECTION TITLES SIT ABOVE THEIR CARD (owner 2026-11-29): on Home, "Needs you" + See all are outside; the card is
   the list itself. */
html.ui-next[data-theme] body :is(#page-dashboard:not(.nx-today) #todayQueue, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme] body :is(#page-dashboard:not(.nx-today) #todayQueue .today-head, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 0 10px !important; padding: 0 4px !important; }
html.ui-next[data-theme] body :is(#page-dashboard:not(.nx-today) #todayQueue .today-pane[data-today-pane="you"], #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: var(--mid-surface, #242424) !important; border-radius: 22px; padding: 20px 24px !important; }
/* EVERY LIST ROW (owner 2026-11-29): the headline one line, the subject up to two — same rule as the apps. */
html.ui-next[data-theme] body .nx-row-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body .nx-row-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.ui-next[data-theme] body :is(#todayQueue .today-title, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body :is(#todayQueue .today-sub .today-desc, #todayQueue .today-col-s, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { white-space: normal !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* No Service page (owner 2026-11-29): couple asks are Needs you cards. */
html.ui-next [data-page="service"]:is(.nx-item, .nav-item) { display: none !important; }

/* SECTION TITLES SIT ABOVE THEIR CARD — the shared rule (owner 2026-11-29). nxTitleOut() (app.js) splits a card that
   carried its own heading: the old card turns transparent, each title sits on the page 10 above its card, the content
   after it is the card, and a second titled card sits a section (28) below the first. Used by the lead's Booking and
   Activity sections, the project's Activity, Setup's Quote design / Cancellation and terms / Your data, City insights. */
html.ui-next[data-theme] body :is(.nx-titled, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { gap: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html.ui-next[data-theme] body :is(.nx-titled > .nx-card-h, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 0 10px !important; padding: 0 4px !important; border: 0 !important; background: none !important; }
html.ui-next[data-theme] body :is(.nx-titled > :is(h2, h3, .dl-label).nx-card-h, .nx-titled > .nx-card-h .dl-label, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; text-transform: none !important; }
html.ui-next[data-theme] body :is(.nx-titled > .nx-card-h .dl-label, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 !important; }
html.ui-next[data-theme] body :is(.nx-titled > :is(.nx-card-body, .nx-titled) ~ :is(.nx-card-h, .nx-titled), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin-top: var(--nx-gap-section) !important; }
html.ui-next[data-theme] body :is(.nx-titled > .nx-titled, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin-bottom: 0 !important; }
html.ui-next[data-theme] body :is(.nx-titled > :is(.nx-card-body, .nx-titled) + .nx-card-body, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin-top: var(--nx-gap-card) !important; }
html.ui-next[data-theme] body :is(.nx-titled > hr, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
html.ui-next[data-theme] body .nx-card-body { box-sizing: border-box; min-width: 0; padding: 16px; border-radius: var(--nx-r-card); background: var(--nx-card); color: var(--nx-text); }
html.ui-next[data-theme] body :is(.nx-card-body > :first-child, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin-top: 0 !important; }
html.ui-next[data-theme] body :is(.nx-card-body > :last-child, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin-bottom: 0 !important; }
html.ui-next[data-theme] body #nxSetPane .nx-card-body { padding: 20px; }
/* City insights: the four blocks keep their two columns, each card as tall as its neighbour. */
html.ui-next[data-theme] body #page-insights .ci-card.nx-titled > .nx-card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--nx-gap-card); }
/* Home, Quotes and calls: the title + count above, the list is the card (as Needs you). */
html.ui-next[data-theme] body :is(#todoCard, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { gap: 0 !important; padding: 0 !important; background: transparent !important; }
html.ui-next[data-theme] body :is(#todoCard .sg-card-head, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 0 10px !important; padding: 0 4px !important; }
html.ui-next[data-theme] body :is(#todoCard .sg-list, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding: 4px 20px !important; border-radius: var(--nx-r-card); background: var(--nx-card) !important; }
html.ui-next[data-theme] body :is(#todoCard .sg-list:has(+ .sg-seeall), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { border-radius: var(--nx-r-card) var(--nx-r-card) 0 0; }
html.ui-next[data-theme] body :is(#todoCard .sg-seeall, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 !important; min-height: 44px; border-radius: 0 0 var(--nx-r-card) var(--nx-r-card) !important; background: var(--nx-card) !important; border: 0 !important; border-top: 1px solid var(--nx-line) !important; }
/* A project's opened shoot: "What actually happened" and "Team" are their own sections — the title on the page, the
   fields or the crew rows the card under it (as the iPhone). The shoot's own fields stay one card under its head. */
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: transparent !important; overflow: visible !important; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open > .proj-evt-head, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: var(--nx-card); border-radius: var(--nx-r-card) var(--nx-r-card) 0 0; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open > .proj-evt-body, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding: 0 !important; gap: 0 !important; background: transparent !important; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open > .proj-evt-body > *, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 !important; padding: 12px 16px 0 !important; background: var(--nx-card); }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open > .proj-evt-body > :first-child, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding-top: 4px !important; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open > .proj-evt-body > :has(+ :is(.proj-evt-actual, .proj-evt-resources)), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding-bottom: 16px !important; border-radius: 0 0 var(--nx-r-card) var(--nx-r-card); }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open > .proj-evt-body > .proj-evt-actual + *, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin-top: var(--nx-gap-card) !important; padding-top: 16px !important; border-radius: var(--nx-r-card) var(--nx-r-card) 0 0; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open > .proj-evt-body > :is(.proj-evt-actual, .proj-evt-resources), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin-top: var(--nx-gap-section) !important; padding: 0 !important; border: 0 !important; background: transparent; display: flex; flex-direction: column; gap: 0; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open > .proj-evt-body > .proj-plan-l4, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding: var(--nx-gap-card) 0 0 !important; background: transparent; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open :is(.proj-evt-actual-head, .proj-team-head), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 0 10px !important; padding: 0 4px !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open :is(.proj-evt-actual-head > span:first-child, .proj-team-head > span:first-child), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { font: 600 var(--nx-t-h2)/1.2 var(--nx-head) !important; color: var(--nx-text) !important; letter-spacing: 0 !important; text-transform: none !important; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open .proj-evt-actual > :not(.proj-evt-actual-head), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 !important; padding: 12px 16px 0; background: var(--nx-card); }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open .proj-evt-actual-head + *, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding-top: 16px; border-radius: var(--nx-r-card) var(--nx-r-card) 0 0; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open .proj-evt-actual > :not(.proj-evt-actual-head):last-child, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding-bottom: 16px; border-bottom-left-radius: var(--nx-r-card); border-bottom-right-radius: var(--nx-r-card); }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open .proj-recommend-bar, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 !important; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open .proj-recommend-bar:not(:has(.proj-rec-note:not(:empty))), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open .proj-res-nodate, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 0 10px !important; padding: 0 4px; }
html.ui-next[data-theme] body :is(#projectDetailPanel .proj-evt-card.is-open .proj-res-table, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding: 4px 16px !important; border-radius: var(--nx-r-card); background: var(--nx-card) !important; }

/* LISTS ARE ONE CARD WITH THIN LINES BETWEEN ROWS (owner 2026-11-29, chosen over a card per row). Every .nx-list of
   rows — Sales leads, Projects, Chat, crew messages, Calendar's day, Home's Coming up — is one rounded card; rows sit
   inside it with no gap, a hairline between them, the selected row a lighter fill (as the .nx-line lists). */
html.ui-next[data-theme] body :is(.nx-list:has(> .nx-row), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { gap: 0 !important; border-radius: var(--nx-r-card); background: var(--nx-card); overflow: hidden; }
html.ui-next[data-theme] body :is(.nx-list > .nx-row, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { min-height: 44px; margin: 0 !important; border-radius: 0 !important; background: transparent; box-shadow: none !important; }
html.ui-next[data-theme] body :is(.nx-list > .nx-row ~ :is(.nx-row, .nx-more), #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme] body :is(.nx-list > .nx-row:hover, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: color-mix(in srgb, var(--nx-soft) 55%, var(--nx-card)); }
html.ui-next[data-theme] body :is(.nx-list > .nx-row.is-open, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: var(--nx-soft); box-shadow: inset 3px 0 0 var(--nx-accent) !important; }   /* the open row: lighter fill + a lime edge on the left (a full ring looked boxy inside one card) */
html.ui-next[data-theme] body :is(.nx-list > .nx-row:focus-visible, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { outline-offset: -2px; }
html.ui-next[data-theme] body :is(.nx-list > .nx-more, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 !important; height: 48px; border-radius: 0 !important; background: transparent !important; }
/* LEAD HEADER (owner 2026-11-29): name, then ONE line — number · source and the small Stage / Assigned pills — 8 below
   the name. Delete lead is a small red pill on the Client page title's line. */
html.ui-next[data-theme] #dealDetailContent .nx-ph-text { gap: 8px; }
html.ui-next[data-theme] #dealDetailContent .nx-ph-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
html.ui-next[data-theme] #dealDetailContent .nx-ph-sub :is(.nx-stage-chip, .nx-owner-chip) { height: 32px; border-radius: 16px; }
html.ui-next[data-theme] body #dealDetailContent :is(.nx-ph-sub .nx-stage-chip select, .nx-ph-sub .nx-owner-chip select, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { height: 32px !important; min-height: 32px !important; font-size: 13px !important; border-radius: 16px !important; }
html.ui-next[data-theme] body #dealDetailContent :is(.nx-ph-sub .nx-stage-chip select, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding: 0 28px 0 26px !important; }
html.ui-next[data-theme] body #dealDetailContent :is(.nx-ph-sub .nx-owner-chip select, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding: 0 28px 0 12px !important; }
html.ui-next[data-theme] #dealDetailContent .nx-ph-sub .nx-stage-chip .nx-dot { left: 11px; }
html.ui-next[data-theme] #dealDetailContent .nx-ph-sub .nx-owner-chip > .dlp-assign-slot { height: 32px; padding: 0 12px; font-size: 13px; }
html.ui-next[data-theme] #dealDetailContent .nx-ph-sub .nx-chip { height: 32px; font-size: 13px; padding: 0 12px; }
html.ui-next[data-theme] #dealDetailContent .nx-ph-chips:empty { display: none; }
html.ui-next[data-theme] body :is(#dealDetailContent .nx-h-flex, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #dealDetailContent .nx-del.nx-del-pill { all: unset; box-sizing: border-box !important; cursor: pointer !important; display: inline-flex !important; align-items: center !important; gap: 6px !important; width: auto !important; min-height: 0 !important; height: 32px !important; padding: 0 12px !important; border-radius: 16px !important; background: rgba(255, 107, 107, .14) !important; color: #ff8a80 !important; font: 600 13px/1 var(--nx-font) !important; flex: 0 0 auto !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #dealDetailContent .nx-del.nx-del-pill :is(.material-symbols-outlined, svg) { font-size: 16px; width: 16px; height: 16px; background: none; padding: 0; margin: 0; box-shadow: none; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #dealDetailContent .nx-del.nx-del-pill:hover { background: rgba(255, 107, 107, .22); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #dealDetailContent .nx-del.nx-del-pill:focus-visible { outline: 2px solid var(--mid-accent, #d9ff5e); outline-offset: 2px; }

/* A delete button with words ("Delete event", "Delete payment", "Remove", "Decline") is a small red pill — the same
   look as "Delete lead" (owner 2026-11-29). Icon-only ones (an svg or ×) stay circles (styles.css "DONE + DELETE"). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body .proj-plan-delbtn:not(:has(> svg)):not(.proj-deliv-step-del) { all: unset; box-sizing: border-box !important; cursor: pointer !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; width: auto !important; min-height: 0 !important; height: 32px !important; padding: 0 12px !important; border-radius: 16px !important; background: rgba(255, 107, 107, .14) !important; color: #ff8a80 !important; font: 600 13px/1 var(--nx-font) !important; white-space: nowrap !important; flex: 0 0 auto !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body .proj-plan-delbtn:not(:has(> svg)):not(.proj-deliv-step-del):hover { background: rgba(255, 107, 107, .22) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body .proj-plan-delbtn:not(:has(> svg)):not(.proj-deliv-step-del):focus-visible { outline: 2px solid var(--mid-accent, #d9ff5e) !important; outline-offset: 2px !important; }

/* WHAT GIA KNOWS (owner 2026-11-29: "verbose old style") — the same page as the app: a short line, Saved as one list
   with the character count on its title line, Add as its own section (Title as a row, the facts in an area), then
   Add + Upload a file as a pair. Section titles 10 above their cards, sections 28 apart. */
html.ui-next[data-theme] body :is(#knowledgePanel.nx-on, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; display: flex !important; flex-direction: column; gap: 28px; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-sub, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 !important; font-size: 15px; color: var(--mid-muted, #a6a6a6) !important; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-sec, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex !important; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 !important; background: none !important; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-sec-h, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-sec-h .nx-h2, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: block !important; margin: 0 !important; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-list .kb-row, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; margin: 0; background: none !important; border: 0; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-list .kb-row + .kb-row, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-list .kb-ic, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-list .kb-body, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-list .kb-body strong, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-list .kb-body small, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { color: var(--mid-muted, #a6a6a6) !important; font-size: 14px; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-list .kb-del, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; color: #ff8a80; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-list .kb-del:hover, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: rgba(255, 107, 107, .14); }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-list .kb-empty, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0; min-height: 48px; display: flex; align-items: center; color: var(--mid-muted, #a6a6a6) !important; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-add-card, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding: 4px 16px 16px; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-row-field, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; min-height: 52px; margin: 0 0 12px !important; border-bottom: 1px solid var(--nx-line); }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-row-field > span, #knowledgePanel .kb-textlabel > span, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { font-weight: 600 !important; color: var(--nx-text) !important; font-size: 15px; white-space: nowrap; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #knowledgePanel .kb-row-field > input { flex: 1; min-width: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; height: 44px; text-align: right; color: var(--nx-text) !important; font: inherit; font-size: 15px; outline: none; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-textlabel, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex !important; flex-direction: column; gap: 6px; margin: 0 !important; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-textlabel > textarea, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { min-height: 112px; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-actions, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 0 !important; }
html.ui-next[data-theme] body :is(#knowledgePanel .kb-actions > .button, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { width: 100% !important; height: 48px !important; min-height: 48px !important; border-radius: 24px !important; justify-content: center; display: inline-flex !important; align-items: center; gap: 6px; }
html.ui-next[data-theme] body :is(#knowledgePanel #kbHint, #knowledgePanel #kbRetrievalNote, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 !important; color: var(--mid-muted, #a6a6a6) !important; }

/* WORK SAMPLES (owner 2026-11-29: "old UI and verbose") — the same page as the app: one short line, the samples as one
   list (name, then what Gia says, a switch), one Add button under it, the 14-day rule in small print. Click a sample to
   edit it; its Delete lives in the form. */
html.ui-next[data-theme] body :is(#contentDropsPanel.nx-on, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; display: flex !important; flex-direction: column; gap: 28px; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-old-title, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-sub, #contentDropsPanel .cd-note, #contentDropsPanel .cd-empty, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { margin: 0 !important; color: var(--mid-muted, #a6a6a6) !important; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-sub, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { font-size: 15px; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-empty, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { min-height: 48px; display: flex; align-items: center; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-sec, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex; flex-direction: column; gap: 10px; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-sec[hidden], #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: none !important; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-sec-h, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-sec-h .nx-h2, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: block !important; margin: 0 !important; }
html.ui-next[data-theme] body :is(#contentDropsPanel .content-drop-row, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex !important; align-items: center; gap: 12px; padding: 6px 0 !important; margin: 0 !important; background: none !important; border: 0 !important; }
html.ui-next[data-theme] body :is(#contentDropsPanel .content-drop-row + .content-drop-row, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #contentDropsPanel .cd-open { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; min-width: 0; min-height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 6px 0; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-open strong, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { color: var(--nx-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-open small, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { color: var(--mid-muted, #a6a6a6) !important; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-open:focus-visible, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { outline: 2px solid var(--mid-accent, #d9ff5e); outline-offset: 2px; border-radius: 8px; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-add, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { width: 100% !important; height: 48px !important; min-height: 48px !important; border-radius: 24px !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-form, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { padding: 16px !important; display: grid !important; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-actions, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { display: flex; align-items: center; gap: 10px; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-grow, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { flex: 1; }

/* GIA (owner 2026-11-29: "everything Gia may do is not as per the new UI"; "the name can be a simple text field in
   the same row") — the same page as the app: one short line, then sections, each a title above one card of rows (name
   bold, one short muted line, the switch or the value on the right), small print under the card. */
html.ui-next[data-theme] body :is(#agentPermsPanel.nx-on, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; display: flex !important; flex-direction: column; gap: 28px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-old { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on :is(.gp-sub, .gp-note) { margin: 0 !important; color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-sub { font-size: 15px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-note[hidden] { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-note.fu-warn { color: var(--nx-warm-fg, #ffc176) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-sec { display: flex !important; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 !important; background: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-h .nx-h2 { display: block !important; margin: 0 !important; text-transform: none; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-h > .muted { color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.2 var(--nx-font) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-card { display: flex !important; flex-direction: column; padding: 0 16px !important; margin: 0 !important; background: var(--nx-card) !important; border: 0 !important; border-radius: var(--nx-r-card) !important; gap: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-card:empty { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-row { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 16px !important; min-height: 56px; padding: 8px 0 !important; margin: 0 !important;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; grid-template-columns: none !important; cursor: default; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-row + .gp-row { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-row[hidden] { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-txt { flex: 1 1 auto; min-width: 0; display: flex !important; flex-direction: column; gap: 3px; margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-txt > b { color: var(--nx-text) !important; font: 600 15px/1.3 var(--nx-font) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-txt > small { display: block; color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.35 var(--nx-font) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-row > :is(input:not(.switch), select) { flex: 0 0 auto; width: 200px !important; min-width: 0 !important; height: 40px !important; min-height: 40px !important; margin: 0 !important; box-sizing: border-box;
  padding: 0 12px !important; border: 0 !important; border-radius: 12px !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1 var(--nx-font) !important; text-align: right; box-shadow: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-row > select { width: auto !important; min-width: 150px !important; max-width: 220px; text-align: left; padding-right: 32px !important; cursor: pointer; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-row > input[type="number"] { width: 88px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-row > :is(input, select):focus { outline: none !important; box-shadow: inset 0 0 0 2px var(--nx-accent) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-row > input.switch { flex: 0 0 auto; margin: 0 !important; cursor: pointer; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on :is(.gp-h .nx-h2 > .agent-name, .gp-note > .agent-name) { font: inherit !important; color: inherit !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on :is(.gp-h .nx-h2, .gp-note)::first-letter { text-transform: uppercase; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-row > .nx-unit { flex: 0 0 auto; width: 88px !important; height: 40px !important; padding: 0 12px !important; border-radius: 12px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #agentPermsPanel.nx-on .gp-row > .nx-unit > input { height: 40px !important; text-align: right; }

/* BRING IN YOUR DATA (owner 2026-11-29: "verbose old UI") — the same page as the app: one short line, then sections,
   each a title above one card of rows; Read the sheet + Choose a CSV as an equal pair; small print under the cards. */
html.ui-next[data-theme] body :is(#importPanel.nx-on, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; display: flex !important; flex-direction: column; gap: 28px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .imp-old { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on :is(#impBody, #impHistory) { display: flex !important; flex-direction: column; gap: 28px; margin: 0 !important; padding: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on #impHistory:empty { display: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on :is(.ix-sub, .ix-small) { display: block !important; margin: 0 !important; color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.45 var(--nx-font) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-sub { font-size: 15px !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-small.is-bad { color: #ff8a80 !important; }
html.ui-next[data-theme="light"]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on :is(.ix-small.is-bad, .ix-row.is-bad .ix-txt > *, .ix-undo, .ix-pill.is-bad) { color: #c0362c !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-sec { display: flex !important; flex-direction: column; gap: 10px; margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-h .nx-h2 { display: block !important; margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-card { display: flex !important; flex-direction: column; padding: 0 16px !important; margin: 0 !important; gap: 0 !important; background: var(--nx-card) !important; border: 0 !important; border-radius: var(--nx-r-card) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-row { position: relative; display: flex !important; flex-direction: row !important; align-items: center !important; gap: 16px !important; min-height: 56px; padding: 8px 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-row + .ix-row { border-top: 1px solid var(--nx-line) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-txt { flex: 1 1 auto; min-width: 0; display: flex !important; flex-direction: column; gap: 3px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-txt > b { color: var(--nx-text) !important; font: 600 15px/1.3 var(--nx-font) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-txt > small { display: block; color: var(--nx-muted) !important; font: 400 var(--nx-t-body)/1.35 var(--nx-font) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-row.is-bad .ix-txt > * { color: #ff8a80 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-pick { cursor: pointer; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-pick > input[type="radio"] { position: absolute !important; inset: 0; width: 1px !important; height: 1px !important; opacity: 0; margin: 0 !important; pointer-events: none; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-pick:has(> input:focus-visible) { outline: 2px solid var(--nx-accent); outline-offset: 2px; border-radius: 10px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-tick { flex: 0 0 auto; display: inline-flex; color: var(--nx-text); visibility: hidden; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-pick.is-on .ix-tick { visibility: visible; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-row > :is(input[type="url"], select) { flex: 0 1 260px; width: 260px !important; min-width: 0 !important; height: 40px !important; min-height: 40px !important; margin: 0 !important; box-sizing: border-box;
  padding: 0 12px !important; border: 0 !important; border-radius: 12px !important; background: var(--nx-soft) !important; color: var(--nx-text) !important; font: 400 var(--nx-t-body)/1 var(--nx-font) !important; box-shadow: none !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-row > select { flex-basis: 200px; width: 200px !important; padding-right: 32px !important; cursor: pointer; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-row > :is(input, select):focus { outline: none !important; box-shadow: inset 0 0 0 2px var(--nx-accent) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-pair { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on :is(.ix-pair > .nx-btn, .ix-wide) { width: 100% !important; height: 48px !important; border-radius: 24px !important; margin: 0 !important; position: relative; overflow: hidden; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-csv > #impFile { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; opacity: 0 !important; cursor: pointer; padding: 0 !important; margin: 0 !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-csv:focus-within { box-shadow: inset 0 0 0 2px var(--nx-accent); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .nx-btn.is-main:disabled { background: var(--nx-soft) !important; color: var(--nx-muted) !important; opacity: 1 !important; cursor: default; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-small-btn { flex: 0 0 auto; height: 36px !important; padding: 0 16px !important; border-radius: 18px !important; background: var(--nx-soft) !important; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-pills { display: flex; flex-wrap: wrap; gap: 10px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--nx-soft); color: var(--nx-text); font: 400 var(--nx-t-body)/1 var(--nx-font); white-space: nowrap; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-pill.is-good { background: color-mix(in srgb, var(--nx-accent) 22%, transparent); }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-pill.is-bad { background: rgba(255, 107, 107, .14); color: #ff8a80; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-more > summary { cursor: pointer; color: var(--nx-muted); font: 400 var(--nx-t-body)/1.4 var(--nx-font); margin: 0 0 10px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-undo { all: unset; box-sizing: border-box; flex: 0 0 auto; cursor: pointer; padding: 8px 0; color: #ff8a80; font: 600 var(--nx-t-body)/1 var(--nx-font); white-space: nowrap; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-undo:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; border-radius: 6px; }
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f) body #importPanel.nx-on .ix-muted { flex: 0 0 auto; color: var(--nx-muted); font: 400 var(--nx-t-body)/1 var(--nx-font); }

/* SAVE ONLY WHEN SOMETHING CHANGED (owner 2026-11-29): a pop-up's Save is grey until a value changes (app.js "SAVE
   ONLY WHEN SOMETHING CHANGED" adds .sg-off); then it is its own lime again. */
html.ui-next[data-theme] body :is(.sg-off, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f#nx-g#nx-h):not(.nx-x) { background: var(--nx-soft) !important; color: var(--nx-muted) !important; border-color: transparent !important; box-shadow: none !important; opacity: 1 !important; filter: none !important; cursor: default !important; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-sub, #nx-x#nx-y#nx-z#nx-w):not(.nx-x)::first-letter { text-transform: uppercase; }
html.ui-next[data-theme] body :is(#contentDropsPanel .cd-form label > span > .agent-name, #nx-x#nx-y#nx-z#nx-w):not(.nx-x) { font: inherit !important; color: inherit !important; }
/* A hidden red delete pill stays hidden (the pill rule's display beat [hidden]: a NEW sample showed "Delete this sample"). */
html.ui-next[data-theme]:is(html, #nx-a#nx-b#nx-c#nx-d#nx-e#nx-f#nx-g) body .proj-plan-delbtn[hidden] { display: none !important; }
