/* @ekm-tags: style, ui-shell */
/*
 * Pearl luxe: Home + menus (owner 2026-10-24, from the approved Home concept): "Apple product, modern 2030, luxe finish".
 *   - the top bar and the left menu float as frosted glass sheets over the Pearl ombre; the open section sits on a raised
 *     white thumb; the open menu item is a raised sheet with a champagne glow bar; counts are small ink squares;
 *   - Home's summary tiles are glass sheets with Italiana numbers that count up when they change (js/ekm-pearl-luxe.js);
 *   - "visits can't be billed yet" (the admin unlogged-visits card) is the focus sheet, with an Italiana headline;
 *   - the ⌘K palette is a glass sheet too.
 * The Home greeting, name, date and clock are untouched (owner: "I don't want that changed").
 * Restyle only: no item, order, label or behaviour changes. Pearl and Pearl Night only; reduced motion honoured.
 * Rules: no overflow, even and aligned, no pills (radii stop at 22px; counts are 7px squares).
 */
html[data-theme="pearl"] {
  /* glassier, still readable (owner 2026-10-26: "all the boxes should have a glassier more transparent but still readable
   * appearance"): less fill, more frost behind it (the panes' blur below); tests/pearl-glass-contrast-browser.test.mjs keeps
   * the text AA on the glass over every look's ombre */
  --lux-glass: rgba(255, 255, 255, .26);
  --lux-glass-strong: rgba(255, 255, 255, .5);
  --lux-edge: rgba(255, 255, 255, .85);
  --lux-hair: rgba(31, 26, 23, .07);
  /* the concept's glass: a lit top edge, a bright rim and a deep, soft shadow below */
  --lux-shadow: inset 0 1px 0 rgba(255, 255, 255, .94), inset 0 0 0 1px rgba(255, 255, 255, .8), 0 1px 1px rgba(0, 0, 0, .03), 0 28px 56px -30px rgba(70, 52, 32, .22);
  --lux-raise: 0 1px 2px rgba(31, 26, 23, .06), 0 6px 16px -6px rgba(60, 45, 30, .18);
  --lux-ink: #1F1A17;
  --lux-muted: #5E5650;
  --lux-well: rgba(31, 26, 23, .05);
  --lux-on-ink: #FFFFFF;
  --lux-champagne: #A07A4E;
  --lux-alert: #9A3B2E;
}
html[data-theme="pearl_night"] {
  --lux-glass: rgba(38, 39, 43, .24);
  --lux-glass-strong: rgba(48, 49, 54, .54);
  --lux-edge: rgba(255, 255, 255, .10);
  --lux-hair: rgba(255, 255, 255, .07);
  --lux-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 1px 1px rgba(0, 0, 0, .03), 0 28px 56px -30px rgba(0, 0, 0, .7);
  --lux-raise: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 20px -8px rgba(0, 0, 0, .6);
  --lux-ink: #F5F5F4;
  --lux-muted: #AEB2B9;
  --lux-well: rgba(255, 255, 255, .06);
  --lux-on-ink: #121316;
  --lux-champagne: #E6E7EA;
  --lux-alert: #EBA493;
}

/* ---------- colour movement over the ombre (owner: "more color fluctuation, not one colour background") ----------
 * Painted into the ombre's own layer (body::before, under #main-content) rather than a second fixed layer, so it can
 * never sit over page content. The last gradient in each list is the ombre from ekm-pearl.css, unchanged. */
html[data-theme="pearl"] body::before {
  background:
    radial-gradient(70vw 60vh at 0% 0%, rgba(230, 205, 170, .45), transparent 70%),
    radial-gradient(60vw 55vh at 100% 18%, rgba(210, 214, 226, .5), transparent 70%),
    radial-gradient(80vw 60vh at 30% 100%, rgba(232, 214, 214, .45), transparent 70%),
    linear-gradient(180deg, #E6E1DA 0%, #EFEBE5 30%, #F9F7F4 62%, #FFFFFF 100%);
  background-repeat: no-repeat;
}
html[data-theme="pearl_night"] body::before {
  background:
    radial-gradient(70vw 60vh at 0% 0%, rgba(92, 98, 110, .40), transparent 70%),
    radial-gradient(60vw 55vh at 100% 18%, rgba(150, 160, 180, .14), transparent 70%),
    radial-gradient(80vw 60vh at 30% 100%, rgba(60, 64, 72, .50), transparent 70%),
    linear-gradient(180deg, #2B2C30 0%, #18191C 34%, #0E0F11 68%, #070708 100%);
  background-repeat: no-repeat;
}

/* ---------- top bar: a floating glass sheet ---------- */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #main-content.nav-model-b-layout > .hp-topnav.hp-nav-maison {
  width: auto !important;
  margin: 12px 16px 0 !important;
  border: 1px solid var(--lux-edge);
  border-bottom: 1px solid var(--lux-edge) !important;
  border-radius: 22px;
  background: var(--lux-glass);
  box-shadow: var(--lux-shadow);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .tab-btn {
  border-radius: 12px;
  transition: background-color var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-navpill > .tab-btn.active {
  background: var(--lux-glass-strong);
  box-shadow: var(--lux-raise);
  color: var(--lux-ink);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-navpill > .tab-btn.active::after { display: none; }

/* ---------- top bar layout (owner-approved Home concept, 2026-10-24): EKM on the left, the sections as one
 * segmented row of words spread evenly, utilities on the right. Same buttons, ids and handlers as the maison
 * masthead; only the layout changes. The wrappers become display:contents so every button is one flex row. */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-model-b.hp-nav-maison {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-height: 0;
  padding: 8px 10px 8px 20px !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison::before { display: none !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.hp-topnav-left, .hp-maison-left-utils, .hp-navpill, .hp-maison-right, .hp-topnav-center) {
  display: contents !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-maison :is(.hp-maison-left-utils, .hp-topnav-utils)::before,
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-maison :is(.hp-maison-left-utils, .hp-topnav-utils)::after { display: none !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-maison .hp-lockup.hp-maison-monogram {
  order: 0;
  flex: none;
  margin: 0 18px 0 0;
  align-items: flex-start;
  text-align: left;
}
/* the segmented row: Inbox, then every section, each an equal share of the room */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.hp-maison-left-utils > .hp-nav-inbox-btn, .hp-navpill > .tab-btn) {
  order: 1;
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: max-content;
  justify-content: center;
  height: 46px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--lux-well) !important;
  box-shadow: none !important;
  font-family: var(--font-ui);
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--lux-muted) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-maison-left-utils > .hp-nav-inbox-btn { border-radius: 14px 0 0 14px !important; padding-left: 18px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-maison-right .hp-navpill > .tab-btn:last-child { border-radius: 0 14px 14px 0 !important; padding-right: 18px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-maison-left-utils > .hp-nav-inbox-btn svg { display: none; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.hp-maison-left-utils > .hp-nav-inbox-btn, .hp-navpill > .tab-btn):hover { color: var(--lux-ink) !important; }
/* the selected section sits on a raised glass tile inside the row */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-navpill > .tab-btn.active {
  background: var(--lux-well) !important;
  box-shadow: none !important;
  color: var(--lux-ink) !important;
  font-weight: 600;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-navpill > .tab-btn.active::before {
  content: "";
  position: absolute;
  inset: 4px 3px;
  z-index: -1;
  border-radius: 11px;
  background: var(--lux-glass-strong);
  box-shadow: var(--lux-raise);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-maison .hp-topnav-utils {
  order: 3;
  flex: none;
  margin-left: 14px;
  gap: 10px;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-maison .hp-topnav-utils :is(.hp-nav-calendar-btn, .ekm-meet-link-presence-pill) {
  font-size: 13.5px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
/* a live Meet keeps its accent highlight (Bugbot); only the quiet states turn muted */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-maison .hp-topnav-utils :is(.hp-nav-calendar-btn, .ekm-meet-link-presence-pill:not(.ekm-meet-link-presence-pill--active)) {
  font-weight: 500;
  color: var(--lux-muted) !important;
}
/* narrower: EKM and the utilities on the first line, the sections as a full-width row beneath */
@media (max-width: 1180px) {
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-model-b.hp-nav-maison { flex-wrap: wrap; row-gap: 8px; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-maison .hp-topnav-utils { order: 0; margin-left: auto; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison::after { content: "" !important; display: block !important; order: 0; flex-basis: 100%; height: 0; }
}
/* too small for words: each section shows its icon (labels stay for screen readers via aria-label) */
@media (max-width: 720px) {
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.hp-maison-left-utils > .hp-nav-inbox-btn, .hp-navpill > .tab-btn) { min-width: 0; padding: 0 6px !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-navpill > .tab-btn .hp-nav-tab-label,
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-maison-left-utils .hp-nav-inbox-label { display: none !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-navpill > .tab-btn .hp-nav-tab-icon,
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-maison-left-utils > .hp-nav-inbox-btn svg { display: inline-flex !important; }
}

/* ---------- left menu header (concept): no second EKM logo (the top bar carries it); search on the left and
 * the open/close control on the right in one quiet row ---------- */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-rail .hp-home-rail-brand { display: none !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-rail .hp-nav-rail-header {
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 6px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--lux-hair) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-rail .hp-nav-rail-header :is(.hp-nav-rail-search-btn, .hp-nav-rail-collapse-btn) {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--lux-muted);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-rail .hp-nav-rail-header :is(.hp-nav-rail-search-btn, .hp-nav-rail-collapse-btn):hover { background: var(--lux-well); color: var(--lux-ink); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #main-content.nav-model-b-layout.nav-rail-collapsed .hp-nav-rail .hp-nav-rail-header { justify-content: center; flex-direction: column; }

/* ---------- alerts under the top bar: one rounded glass card in the gutter, not a full-width strip ---------- */
/* beats ekm-os-home-luxury.css (html body.hp-active #main-content.nav-model-b-layout > #ekm-active-alerts) */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #main-content.nav-model-b-layout > #ekm-active-alerts.ekm-active-alerts--visible { width: auto !important; margin: 10px 16px 0 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekm-active-alerts-stack {
  overflow: hidden;
  border: 1px solid var(--lux-edge);
  border-radius: 18px;
  box-shadow: var(--lux-shadow);
}
/* glass in Pearl; Pearl Night keeps the solid box its status badges were tuned against */
html[data-theme="pearl"] .ekm-active-alert:not(.ekm-active-alert--urgent):not(.ekm-active-alert--dm) { background: var(--lux-glass-strong); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekm-active-alert { border-bottom-color: var(--lux-hair); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekm-active-alert:last-child { border-bottom: 0; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekm-active-alert-inner { padding: 0.62rem 1.1rem; }

/* ---------- left menu: a floating glass sheet ---------- */
/* size and spacing only while the menu is open; the collapsed icon rail keeps its own width (Bugbot) */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #main-content.nav-model-b-layout:not(.nav-rail-collapsed):has(.hp-nav-rail) > .hp-nav-rail {
  width: auto !important;
  margin: 12px 16px 16px !important;
  padding: 12px !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #main-content.nav-model-b-layout:has(.hp-nav-rail) > .hp-nav-rail {
  border: 1px solid var(--lux-edge) !important;
  border-radius: 22px;
  background: var(--lux-glass);
  box-shadow: var(--lux-shadow);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-rail .hp-nav-rail-item {
  border-left-color: transparent !important;
  border-radius: 12px !important;
  transition: background-color var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-rail .hp-nav-rail-item::before { border-radius: 12px !important; inset: 1px 0 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-rail .hp-nav-rail-item.active {
  background: var(--lux-glass-strong) !important;
  box-shadow: var(--lux-raise) !important;
  border-left-color: transparent !important;
  color: var(--lux-ink) !important;
}
/* the champagne glow bar beside the open item */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #main-content.nav-model-b-layout:not(.nav-rail-collapsed) .hp-nav-rail .hp-nav-rail-item.active::after {
  content: "" !important;
  position: absolute !important;
  left: -9px !important;
  top: 25% !important;
  bottom: 25% !important;
  width: 3px !important;
  border-radius: 2px !important;
  background: var(--lux-champagne) !important;
  box-shadow: 0 0 10px var(--lux-champagne) !important;
}
/* counts: small ink squares, even widths */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #main-content.nav-model-b-layout:not(.nav-rail-collapsed) .hp-nav-rail .hp-nav-rail-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 7px;
  background: var(--lux-ink);
  color: var(--lux-on-ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Home: glass summary tiles with Italiana numbers ---------- */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row.hp-summary-row {
  gap: 16px !important;
  border: 0 !important;
  padding: 0 !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card,
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-exec-grid > .hp-exec-card.hp-softbox {
  align-self: stretch !important;
  height: auto !important;
  margin: 0 !important;
  min-width: 0 !important;
  padding: 18px 20px !important;
  border: 1px solid var(--lux-edge) !important;
  border-radius: 22px !important;
  background: var(--lux-glass) !important;
  box-shadow: var(--lux-shadow) !important;
  transition: transform var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card[role="button"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--lux-raise), var(--lux-shadow) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row.hp-summary-row,
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-exec-grid { align-items: stretch !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-exec-grid { gap: 16px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card-label { letter-spacing: .08em !important; min-width: 0; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card-value {
  font-family: 'Italiana', var(--font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(40px, 3.6vw, 52px) !important;
  line-height: 1.05 !important;
  letter-spacing: .02em !important;
  font-variant-numeric: lining-nums tabular-nums !important;
}

/* counting numbers: the real text stays in the DOM in the ink colour (screen readers, copy, the contrast guard) at size 0;
   the eye sees an integer drawn by ::before that rolls to it */
@property --lux-n { syntax: "<integer>"; inherits: false; initial-value: 0; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row [data-summary-val][data-lux-count] {
  font-size: 0 !important;
  --lux-n: var(--lux-to, 0);
  transition: --lux-n 900ms var(--motion-ease);
  counter-reset: lux var(--lux-n);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row [data-summary-val][data-lux-count]::before {
  content: counter(lux);
  display: inline-block;
  font-size: clamp(40px, 3.6vw, 52px);
  line-height: 1.05;
}

/* ---------- the focus sheet: visits that can't be billed yet ---------- */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #home-action-zone #home-action-box.hp-focus-card,
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #home-action-box.hp-focus-card {
  padding: 22px 24px !important;
  border: 1px solid var(--lux-edge) !important;
  border-radius: 22px !important;
  background: var(--lux-glass-strong) !important;
  box-shadow: var(--lux-shadow) !important;
  border-left: 1px solid var(--lux-edge) !important;
}
.hp-focus-title { display: none; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-focus-title {
  display: block;
  margin: 0 0 6px;
  font-family: 'Italiana', var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--c-ink, var(--lux-ink));
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-focus-title em { font-style: normal; color: var(--lux-alert); }

/* ---------- While you were away | Open next: two glass panels ---------- */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #hp-primary-triad { gap: 16px !important; align-items: stretch !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #hp-primary-triad > .hp-triad-slot.hp-softbox {
  margin: 0 !important;
  padding: 18px 22px !important;
  border: 1px solid var(--lux-edge) !important;
  border-radius: 22px !important;
  background: var(--lux-glass) !important;
  box-shadow: var(--lux-shadow) !important;
}

/* ---------- Reference: Resources & Tools and Practice Contacts (kept on Home; owner: Katie uses it daily) ---------- */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-row { gap: 16px; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-ops-support-row > .hp-softbox.hp-dash-card {
  padding: 20px 22px !important;
  border: 1px solid var(--lux-edge) !important;
  border-radius: 22px !important;
  background: var(--lux-glass) !important;
  box-shadow: var(--lux-shadow) !important;
}
/* one list of hairline rows inside the sheet, not a stack of boxes */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-list { gap: 0; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-item + .hp-ops-support-item { border-top: 1px solid var(--lux-hair); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-action {
  min-height: 60px !important;
  padding: 10px 8px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  transition: background-color var(--motion-fast) var(--motion-ease) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-action:hover { background: var(--lux-glass-strong) !important; border: 0 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-action-main { gap: 14px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-action-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: var(--lux-glass-strong) !important;
  box-shadow: inset 0 0 0 1px var(--lux-hair) !important;
  color: var(--c-ink, var(--lux-ink)) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-action-title { font-size: 14px !important; font-weight: 600 !important; color: var(--c-ink, var(--lux-ink)) !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-meta { font-size: 12.5px; color: var(--c-muted); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-action-arrow { color: var(--c-muted) !important; transition: transform var(--motion-fast) var(--motion-ease) !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-action:hover .hp-ops-support-action-arrow { transform: translateX(3px) !important; color: var(--c-ink, var(--lux-ink)) !important; }
/* contacts: an even two-column grid of label over value */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-practice-contacts-card .hp-pc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-practice-contacts-card .hp-pc-fields > div { min-width: 0; overflow-wrap: anywhere; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-practice-contacts-card .hp-pc-fields > div > div:first-child { color: var(--c-muted) !important; font-weight: 600; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-practice-contacts-card .hp-pc-fields a { color: var(--c-ink, var(--lux-ink)) !important; text-decoration: none; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) [data-hp-telehealth-links] { border-top-color: var(--lux-hair) !important; }
/* telehealth copy buttons: squared, never pills */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-th-copy {
  min-height: 34px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--lux-glass-strong) !important;
  box-shadow: inset 0 0 0 1px var(--lux-hair), var(--lux-raise);
  color: var(--c-ink, var(--lux-ink)) !important;
  font-family: var(--font-ui) !important;
  font-weight: 600;
}
/* Spruce directory: hairline rows, no grey rules */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-pc-spruce { border-top-color: var(--lux-hair); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-pc-spruce tr { border-bottom: 1px solid var(--lux-hair) !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-pc-spruce tr:last-child { border-bottom: 0 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-pc-spruce td { color: var(--c-ink, var(--lux-ink)) !important; font-family: var(--font-ui) !important; font-variant-numeric: tabular-nums; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-pc-spruce th { color: var(--c-muted) !important; font-family: var(--font-ui) !important; }

/* the focus sheet's per-provider counts: small squares, never pills */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #home-action-box .hp-act-status { border-radius: 7px !important; }

/* ---------- ⌘K: a glass sheet ---------- */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekmk-scrim {
  background: color-mix(in srgb, var(--lux-on-ink) 30%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekmk-sheet {
  border: 1px solid var(--lux-edge);
  border-radius: 22px;
  background: var(--lux-glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  box-shadow: var(--shadow-modal);
  font-family: var(--font-ui);
  /* the sheet's text follows the glass, not the design-system light defaults */
  --ekm-ds-text: var(--lux-ink);
  --ekm-ds-muted: var(--lux-muted);
  --ekm-ds-divider: var(--lux-hair);
  color: var(--lux-ink);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekmk-row { border-radius: 12px; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekmk-field:focus-within { box-shadow: inset 0 -2px 0 var(--lux-champagne); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekmk-row.is-active { background: var(--lux-glass-strong); box-shadow: var(--lux-raise); }
@media (max-width: 560px) {
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekmk-sheet { border: 0; border-radius: 0; }
}

/* ---------- phone: the sheets keep an even 12px gutter ---------- */
@media (max-width: 760px) {
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #main-content.nav-model-b-layout > .hp-topnav.hp-nav-maison { margin: 8px 12px 0 !important; border-radius: 18px; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row.hp-summary-row { gap: 12px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card { padding: 16px !important; border-radius: 18px !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-ops-support-row > .hp-softbox.hp-dash-card { padding: 16px !important; border-radius: 18px !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-practice-contacts-card .hp-pc-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row [data-summary-val][data-lux-count] { transition: none; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card[role="button"]:hover { transform: none !important; }
}

/* ---------- Home sections to the approved concept (restyle only; same buttons and handlers) ---------- */
/* Open next: a clean two-column list instead of stacked outlined buttons */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #home-quick-actions .os-quick {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 0;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #home-quick-actions .os-quick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--lux-hair) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--lux-ink) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #home-quick-actions .os-quick-btn::after { content: "→"; flex: none; color: var(--lux-muted); transition: transform var(--motion-fast) var(--motion-ease); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #home-quick-actions .os-quick-btn:hover::after { transform: translateX(3px); color: var(--lux-ink); }
@media (max-width: 560px) {
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) #home-quick-actions .os-quick { grid-template-columns: minmax(0, 1fr); }
}
/* Needs you (focus card): quiet square tags and real buttons for Remind / Review queue */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #home-action-box .hp-act-status {
  border-radius: 7px !important;
  font-size: 12px;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #home-action-box .eui-btn.eui-btn--ghost {
  min-height: 34px;
  padding: 0 14px !important;
  border: 1px solid var(--lux-edge) !important;
  border-radius: 11px !important;
  background: var(--lux-glass-strong) !important;
  box-shadow: var(--lux-raise) !important;
  color: var(--lux-ink) !important;
  font-weight: 600;
}

/* ---------- Pearl looks (Colours panel): each look is Pearl or Pearl Night with its own three-stop ombre and wash ---------- */
html[data-theme="pearl"][data-pearl-look="sage"] body::before {
  background:
    radial-gradient(70vw 60vh at 0% 0%, rgba(185, 195, 178, 0.55), transparent 70%),
    radial-gradient(60vw 55vh at 100% 18%, rgba(214, 223, 209, 0.45), transparent 70%),
    radial-gradient(80vw 60vh at 30% 100%, rgba(214, 223, 208, 0.45), transparent 70%),
    linear-gradient(180deg, #C9D4C2 0%, #E3EADD 40%, #F8FAF6 100%);
  background-repeat: no-repeat;
}
html[data-theme="pearl"][data-pearl-look="sage"] { --lux-champagne: #4C6847; }
html[data-theme="pearl"][data-pearl-look="blush"] body::before {
  background:
    radial-gradient(70vw 60vh at 0% 0%, rgba(215, 189, 192, 0.55), transparent 70%),
    radial-gradient(60vw 55vh at 100% 18%, rgba(239, 218, 220, 0.45), transparent 70%),
    radial-gradient(80vw 60vh at 30% 100%, rgba(240, 217, 220, 0.45), transparent 70%),
    linear-gradient(180deg, #EACDD1 0%, #F5E5E7 40%, #FDF8F8 100%);
  background-repeat: no-repeat;
}
html[data-theme="pearl"][data-pearl-look="blush"] { --lux-champagne: #954556; }
html[data-theme="pearl"][data-pearl-look="lavender"] body::before {
  background:
    radial-gradient(70vw 60vh at 0% 0%, rgba(198, 190, 215, 0.55), transparent 70%),
    radial-gradient(60vw 55vh at 100% 18%, rgba(225, 218, 239, 0.45), transparent 70%),
    radial-gradient(80vw 60vh at 30% 100%, rgba(226, 218, 240, 0.45), transparent 70%),
    linear-gradient(180deg, #D7CEEA 0%, #ECE6F5 40%, #FBF9FD 100%);
  background-repeat: no-repeat;
}
html[data-theme="pearl"][data-pearl-look="lavender"] { --lux-champagne: #664A97; }
html[data-theme="pearl"][data-pearl-look="graphite"] body::before {
  background:
    radial-gradient(70vw 60vh at 0% 0%, rgba(196, 198, 201, 0.55), transparent 70%),
    radial-gradient(60vw 55vh at 100% 18%, rgba(224, 225, 228, 0.45), transparent 70%),
    radial-gradient(80vw 60vh at 30% 100%, rgba(224, 226, 229, 0.45), transparent 70%),
    linear-gradient(180deg, #D5D7DB 0%, #ECEDEF 40%, #FAFAFB 100%);
  background-repeat: no-repeat;
}
html[data-theme="pearl"][data-pearl-look="graphite"] { --lux-champagne: #2E3137; }
html[data-theme="pearl_night"][data-pearl-look="navy"] body::before {
  background:
    radial-gradient(70vw 60vh at 0% 0%, rgba(74, 85, 109, 0.45), transparent 70%),
    radial-gradient(60vw 55vh at 100% 18%, rgba(100, 110, 130, 0.16), transparent 70%),
    radial-gradient(80vw 60vh at 30% 100%, rgba(27, 38, 62, 0.5), transparent 70%),
    linear-gradient(180deg, #22304D 0%, #121B30 40%, #070B14 100%);
  background-repeat: no-repeat;
}
html[data-theme="pearl_night"][data-pearl-look="navy"] { --lux-champagne: #C9D6F2; }
html[data-theme="pearl_night"][data-pearl-look="plum"] body::before {
  background:
    radial-gradient(70vw 60vh at 0% 0%, rgba(93, 75, 98, 0.45), transparent 70%),
    radial-gradient(60vw 55vh at 100% 18%, rgba(117, 102, 121, 0.16), transparent 70%),
    radial-gradient(80vw 60vh at 30% 100%, rgba(46, 29, 51, 0.5), transparent 70%),
    linear-gradient(180deg, #3A2440 0%, #20142A 40%, #0C0710 100%);
  background-repeat: no-repeat;
}
html[data-theme="pearl_night"][data-pearl-look="plum"] { --lux-champagne: #E3C9F1; }
html[data-theme="pearl_night"][data-pearl-look="forest"] body::before {
  background:
    radial-gradient(70vw 60vh at 0% 0%, rgba(74, 87, 80, 0.45), transparent 70%),
    radial-gradient(60vw 55vh at 100% 18%, rgba(100, 112, 106, 0.16), transparent 70%),
    radial-gradient(80vw 60vh at 30% 100%, rgba(27, 40, 34, 0.5), transparent 70%),
    linear-gradient(180deg, #22322A 0%, #121C17 40%, #070B09 100%);
  background-repeat: no-repeat;
}
html[data-theme="pearl_night"][data-pearl-look="forest"] { --lux-champagne: #BFD8C4; }

/* ---------- Colours panel (js/ekm-pearl-colours.js) ---------- */
.ekm-colours-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: var(--lux-well, rgba(127, 127, 127, .1));
  color: var(--lux-ink, var(--c-ink));
  cursor: pointer;
}
.ekm-colours-btn:hover, .ekm-colours-btn[aria-expanded="true"] { background: var(--lux-glass-strong, var(--c-box)); box-shadow: var(--lux-raise, none); }
.ekm-colours-btn:focus-visible, .ekm-colours-sheet :is(button, input):focus-visible { outline: 2px solid var(--lux-ink, var(--c-ink)); outline-offset: 2px; }
.ekm-colours-sheet {
  position: fixed;
  z-index: 260;
  top: calc(env(safe-area-inset-top, 0px) + 84px);
  right: max(16px, env(safe-area-inset-right, 0px));
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--lux-edge, var(--c-box-border));
  border-radius: 20px;
  background: var(--c-box);
  color: var(--c-ink);
  box-shadow: var(--shadow-modal, 0 24px 48px -16px rgba(0, 0, 0, .35));
  font-family: var(--font-ui);
}
.ekm-colours-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ekm-colours-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.ekm-colours-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--c-muted); font-size: 20px; cursor: pointer; }
.ekm-colours-x:hover { background: var(--lux-well, rgba(127, 127, 127, .1)); color: var(--c-ink); }
.ekm-colours-note { margin: 4px 0 12px; font-size: 13px; color: var(--c-muted); }
.ekm-colours-sheet h3 { margin: 16px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.ekm-colours-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ekm-colours-looks button, .ekm-colours-fins button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--c-box-border);
  border-radius: 12px;
  background: none;
  color: var(--c-ink);
  font: inherit;
  font-size: 12.5px;
  text-align: center;
  cursor: pointer;
}
.ekm-colours-looks button[aria-checked="true"], .ekm-colours-fins button[aria-checked="true"] { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); font-weight: 600; }
.ekm-colours-looks button:disabled, .ekm-colours-fins button:disabled { cursor: default; opacity: .6; }
.ekm-colours-sw { display: block; height: 40px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .25); }
.ekm-colours-fins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ekm-colours-fins button { justify-content: center; min-height: 58px; }
.ekm-colours-fin { display: block; height: 22px; border-radius: 7px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 4px rgba(0, 0, 0, .25); }
.ekm-colours-fin[data-fin="onyx"] { background: linear-gradient(180deg, #4A4D55, #1E2026); }
.ekm-colours-fin[data-fin="polished_chrome"] { background: linear-gradient(180deg, #F2F4F7, #B4BBC5 55%, #8E959F); }
.ekm-colours-fin[data-fin="deep_ink"] { background: linear-gradient(180deg, #4D6A92, #2F4766 55%, #1D2E44); }
.ekm-colours-fin[data-fin="champagne_metal"] { background: linear-gradient(180deg, #E8D5A8, #AE976A 55%, #7A6540); }
.ekm-colours-lock { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-rule); cursor: pointer; }
.ekm-colours-lock b { display: block; font-size: 14px; font-weight: 600; }
.ekm-colours-lock small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--c-muted); }
.ekm-colours-lock input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ekm-colours-lock i { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--c-rule); transition: background .2s; }
.ekm-colours-lock i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.ekm-colours-lock input:checked + i { background: var(--c-ink); }
.ekm-colours-lock input:checked + i::after { transform: translateX(18px); background: var(--c-box); }
.ekm-colours-lock input:focus-visible + i { outline: 2px solid var(--c-ink); outline-offset: 2px; }
@media (max-width: 420px) { .ekm-colours-fins { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* dark looks: the glass takes the look's own colour instead of Pearl Night's graphite */
html[data-theme="pearl_night"][data-pearl-look="navy"] { --lux-glass: rgba(24, 34, 58, .3); --lux-glass-strong: rgba(30, 42, 70, .58); }
html[data-theme="pearl_night"][data-pearl-look="plum"] { --lux-glass: rgba(36, 24, 44, .3); --lux-glass-strong: rgba(46, 31, 56, .58); }
html[data-theme="pearl_night"][data-pearl-look="forest"] { --lux-glass: rgba(23, 34, 28, .3); --lux-glass-strong: rgba(30, 44, 36, .58); }
/* the "Inbox clear." line was a fixed rgba(255,255,255,.45) (about 4.2:1 on dark pages): use the theme's muted ink */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-flank-empty { color: var(--c-muted) !important; }

/* ---------- Home, quieter (owner 2026-10-25: "more modern, more high tech", match the approved concept) ----------
 * A number and one short line per card. The whole tile already opens its destination (role="button"), so the
 * repeated "Open …" link line and the second sub-line are hidden on screen; nothing is removed from the page. */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row :is(.hp-summary-card-break, .hp-summary-card-link) { display: none !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card-label {
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--c-ink2) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card-sub { font-size: 13px; color: var(--c-muted); }
/* While you were away: the joke lines go; the caught-up line, the next step and the sync note stay */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #home-away-summary .hp-wywa-joke { display: none !important; }
/* Executive overview: the italic explainer under each figure goes; label, figure and one line stay */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-exec-grid .hp-exec-card-ph { display: none !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-exec-grid .hp-exec-card-sub { font-size: 13px; color: var(--c-muted); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-exec-grid .hp-exec-card-value { font-family: var(--font-display, var(--font-hero, serif)); font-size: clamp(1.9rem, 2.8vw, 2.4rem); font-weight: 400; }
/* Culture & personal: three glass cards like the rest of Home */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-culture-row > .hp-softbox {
  padding: 18px 22px !important;
  border: 1px solid var(--lux-edge) !important;
  border-radius: 22px !important;
  background: var(--lux-glass) !important;
  box-shadow: var(--lux-shadow) !important;
}

/* ---------- Your day (index.html homePaintYourDay): today's visits in time order with a NOW line ---------- */
.hp-v2-day { margin: 0 0 clamp(.75rem, 1.8vw, 1.05rem); min-width: 0; }
.hp-v2-day[hidden] { display: none !important; }
.hp-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.hp-day-open { min-height: 32px; padding: 0 4px; border: 0; background: none; color: var(--c-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hp-day-card { min-width: 0; padding: 6px 20px; border: 1px solid var(--c-box-border); border-radius: 18px; background: var(--c-box); }
.hp-day-list { list-style: none; margin: 0; padding: 0; }
.hp-day-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 160px) 76px; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--c-rule); font-size: 14px; }
.hp-day-row:last-child { border-bottom: 0; }
.hp-day-time { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.hp-day-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--c-ink); }
.hp-day-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-muted); }
.hp-day-state { justify-self: end; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.hp-day-row.is-earlier :is(.hp-day-who, .hp-day-time) { color: var(--c-muted); font-weight: 500; }
.hp-day-row.is-now .hp-day-state, .hp-day-row.is-next .hp-day-state { color: var(--c-ink); }
.hp-day-now { position: relative; display: flex; align-items: center; gap: 10px; height: 22px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink); }
.hp-day-now::after { content: ""; flex: 1; height: 1.5px; border-radius: 1px; background: var(--c-accent); }
.hp-day-empty, .hp-day-more { margin: 12px 0; font-size: 13.5px; color: var(--c-muted); }
@media (max-width: 640px) {
  .hp-day-row { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .hp-day-type { display: none; }
}
/* practice-wide: one column per provider, three across at most (more wrap to the next row), stacked on a phone; inside a
   column the visit type sits under the patient so the row fits a third of the page */
.hp-day-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hp-day-cols[data-cols="1"] { grid-template-columns: minmax(0, 1fr); }
.hp-day-cols[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-day-col-name { margin: 12px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--c-ink); overflow-wrap: anywhere; }
.hp-day-col .hp-day-row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "time who state" "time type state"; row-gap: 0; padding: 8px 0; }
.hp-day-col .hp-day-time { grid-area: time; }
.hp-day-col .hp-day-who { grid-area: who; }
.hp-day-col .hp-day-type { grid-area: type; display: block; font-size: 12.5px; }
.hp-day-col .hp-day-state { grid-area: state; white-space: nowrap; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-day-col .hp-day-row { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 12px; }
@media (max-width: 760px) {
  .hp-day-cols, .hp-day-cols[data-cols] { grid-template-columns: minmax(0, 1fr); }
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-day-card {
  padding: 6px 22px;
  border: 1px solid var(--lux-edge);
  border-radius: 22px;
  background: var(--lux-glass);
  box-shadow: var(--lux-shadow);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-day-row { border-bottom-color: var(--lux-hair); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-day-now { color: var(--lux-ink); } /* the label stays AA; the line carries the accent */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-day-now::after { background: var(--lux-champagne); }

/* ---------- Arrange Home (js/ekm-home-arrange.js) ---------- */
.hp-arr-hidden { display: none !important; }
.ekm-arrange-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: var(--lux-well, rgba(127, 127, 127, .1));
  color: var(--lux-ink, var(--c-ink));
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.ekm-arrange-btn[aria-pressed="true"] { background: var(--lux-glass-strong, var(--c-box)); box-shadow: var(--lux-raise, none); font-weight: 600; }
.ekm-arrange-btn:focus-visible, .hp-arrange-row button:focus-visible, .hp-arr-bar button:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
@media (max-width: 900px) { .ekm-arrange-label { display: none; } .ekm-arrange-btn { width: 38px; padding: 0; justify-content: center; } }
.hp-arrange-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--lux-edge, var(--c-box-border));
  border-radius: 18px;
  background: var(--lux-glass-strong, var(--c-box));
  color: var(--c-ink);
  font-size: 13.5px;
}
.hp-arrange-row p { margin: 0; min-width: 0; flex: 1 1 280px; }
.hp-arr-warn { color: var(--c-danger, #a33); font-weight: 600; }
.hp-arr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hp-arrange-row button, .hp-arr-bar button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--c-box-border);
  border-radius: 10px;
  background: var(--c-box);
  color: var(--c-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.hp-arrange-row button:disabled, .hp-arr-bar button:disabled { opacity: .45; cursor: default; }
.hp-arrange-row .hp-arr-done { background: var(--c-ink); color: var(--c-box); border-color: var(--c-ink); }
html.hp-arranging #hp-dash-surface > :is(.hp-v2-ops, .hp-v2-today, .hp-v2-action, #home-your-day, .hp-ia-group),
html.hp-arranging #hp-home-body .hp-ia-group { outline: 1.5px dashed var(--c-box-border); outline-offset: 6px; border-radius: 22px; }
.hp-arr-bar { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.hp-arr-name { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-arr-name em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--c-muted); }
.hp-arr-dim > :not(.hp-arr-bar) { opacity: .35; }

/* ---------- "Your own" look (index.html ekmPearlSetCustomLook sets --pc-1..3 and --pc-accent) ---------- */
html:is([data-theme="pearl"], [data-theme="pearl_night"])[data-pearl-look="custom"] body::before {
  background:
    radial-gradient(70vw 60vh at 0% 0%, color-mix(in srgb, var(--pc-1) 55%, transparent), transparent 70%),
    /* each glow in the color of where it sits, so the Bottom color is what the bottom shows (owner 2026-10-27: "colors dont appear
       to be lining up"; the bottom glow was the Middle color) */
    radial-gradient(80vw 60vh at 30% 100%, color-mix(in srgb, var(--pc-3) 45%, transparent), transparent 70%),
    linear-gradient(180deg, var(--pc-1) 0%, var(--pc-2) 40%, var(--pc-3) 100%);
  background-repeat: no-repeat;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"])[data-pearl-look="custom"] { --lux-champagne: var(--pc-accent); }
.ekm-colours-own .ekm-colours-sw { position: relative; }
.ekm-colours-own .ekm-colours-sw i { position: absolute; right: 6px; bottom: 6px; width: 12px; height: 12px; border-radius: 4px; box-shadow: 0 0 0 1.5px #fff; }
.ekm-colours-edit { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid var(--c-box-border); border-radius: 14px; }
.ekm-colours-preview { display: flex; align-items: flex-end; justify-content: flex-end; height: 64px; padding: 8px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .25); }
.ekm-colours-preview span { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.ekm-colours-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ekm-colours-picks label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--c-muted); }
.ekm-colours-picks input[type="color"] { width: 100%; height: 36px; padding: 2px; border: 1px solid var(--c-box-border); border-radius: 9px; background: var(--c-box); cursor: pointer; }
/* one calm line, in the muted ink (owner 2026-10-26: no red list) */
.ekm-colours-problems { margin: 0; min-height: 1.4em; font-size: 12.5px; line-height: 1.4; color: var(--c-muted); }
.ekm-colours-problems:empty { min-height: 0; }
.ekm-colours-fixit { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--c-ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ekm-colours-fixit[hidden] { display: none; }
.ekm-colours-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ekm-colours-edit-actions button { min-height: 36px; padding: 0 14px; border: 1px solid var(--c-box-border); border-radius: 10px; background: var(--c-box); color: var(--c-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ekm-colours-edit-actions .ekm-colours-use { background: var(--c-ink); color: var(--c-box); border-color: var(--c-ink); }
.ekm-colours-edit-actions button:disabled { opacity: .45; cursor: default; }
.ekm-colours-looks .ekm-colours-own { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; text-align: left; }
.ekm-colours-looks .ekm-colours-own .ekm-colours-sw { flex: none; width: 72px; height: 34px; }
/* a dark "Your own": the glass takes the person's middle colour instead of Pearl Night's graphite */
html[data-theme="pearl_night"][data-pearl-look="custom"] { --lux-glass: color-mix(in srgb, var(--pc-2) 30%, transparent); --lux-glass-strong: color-mix(in srgb, var(--pc-2) 58%, #ffffff 4%); }

/* ---------- Top-bar tools (js/ekm-home-topbar-tools.js): search, light/dark, bell ---------- */
/* the concept's order: Search · Arrange · Colours · Light/dark · Bell, then Link and the person */
.hp-nav-maison .hp-topnav-utils > .ekm-search-btn { order: 1; }
.hp-nav-maison .hp-topnav-utils > .ekm-arrange-btn { order: 2; }
.hp-nav-maison .hp-topnav-utils > .ekm-colours-btn { order: 3; }
.hp-nav-maison .hp-topnav-utils > .ekm-mode-btn { order: 4; }
.hp-nav-maison .hp-topnav-utils > .ekm-bell-btn { order: 5; }
.hp-nav-maison .hp-topnav-utils > * { order: 6; }
.hp-nav-maison .hp-topnav-utils > .hp-nav-profile-btn { order: 7; }
.ekm-search-btn, .ekm-mode-btn, .ekm-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: var(--lux-well, rgba(127, 127, 127, .1));
  color: var(--lux-ink, var(--c-ink));
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.ekm-search-btn:hover, .ekm-mode-btn:hover, .ekm-bell-btn:hover, .ekm-bell-btn[aria-expanded="true"] { background: var(--lux-glass-strong, var(--c-box)); box-shadow: var(--lux-raise, none); }
.ekm-search-btn:focus-visible, .ekm-mode-btn:focus-visible, .ekm-bell-btn:focus-visible { outline: 2px solid var(--lux-ink, var(--c-ink)); outline-offset: 2px; }
.ekm-mode-btn:disabled { opacity: .55; cursor: default; }
.ekm-search-label, .ekm-search-btn kbd { display: none; }
.ekm-search-btn kbd { font: inherit; font-size: 11.5px; color: var(--lux-muted, var(--c-muted)); padding: 2px 6px; border-radius: 6px; background: var(--lux-well, rgba(127, 127, 127, .1)); }
.ekm-bell-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--lux-ink, var(--c-ink));
  color: var(--c-bg, #fff);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
/* wide screens: the search reads as a field, like the concept */
@media (min-width: 1440px) {
  .ekm-search-btn { justify-content: flex-start; padding: 0 10px 0 12px; min-width: 240px; color: var(--lux-muted, var(--c-muted)); }
  .ekm-search-btn svg { color: var(--lux-ink, var(--c-ink)); }
  .ekm-search-label { display: inline; flex: 1; text-align: left; }
  .ekm-search-btn kbd { display: inline; }
}
/* the Notifications panel opens under the bell, as glass */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .notif-panel {
  z-index: 260;
  border-radius: 16px;
  border: 1px solid var(--lux-hair, var(--border));
  background: var(--lux-glass-strong, var(--surface));
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: var(--lux-raise, 0 8px 24px rgba(0, 0, 0, .12));
  width: min(360px, calc(100vw - 24px));
}

/* ---------- Home sections, as approved (owner 2026-10-25) ---------- */
/* one section heading style: small capitals, with its link on the same line */
.hp-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; min-width: 0; }
.hp-sec-h[hidden] { display: none !important; }
.hp-sec-h h3, .hp-card-h { margin: 0; font-family: var(--font-ui, -apple-system, sans-serif); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }
.hp-sec-link { min-height: 32px; padding: 0 2px; border: 0; background: none; color: var(--c-accent-fg, var(--c-accent)); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hp-sec-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.hp-sec-link:focus-visible, .hp-next-item:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; border-radius: 6px; }
.hp-day-head .hp-seclabel { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }
.hp-day-head .hp-secline { display: none; }
/* Needs you: name with what's missing beneath, a square count, Remind */
.hp-focus-sub { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: var(--c-muted); }
.hp-fixes { display: grid; gap: 0; }
.hp-fix { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--c-rule); cursor: pointer; }
.hp-fix-who { display: grid; gap: 2px; min-width: 0; }
.hp-fix-who b { font-size: 14.5px; font-weight: 600; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-fix-who small { font-size: 12.5px; color: var(--c-muted); }
.hp-fix-cnt { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; background: var(--lux-well, rgba(127, 127, 127, .1)); color: var(--c-ink); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-fix .eui-btn { min-height: 36px; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-fix { border-top-color: var(--lux-hair); }
/* While you were away | Open next: plain headings, always open; a list with the time or destination on the right */
.hp-card-h { margin-bottom: 10px; }
#home-away-slot .hp-sec-panel-head, #home-quick-actions-slot.hp-next-card .hp-sec-panel-head { padding: 0 !important; border: 0 !important; background: none !important; }
.hp-away-when { font-size: 12.5px; color: var(--c-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hp-next-list { list-style: none; margin: 0; padding: 0; }
.hp-next-list > li { border-bottom: 1px solid var(--c-rule); }
.hp-next-list > li:last-child { border-bottom: 0; }
.hp-next-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--c-ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.hp-next-what { min-width: 0; }
.hp-next-dest { flex: none; font-size: 12.5px; color: var(--c-muted); }
.hp-next-item:hover .hp-next-what { text-decoration: underline; text-underline-offset: 2px; }
.hp-next-empty { padding: 10px 0; font-size: 13.5px; color: var(--c-muted); }
/* the concept has no rules between sections, and the heading links sit on the heading's line */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(#role-home-content, #home-content) .hp-band-head { border-top: 0 !important; padding-top: 0 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-day-head { align-items: center !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-day-head .hp-seclabel { font-size: 11px !important; font-weight: 600 !important; letter-spacing: .2em !important; color: var(--c-muted) !important; }
#home-resources-card .hp-sec-panel-head, #home-practice-contacts-card .hp-sec-panel-head { padding: 0 !important; border: 0 !important; background: none !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(#role-home-content, #home-content) :is(#hp-primary-triad, #hp-home-body, .hp-exec-grid) { border-top: 0 !important; border-bottom: 0 !important; }

/* ---------- Concept fidelity (owner 2026-10-25: "the one I approved looks a lot better, high technology, upscale") ----------
 * Measured against the approved concept at 1280px and set to its values: real frosted glass on every Home sheet, slow
 * light moving behind the glass, 36px between sections, the concept's type scale (15px body, 12px section capitals,
 * 59px tile figures, 44px executive figures), and its row heights. Pearl and Pearl Night only. */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(
  body #main-content.nav-model-b-layout > .hp-topnav.hp-nav-maison,
  body #main-content.nav-model-b-layout:has(.hp-nav-rail) > .hp-nav-rail,
  #hp-summary-row .hp-summary-card,
  #hp-primary-triad > .hp-triad-slot.hp-softbox,
  #home-action-box.hp-focus-card,
  .hp-exec-grid .hp-exec-card,
  .hp-day-card,
  .hp-ops-support-row > .hp-softbox.hp-dash-card,
  .hp-culture-row > .hp-softbox
) {
  -webkit-backdrop-filter: blur(34px) saturate(185%) !important;
  backdrop-filter: blur(34px) saturate(185%) !important;
  border-color: transparent !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(.hp-exec-grid .hp-exec-card, .hp-day-card, #hp-primary-triad > .hp-triad-slot.hp-softbox, .hp-culture-row > .hp-softbox) {
  background: var(--lux-glass) !important;
  box-shadow: var(--lux-shadow) !important;
  border-radius: 22px !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #home-action-box.hp-focus-card { background: var(--lux-glass) !important; }
/* the page's own type size and the space between sections */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(#hp-dash-surface, #hp-home-body) { font-size: 15px; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #hp-dash-surface > :is(.hp-v2-ops, .hp-v2-today, .hp-v2-day, .hp-v2-action) { margin: 0 0 36px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #hp-dash-surface > :is(.hp-v2-ops, .hp-v2-today, .hp-v2-day, .hp-v2-action) :is(#hp-primary-triad, #home-action-zone, #home-action-box) { margin-bottom: 0 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #hp-home-body { margin-top: 0 !important; padding-top: 0 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(#hp-home-body, #hp-dash-surface) > .hp-ia-group { margin: 0 0 36px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-band-head { margin: 0 0 14px !important; }
/* section capitals (12px, wide tracking) and card capitals */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(.hp-sec-h h3, .hp-band-eyebrow, .hp-exec-overview-label, .hp-day-head .hp-seclabel) {
  font-size: 12px !important; font-weight: 600 !important; letter-spacing: .26em !important; text-transform: uppercase !important; color: var(--c-ink2, var(--lux-muted)) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-exec-overview-label { margin: 0 0 14px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-sec-h { margin-bottom: 14px; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(.hp-card-h, .hp-ops-support-row .hp-sec-panel-head .hp-card-h, .hp-culture-row .hp-seclabel) { font-size: 12px !important; letter-spacing: .22em !important; color: var(--c-ink2, var(--lux-muted)) !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(.hp-sec-link, .hp-day-open) { font-size: 14px; font-weight: 500; }
/* Today at a glance: big Italiana figures */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card { gap: 6px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card-value { font-size: clamp(44px, 4.6vw, 60px) !important; line-height: 1.02 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row [data-summary-val][data-lux-count]::before { font-size: clamp(44px, 4.6vw, 60px); line-height: 1.02; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card-head { gap: 8px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card-label { color: var(--c-ink2, var(--lux-muted)) !important; letter-spacing: 0 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #hp-summary-row .hp-summary-card-sub { font-size: 13.5px !important; color: var(--c-ink2, var(--lux-muted)) !important; }
/* Executive overview: figures in Italiana at the concept's size */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-exec-grid .hp-exec-card { padding: 20px 22px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-exec-grid .hp-exec-card-value { font-family: 'Italiana', var(--font-display, serif) !important; font-size: clamp(36px, 3.4vw, 46px) !important; font-weight: 400 !important; line-height: 1.05 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-exec-grid .hp-exec-card-label { font-size: 12px !important; font-weight: 600 !important; letter-spacing: .14em !important; color: var(--c-muted) !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-exec-grid .hp-exec-card-sub { font-size: 13px !important; margin-top: 4px !important; color: var(--c-ink2, var(--lux-muted)) !important; }
/* Needs you */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #home-action-box.hp-focus-card { padding: 20px 22px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-focus-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 4px; letter-spacing: .02em; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-focus-sub { font-size: 15px; color: var(--c-ink2, var(--lux-muted)); margin-bottom: 0; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-fixes { margin-top: 14px; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-fix { min-height: 60px; padding: 0; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-fix-who b { font-size: 15px; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-fix-who small { font-size: 13px; color: var(--c-ink2, var(--lux-muted)); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-fix-cnt { min-width: 0; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px; color: var(--lux-alert); background: color-mix(in srgb, var(--lux-alert) 12%, transparent); }
/* Your day */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-day-row { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 140px) 100px; column-gap: 20px; min-height: 54px; }
@media (max-width: 640px) { html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-day-row { grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 12px; } }
/* While you were away | Open next */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #hp-primary-triad > .hp-triad-slot.hp-softbox { padding: 20px 22px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(.hp-next-item, #home-away-summary .hp-away-row) { font-size: 14px; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-next-item { min-height: 0; padding: 10px 0; }
/* Reference rows */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-ops-support-action { min-height: 60px; font-size: 15px; }

/* slow light behind the glass (js/ekm-pearl-luxe.js adds the layer; still for reduced motion) */
.lux-ambient { display: none; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .lux-ambient { display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lux-ambient i { position: absolute; border-radius: 50%; }
.lux-ambient i:nth-child(1) { width: 64vw; height: 64vw; left: -16vw; top: -30vw; background: radial-gradient(circle, var(--lux-orb-a), transparent 66%); animation: lux-d1 26s cubic-bezier(.22, 1, .36, 1) infinite alternate; }
.lux-ambient i:nth-child(2) { width: 48vw; height: 48vw; right: -12vw; top: -10vw; background: radial-gradient(circle, var(--lux-orb-b), transparent 66%); animation: lux-d2 32s cubic-bezier(.22, 1, .36, 1) infinite alternate; }
.lux-ambient i:nth-child(3) { width: 58vw; height: 58vw; left: 24vw; top: 46vh; background: radial-gradient(circle, var(--lux-orb-c), transparent 66%); animation: lux-d3 38s cubic-bezier(.22, 1, .36, 1) infinite alternate; }
.lux-ambient i:nth-child(4) { width: 40vw; height: 40vw; right: 4vw; top: 58vh; background: radial-gradient(circle, var(--lux-orb-d), transparent 66%); animation: lux-d2 30s cubic-bezier(.22, 1, .36, 1) infinite alternate-reverse; }
@keyframes lux-d1 { to { transform: translate(9vw, 7vh) scale(1.08); } }
@keyframes lux-d2 { to { transform: translate(-8vw, 10vh) scale(.94); } }
@keyframes lux-d3 { to { transform: translate(-10vw, -8vh) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .lux-ambient i { animation: none !important; } }
html[data-theme="pearl"] { --lux-orb-a: rgba(255, 255, 255, .95); --lux-orb-b: rgba(222, 190, 146, .6); --lux-orb-c: rgba(214, 206, 222, .75); --lux-orb-d: rgba(200, 214, 226, .6); }
html[data-theme="pearl_night"] { --lux-orb-a: rgba(255, 255, 255, .11); --lux-orb-b: rgba(170, 182, 204, .14); --lux-orb-c: rgba(120, 128, 142, .18); --lux-orb-d: rgba(225, 228, 236, .08); }
/* left menu rows at the concept's size */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #main-content.nav-model-b-layout:not(.nav-rail-collapsed) .hp-nav-rail .hp-nav-rail-item { min-height: 42px; font-size: 14.5px !important; font-weight: 500; }
/* the open section and the open menu row sit on the concept's bright raised sheet */
html[data-theme="pearl"] { --lux-glass-hi: rgba(255, 255, 255, .94); }
html[data-theme="pearl_night"] { --lux-glass-hi: rgba(255, 255, 255, .10); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-navpill > .tab-btn.active::before,
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body:has(#hp-dash-surface) .hp-topnav.hp-nav-maison .hp-navpill:not(:has(> .tab-btn.active)) > .tab-btn[data-nav-top="ekm"]::before {
  content: "";
  position: absolute;
  inset: 4px 3px;
  z-index: -1;
  border-radius: 11px;
  background: var(--lux-glass-hi);
  box-shadow: inset 0 0 0 .5px var(--lux-edge), 0 8px 18px -12px rgba(70, 52, 32, .35);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-rail .hp-nav-rail-item.active {
  background: var(--lux-glass-hi) !important;
  box-shadow: inset 0 0 0 .5px var(--lux-edge), 0 8px 18px -12px rgba(70, 52, 32, .35) !important;
}
/* on Home the EKM section is lit (Home is the first page of EKM's menu), as in the concept */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body:has(#hp-dash-surface) .hp-topnav.hp-nav-maison .hp-navpill:not(:has(> .tab-btn.active)) > .tab-btn[data-nav-top="ekm"] {
  color: var(--lux-ink) !important;
  font-weight: 600;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #main-content.nav-model-b-layout:not(.nav-rail-collapsed) .hp-nav-rail .hp-nav-rail-item .hp-nav-rail-label { font-size: 14.5px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-rail .hp-nav-rail-item.active::before { background: transparent !important; box-shadow: none !important; }

/* ---------- Button finishes as polished metal and lacquer (owner 2026-10-25: "shiny, expensive looking";
 * "the navy button isn't navy") ----------
 * The concept's finishes, value for value: each face is lit from above (bright top edge, darker lower edge), with a
 * sheen that sweeps across on hover. Navy, Silver and Gold are the same metal in Pearl and Pearl Night, so Navy is
 * navy in both. With no finish chosen, the look's own ink lacquer. Applied to the action buttons, counts and the
 * open-menu glow; text on every face clears 4.5:1. The portal-wide primary button keeps its own family treatment
 * (ACCENT_FAMILY_TREATMENTS, tests/ui-pr11-premium-finish.test.mjs). */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) {
  --fin-bg: linear-gradient(180deg, #3A3530 0%, #1A1511 55%, #2A2420 100%);
  --fin-solid: #1A1511;
  --fin-ink: #FBF7F0;
  --fin-hi: rgba(255, 255, 255, .22);
  --fin-lo: rgba(0, 0, 0, .35);
}
html[data-theme="pearl_night"] {
  --fin-bg: linear-gradient(180deg, #FFFFFF 0%, #EDEDEC 55%, #D9D9D7 100%);
  --fin-solid: #EDEDEC;
  --fin-ink: #0B0B0C;
  --fin-hi: rgba(255, 255, 255, .9);
  --fin-lo: rgba(0, 0, 0, .25);
}
/* a saved onyx family is the Colors sheet's Ink: it paints the look's own ink lacquer above (Bugbot: Ink showed as
   selected for onyx but painted a gray metal) */
html:is([data-theme="pearl"], [data-theme="pearl_night"])[data-pearl-finish="polished_chrome"] {
  --fin-bg: linear-gradient(180deg, #FBFCFD 0%, #E3E6EB 42%, #C3C8D0 54%, #DDE1E7 78%, #F2F4F7 100%);
  --fin-solid: #D3D7DD; --fin-ink: #1B1E24; --fin-hi: rgba(255, 255, 255, .95); --fin-lo: rgba(70, 78, 92, .35);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"])[data-pearl-finish="deep_ink"] {
  --fin-bg: linear-gradient(180deg, #4A5F8C 0%, #22345C 44%, #14213F 56%, #1D2E52 82%, #2C4170 100%);
  --fin-solid: #1D2E52; --fin-ink: #F3F6FC; --fin-hi: rgba(255, 255, 255, .42); --fin-lo: rgba(0, 0, 0, .45);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"])[data-pearl-finish="champagne_metal"] {
  --fin-bg: linear-gradient(180deg, #F7E7C6 0%, #E0C38E 42%, #BF9A5C 56%, #D8B979 80%, #F0DDB5 100%);
  --fin-solid: #CDAA6B; --fin-ink: #2A1D0C; --fin-hi: rgba(255, 250, 236, .9); --fin-lo: rgba(90, 62, 24, .4);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(
  #home-action-box .hp-fix .eui-btn.eui-btn--ghost,
  .hp-arrange-row [data-arr-done],
  .ekm-colours-use
) {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  background: var(--fin-solid) var(--fin-bg) !important;
  color: var(--fin-ink) !important;
  box-shadow: inset 0 1px 0 var(--fin-hi), inset 0 -1px 0 var(--fin-lo), 0 1px 2px rgba(0, 0, 0, .18), 0 10px 22px -12px rgba(40, 30, 20, .5) !important;
  font-weight: 600 !important;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(#home-action-box .hp-fix .eui-btn.eui-btn--ghost, .hp-arrange-row [data-arr-done], .ekm-colours-use)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(#home-action-box .hp-fix .eui-btn.eui-btn--ghost, .hp-arrange-row [data-arr-done], .ekm-colours-use):hover::after { transform: translateX(120%); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(#home-action-box .hp-fix .eui-btn.eui-btn--ghost, .hp-arrange-row [data-arr-done], .ekm-colours-use):active { transform: scale(.96); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(#home-action-box .hp-fix .eui-btn.eui-btn--ghost, .hp-arrange-row [data-arr-done], .ekm-colours-use):disabled { opacity: .5; }
/* counts in the same metal */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #main-content.nav-model-b-layout .hp-nav-rail .hp-nav-rail-badge,
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .ekm-bell-count {
  background: var(--fin-solid) var(--fin-bg) !important;
  color: var(--fin-ink) !important;
  box-shadow: inset 0 1px 0 var(--fin-hi), inset 0 -1px 0 var(--fin-lo) !important;
}
/* the open menu row's glow bar takes the finish */
html:is([data-theme="pearl"], [data-theme="pearl_night"])[data-pearl-finish] #main-content.nav-model-b-layout:not(.nav-rail-collapsed) .hp-nav-rail .hp-nav-rail-item.active::after {
  background: var(--fin-solid) var(--fin-bg) !important;
  box-shadow: 0 0 10px var(--fin-solid) !important;
}
@media (prefers-reduced-motion: reduce) {
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(#home-action-box .hp-fix .eui-btn.eui-btn--ghost, .hp-arrange-row [data-arr-done], .ekm-colours-use)::after { display: none; }
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(.hp-next-list > li, #home-away-summary .hp-away-row) { border-color: var(--lux-hair) !important; }

/* ---------- The greeting at the approved concept's size (owner 2026-10-25: "yes", match it) ----------
 * The name only: the concept's clamp(56px, 11vw, 150px), about 140px at 1280. Longer names keep their own smaller
 * tiers, and fitHomeHeroName still shrinks any name that would not fit. Greeting, date and clock are unchanged. */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #home-hero-zone .hp-hero-name:not(.hp-hero-name--long):not(.hp-hero-name--xlong):not(.hp-hero-name--xxlong) {
  font-size: clamp(56px, 11vw, 150px) !important;
  letter-spacing: .12em !important;
  line-height: .92 !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #home-hero-zone { padding-top: 44px !important; padding-bottom: 36px !important; }
/* the date and clock as in the approved version: both in Italiana, the time zone in small capitals in the accent */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #home-hero-zone .hp-hero-date {
  font-family: 'Italiana', var(--font-display, serif) !important;
  font-size: clamp(18px, 2.2vw, 26px) !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--c-ink2, var(--lux-muted)) !important;
  opacity: 1 !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #home-hero-zone .hp-hero-clock-time {
  font-family: 'Italiana', var(--font-display, serif) !important;
  font-size: clamp(24px, 2.8vw, 32px) !important;
  font-weight: 400 !important;
  letter-spacing: .08em !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #home-hero-zone .hp-hero-clock-meta {
  font-size: clamp(12px, 1.4vw, 14px) !important;
  font-weight: 600 !important;
  letter-spacing: .22em !important;
  color: var(--c-accent-fg, var(--c-accent)) !important;
  opacity: 1 !important;
}

/* ---------- the greeting line and the slim menu, as in the approved version (EKM Home Layout, owner 2026-10-25) ---------- */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #home-hero-zone .hp-hero-greeting {
  font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
  font-weight: 500 !important;
  font-size: clamp(14px, 1.7vw, 17px) !important;
  letter-spacing: .38em !important;
  color: var(--c-ink2, var(--lux-muted)) !important;
  opacity: 1 !important;
}
/* slim menu: a floating glass column of icons, 76px wide */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #main-content.nav-model-b-layout.nav-rail-collapsed { --pds-nav-width-collapsed: 92px; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #main-content.nav-model-b-layout.nav-rail-collapsed:has(.hp-nav-rail) > .hp-nav-rail {
  width: auto !important;
  margin: 12px 0 16px 16px !important;
  padding: 10px 8px !important;
  border-radius: 22px !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #main-content.nav-model-b-layout.nav-rail-collapsed .hp-nav-rail .hp-nav-rail-item {
  width: 52px;
  min-height: 44px;
  margin: 2px auto !important;
  padding: 0 !important;
  border-radius: 12px !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #main-content.nav-model-b-layout.nav-rail-collapsed .hp-nav-rail .hp-nav-rail-item svg { width: 18px; height: 18px; }
/* collapsed menu: the count stays a readable numeral, anchored to the icon's top-right corner. The base collapsed
   rule shrinks it to a dot (font-size 0 / transparent text, both !important), which left blank metal blobs on Pearl
   (owner 2026-10-26), so every size here is !important too */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #main-content.nav-model-b-layout.nav-rail-collapsed .hp-nav-rail .hp-nav-rail-badge {
  position: absolute !important;
  top: 3px !important;
  left: auto !important;
  right: calc(50% - 22px) !important;   /* the right edge just past the icon's corner; wider counts grow left, inside the item */
  transform: none !important;
  box-sizing: border-box !important;
  min-width: 18px !important;
  max-width: 30px !important;
  width: auto !important;
  height: 18px !important;
  padding: 0 4px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  font-variant-numeric: tabular-nums;
}

/* ---------- Glass, done properly (owner 2026-10-25: "those boxes should look a lot more professional / glass like") ----------
 * Every Home sheet is a lit pane: a face that is brighter at the top and fades down, over the look's own tinted glass,
 * a bright rim, a lit top edge and a deep soft shadow. Same treatment on the top bar, the menu and the Colours sheet. */
html[data-theme="pearl"] {
  --lux-face: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .2) 46%, rgba(255, 255, 255, .1) 100%);
  --lux-rim: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(70, 52, 32, .06);
  --lux-drop: 0 1px 2px rgba(40, 30, 20, .05), 0 28px 56px -30px rgba(70, 52, 32, .28);
}
html[data-theme="pearl"] {
  --lux-edge-light: linear-gradient(155deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .45) 36%, rgba(150, 130, 110, .16) 68%, rgba(255, 255, 255, .75) 100%);
  --lux-topline: rgba(255, 255, 255, 1);
  --lux-spec: rgba(255, 255, 255, .34);
  --lux-inner: rgba(255, 255, 255, .7);
}
html[data-theme="pearl_night"] {
  --lux-edge-light: linear-gradient(155deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .08) 36%, rgba(255, 255, 255, .03) 68%, rgba(255, 255, 255, .16) 100%);
  --lux-topline: rgba(255, 255, 255, .42);
  --lux-spec: rgba(255, 255, 255, .075);
  --lux-inner: rgba(255, 255, 255, .06);
  --lux-face: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .025) 46%, rgba(0, 0, 0, .06) 100%);
  --lux-rim: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .25);
  --lux-drop: 0 1px 2px rgba(0, 0, 0, .25), 0 30px 60px -28px rgba(0, 0, 0, .75);
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(
  body #main-content.nav-model-b-layout > .hp-topnav.hp-nav-maison,
  body #main-content.nav-model-b-layout:has(.hp-nav-rail) > .hp-nav-rail,
  body :is(#role-home-content, #home-content) #hp-summary-row .hp-summary-card,
  body :is(#role-home-content, #home-content) #hp-primary-triad > .hp-triad-slot.hp-softbox,
  body #home-action-box.hp-focus-card,
  body :is(#role-home-content, #home-content) .hp-exec-grid .hp-exec-card,
  .hp-day-card,
  body :is(#role-home-content, #home-content) .hp-ops-support-row > .hp-softbox.hp-dash-card,
  body :is(#role-home-content, #home-content) .hp-culture-row > .hp-softbox,
  .ekm-colours-sheet,
  #ekm-active-alerts.ekm-active-alerts--visible
) {
  /* engineered glass: a hairline edge that catches the light (bright at the top left, fading round the sides), a light
     line along the top edge, a soft specular bloom in the top corner, the lit face, then the look's tinted glass */
  border: 1px solid transparent !important;
  background:
    linear-gradient(90deg, transparent 6%, var(--lux-topline) 50%, transparent 94%) top center / 100% 1px no-repeat padding-box,
    radial-gradient(140% 80% at 0% 0%, var(--lux-spec), transparent 58%) padding-box,
    var(--lux-face) padding-box,
    linear-gradient(var(--lux-glass), var(--lux-glass)) padding-box,
    var(--lux-edge-light) border-box !important;
  background-color: var(--lux-glass) !important;
  box-shadow: inset 0 1px 0 var(--lux-inner), var(--lux-drop) !important;
  -webkit-backdrop-filter: blur(34px) saturate(185%) !important;   /* the glassier fill keeps its text calm with more frost (Bugbot) */
  backdrop-filter: blur(34px) saturate(185%) !important;
  transition: box-shadow .35s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.34, 1.56, .64, 1) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(#hp-summary-row .hp-summary-card[role="button"], .hp-exec-grid .hp-exec-card, #hp-primary-triad > .hp-triad-slot.hp-softbox, .hp-ops-support-row > .hp-softbox.hp-dash-card, .hp-culture-row > .hp-softbox):hover {
  transform: translateY(-3px) !important;
  box-shadow: inset 0 1px 0 var(--lux-inner), 0 2px 4px rgba(0, 0, 0, .07), 0 40px 70px -30px rgba(30, 24, 18, .45) !important;
}
@media (prefers-reduced-motion: reduce) {
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(#hp-summary-row .hp-summary-card, .hp-exec-grid .hp-exec-card, #hp-primary-triad > .hp-triad-slot, .hp-ops-support-row > .hp-softbox, .hp-culture-row > .hp-softbox):hover { transform: none !important; }
}

/* ---------- Top bar: the sections share the well at equal widths (owner: evenly spread, equal spacing) ---------- */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.hp-maison-left-utils > .hp-nav-inbox-btn, .hp-navpill > .tab-btn) { padding-left: 10px !important; padding-right: 10px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-nav-maison .hp-topnav-utils { gap: 8px; }

/* ---------- Colours sheet, as the approved Home Layout ---------- */
.ekm-colours-looks { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
.ekm-colours-looks button {
  display: flex !important; flex-direction: column; align-items: stretch !important; gap: 6px; padding: 6px !important;
  border: 0 !important; border-radius: 12px !important; background: var(--lux-well, rgba(127, 127, 127, .1)) !important;
  font-size: 12.5px; font-weight: 600; color: var(--c-ink); text-align: left; box-shadow: none !important;
}
.ekm-colours-looks button > span:last-child { padding: 0 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ekm-colours-looks button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--c-ink) !important; }
.ekm-colours-looks .ekm-colours-sw { position: relative; display: block; height: 38px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .25); }
.ekm-colours-looks .ekm-colours-sw i { position: absolute; top: 0; right: 0; bottom: 0; width: 7px; }
.ekm-colours-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--lux-hair, var(--c-rule)); }
.ekm-colours-picks label { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 4px; font-size: 12px; font-weight: 600; color: var(--c-muted); }
.ekm-colours-picks input[type="color"] { width: 100%; height: 36px; padding: 2px; border: 0 !important; border-radius: 8px; background: var(--lux-well, rgba(127, 127, 127, .1)) !important; cursor: pointer; }
.ekm-colours-ownnote { margin: 10px 0 0; }
.ekm-colours-problems { margin: 10px 0 0; }
.ekm-colours-edit-actions { margin-top: 10px; }
.ekm-colours-fins { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px; }
.ekm-colours-fins button { min-height: 0 !important; padding: 6px !important; border: 0 !important; border-radius: 12px !important; background: var(--lux-well, rgba(127, 127, 127, .1)) !important; box-shadow: none !important; }
.ekm-colours-fins button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--c-ink) !important; }
.ekm-colours-fins .ekm-colours-fin {
  position: relative; overflow: hidden; display: grid !important; place-items: center; height: 34px !important; border-radius: 10px !important;
  font-size: 12.5px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .18), 0 10px 22px -12px rgba(40, 30, 20, .5) !important;
}
.ekm-colours-fins .ekm-colours-fin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 62%); transform: translateX(-120%); transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.ekm-colours-fins button:hover .ekm-colours-fin::after { transform: translateX(120%); }
.ekm-colours-fin[data-fin="ink"] { background: linear-gradient(180deg, #3A3530 0%, #1A1511 55%, #2A2420 100%) !important; color: #FBF7F0; }
html[data-theme="pearl_night"] .ekm-colours-fin[data-fin="ink"] { background: linear-gradient(180deg, #FFFFFF 0%, #EDEDEC 55%, #D9D9D7 100%) !important; color: #0B0B0C; }
.ekm-colours-fin[data-fin="polished_chrome"] { background: linear-gradient(180deg, #FBFCFD 0%, #E3E6EB 42%, #C3C8D0 54%, #DDE1E7 78%, #F2F4F7 100%) !important; color: #1B1E24; }
.ekm-colours-fin[data-fin="deep_ink"] { background: linear-gradient(180deg, #4A5F8C 0%, #22345C 44%, #14213F 56%, #1D2E52 82%, #2C4170 100%) !important; color: #F3F6FC; }
.ekm-colours-fin[data-fin="champagne_metal"] { background: linear-gradient(180deg, #F7E7C6 0%, #E0C38E 42%, #BF9A5C 56%, #D8B979 80%, #F0DDB5 100%) !important; color: #2A1D0C; }
@media (max-width: 420px) { .ekm-colours-fins { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (prefers-reduced-motion: reduce) { .ekm-colours-fins .ekm-colours-fin::after { display: none; } }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #ekm-active-alerts.ekm-active-alerts--visible :is(.ekm-active-alert, .ekm-active-alert-inner) { background: transparent !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #ekm-active-alerts.ekm-active-alerts--visible { border-radius: 16px !important; overflow: hidden; }
/* the two cards in a row always match in height (symmetry) */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #hp-primary-triad { align-items: stretch !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) #hp-primary-triad > .hp-triad-slot.hp-softbox:not([hidden]) { align-self: stretch !important; height: auto !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-ia-group { margin-top: 0 !important; margin-bottom: 36px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-culture-row { align-items: stretch !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) .hp-culture-row > .hp-softbox { align-self: stretch !important; height: auto !important; }

/* ---------- Top bar as ONE row (owner 2026-10-25, on the preview: "this isn't good") ----------
 * The wordmark at the left; every section plus Link and Calendar in one continuous well at even shares (no divider
 * bars); then the tools as plain icons (no boxes, 44px targets); then the person. The utility group is flattened so its
 * pieces can join the row. Below 1180px the sections take a full-width second line; nothing overflows at any width. */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-topnav-utils { display: contents !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-lockup.hp-maison-monogram { order: 0 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.ekm-meet-link-presence, .hp-nav-calendar-btn) { order: 2 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-search-btn { order: 3 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-arrange-btn { order: 4 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-colours-btn { order: 5 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-mode-btn { order: 6 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-bell-btn { order: 7 !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-nav-profile-btn { order: 8 !important; margin-left: 6px; flex: none; }
/* Link and Calendar are sections in the same well */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-meet-link-presence { position: relative; display: flex; flex: 1 1 0; min-width: max-content; height: 46px; margin: 0; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.ekm-meet-link-presence > .ekm-meet-link-presence-pill, .hp-nav-calendar-btn) {
  display: inline-flex !important; align-items: center; justify-content: center;
  flex: 1 1 0; min-width: max-content; height: 46px !important; margin: 0 !important; padding: 0 10px !important;
  border: 0 !important; border-radius: 0 !important; background: var(--lux-well) !important; box-shadow: none !important;
  font-family: var(--font-ui); font-size: 14px !important; font-weight: 500; letter-spacing: 0 !important; text-transform: none !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-maison-right .hp-nav-inbox-btn.hp-nav-calendar-btn { border-radius: 0 14px 14px 0 !important; padding-right: 16px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-nav-calendar-btn svg { display: none !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-nav-calendar-btn .hp-nav-calendar-label { display: inline !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-maison-right .hp-navpill > .tab-btn:last-child { border-radius: 0 !important; padding-right: 10px !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.hp-maison-left-utils, .hp-topnav-utils, .hp-navpill, .ekm-meet-link-presence)::before,
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.hp-maison-left-utils, .hp-topnav-utils, .hp-navpill, .ekm-meet-link-presence)::after { display: none !important; }
/* the tools: plain icons, 44px, a soft well only on hover */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.ekm-search-btn, .ekm-arrange-btn, .ekm-colours-btn, .ekm-mode-btn, .ekm-bell-btn) {
  flex: none; width: 44px !important; min-width: 44px !important; height: 44px !important; padding: 0 !important; justify-content: center !important;
  border: 0 !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important; color: var(--lux-ink) !important;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-search-btn { margin-left: 12px; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.ekm-search-btn, .ekm-arrange-btn, .ekm-colours-btn, .ekm-mode-btn, .ekm-bell-btn):is(:hover, [aria-expanded="true"], [aria-pressed="true"]) { background: var(--lux-well) !important; }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison :is(.ekm-search-label, .ekm-search-btn kbd, .ekm-arrange-label) { display: none !important; }
/* one count per item: a small ink square beside the word, never over it */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-nav-inbox-btn #msg-nav-dot:not([style*="none"]) {
  position: static !important; display: inline-grid !important; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px;
  border-radius: 6px !important; transform: none !important; font-size: 10.5px; line-height: 18px;
}
@media (max-width: 1180px) {
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-lockup.hp-maison-monogram { order: -7 !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-search-btn { order: -6 !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-arrange-btn { order: -5 !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-colours-btn { order: -4 !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-mode-btn { order: -3 !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-bell-btn { order: -2 !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-nav-profile-btn { order: -1 !important; }
  html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-search-btn { margin-left: auto; }
}

/* Alert strips: no pills or boxes (owner rule; coordinator 2026-10-26). The tag is a small-caps label in the accent and the
   actions are text links with 44px targets. */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #ekm-active-alerts .ekm-active-alert-badge {
  display: inline; padding: 0 !important; margin-right: 8px; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; color: var(--c-accent, currentColor) !important;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #ekm-active-alerts .ekm-active-alert-btn.ekm-active-alert-btn.ekm-active-alert-btn { /* outranks the finish rule */
  min-height: 44px; padding: 0 6px !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; filter: none !important;
  color: var(--c-ink, currentColor) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) body #ekm-active-alerts .ekm-active-alert-btn.ekm-active-alert-btn.ekm-active-alert-btn:hover { text-decoration-thickness: 2px; }

/* behind the Colors sheet: the page under the top bar is softly set aside (the bar itself stays clear) */
.ekm-colours-scrim {
  position: fixed; z-index: 259; left: 0; right: 0; bottom: 0; top: 0;
  background: rgba(10, 12, 18, .18);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
html[data-dark] .ekm-colours-scrim { background: rgba(0, 0, 0, .32); }
@media (prefers-reduced-transparency: reduce) { .ekm-colours-scrim { -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* while a draft of "Your own" is previewed on the page, nothing is in the way of seeing it */
.ekm-colours-scrim.is-previewing, html[data-dark] .ekm-colours-scrim.is-previewing { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* "Use these colors" while the draft can't be used: plainly off (the line above it says why) */
html .ekm-colours-sheet .ekm-colours-use:disabled { opacity: .38 !important; filter: grayscale(1); cursor: not-allowed; box-shadow: none !important; }
html .ekm-colours-sheet .ekm-colours-use:disabled::after { display: none; }

/* top-bar counts are plain numerals, never pills (coordinator 2026-10-26): the Inbox number sits after the word, the
   Bell number at the icon's shoulder, both in the accent */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .hp-nav-inbox-btn #msg-nav-dot.nav-unread-badge:not([style*="none"]),
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-bell-btn .ekm-bell-count.ekm-bell-count {
  min-width: 0 !important; height: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; color: var(--c-accent, var(--lux-ink)) !important;
  font-size: 11.5px !important; font-weight: 700 !important; line-height: 1 !important; font-variant-numeric: tabular-nums;
}
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .hp-topnav.hp-nav-maison .ekm-bell-btn .ekm-bell-count.ekm-bell-count { top: 6px; right: 2px; }

/* ── Black Lacquer (owner-approved 2026-11-13, lookbook round 5): piano-black lacquer, gold / silver / rose gold ──────────
 * Colours, light and finish only: every rule sets the portal's own glass tokens (--lux-*, --k-*) or colours an element that
 * is already there; nothing moves or changes size. The accent comes from the look's tokens (index.html PEARL_LOOKS), so a
 * button finish someone picks still wins. The name takes the look's metal unless the person chose their own name colour.
 * tests/black-lacquer-looks-browser.test.mjs */
html[data-theme="pearl_night"][data-pearl-look^="lacquer"] {
  --lux-glass: rgba(22, 22, 25, .5) !important;
  --lux-glass-strong: rgba(30, 30, 34, .78) !important;
  --lux-edge: rgba(205, 178, 122, .22) !important;
  --lux-hair: rgba(205, 178, 122, .12) !important;
  --lux-topline: rgba(236, 214, 170, .55) !important;
  --lux-spec: rgba(255, 244, 222, .07) !important;
  --lux-inner: rgba(255, 244, 222, .08) !important;
  --lux-face: linear-gradient(180deg, rgba(255, 246, 228, .06) 0%, rgba(255, 255, 255, .015) 46%, rgba(0, 0, 0, .14) 100%) !important;
  --lux-edge-light: linear-gradient(160deg, rgba(236, 214, 170, .55) 0%, rgba(205, 178, 122, .16) 35%, rgba(205, 178, 122, .08) 70%, rgba(205, 178, 122, .22) 100%) !important;
  --lux-drop: 0 1px 2px rgba(0, 0, 0, .4), 0 34px 70px -30px rgba(0, 0, 0, .95) !important;
  --lux-shadow: inset 0 1px 0 rgba(255, 244, 222, .14), 0 34px 70px -30px rgba(0, 0, 0, .95) !important;
  --lux-ink: #F3EDE2 !important;
  --lux-muted: #B9B0A2 !important;
  --lux-well: rgba(255, 246, 228, .05) !important;
  --lux-on-ink: #141210 !important;
  --lux-champagne: #D9BE85 !important;
  --lacquer-metal: #D9BE85;
  --lacquer-metal-line: rgba(205, 178, 122, .55);
  --lacquer-name: linear-gradient(180deg, #FFF8EA 0%, #EBD9B2 40%, #B8975A 56%, #E9D6AE 100%);
  --lacquer-name-glow: rgba(205, 178, 122, .22);
  --lacquer-name-solid: #E6D3AA;
  --k-soft-sky: linear-gradient(180deg, rgba(255, 246, 228, .035), rgba(0, 0, 0, .1)) !important;
  --k-soft-fill: rgba(22, 22, 25, .5) !important;
  --k-soft-fill-hover: rgba(30, 30, 34, .6) !important;
  --k-soft-edge: rgba(205, 178, 122, .2) !important;
  --k-soft-shadow: inset 0 1px 0 rgba(255, 244, 222, .1), 0 34px 70px -30px rgba(0, 0, 0, .95) !important;
  --k-rule: rgba(205, 178, 122, .16) !important;
}
html[data-theme="pearl_night"][data-pearl-look="lacquer_silver"] {
  --lux-edge: rgba(200, 210, 222, .2) !important;
  --lux-hair: rgba(200, 210, 222, .11) !important;
  --lux-topline: rgba(235, 240, 246, .55) !important;
  --lux-edge-light: linear-gradient(160deg, rgba(235, 240, 246, .55) 0%, rgba(200, 210, 222, .14) 35%, rgba(200, 210, 222, .07) 70%, rgba(200, 210, 222, .2) 100%) !important;
  --lux-champagne: #D6DDE6 !important;
  --k-soft-edge: rgba(200, 210, 222, .18) !important;
  --k-rule: rgba(200, 210, 222, .14) !important;
  --lacquer-metal: #D6DDE6;
  --lacquer-metal-line: rgba(214, 221, 230, .55);
  --lacquer-name: linear-gradient(180deg, #FFFFFF 0%, #E3E8EE 42%, #9DA7B3 56%, #E9EDF2 100%);
  --lacquer-name-glow: rgba(200, 210, 222, .18);
  --lacquer-name-solid: #E3E8EE;
}
html[data-theme="pearl_night"][data-pearl-look="lacquer_rose"] {
  --lux-edge: rgba(222, 160, 136, .2) !important;
  --lux-hair: rgba(222, 160, 136, .11) !important;
  --lux-topline: rgba(246, 206, 190, .55) !important;
  --lux-edge-light: linear-gradient(160deg, rgba(246, 206, 190, .55) 0%, rgba(222, 160, 136, .15) 35%, rgba(222, 160, 136, .07) 70%, rgba(222, 160, 136, .2) 100%) !important;
  --lux-champagne: #EBB8A3 !important;
  --k-soft-edge: rgba(222, 160, 136, .18) !important;
  --k-rule: rgba(222, 160, 136, .14) !important;
  --lacquer-metal: #EBB8A3;
  --lacquer-metal-line: rgba(235, 184, 163, .55);
  --lacquer-name: linear-gradient(180deg, #FFF3EE 0%, #F2CDBF 42%, #C3836C 56%, #F1C2AF 100%);
  --lacquer-name-glow: rgba(222, 160, 136, .2);
  --lacquer-name-solid: #F2CDBF;
}
/* the lacquer: a soft ceiling light, one faint horizon reflection, a warm glow low on the right */
html[data-theme="pearl_night"][data-pearl-look^="lacquer"] body::before {
  background:
    radial-gradient(60vw 42vh at 55% -8%, rgba(255, 244, 222, .09), transparent 70%),
    linear-gradient(180deg, transparent 56%, rgba(255, 255, 255, .022) 57%, transparent 72%),
    radial-gradient(50vw 50vh at 100% 100%, color-mix(in srgb, var(--lacquer-metal) 7%, transparent), transparent 70%),
    linear-gradient(180deg, #19181B 0%, #0D0D0F 45%, #050506 100%) !important;
  background-repeat: no-repeat !important;
}
/* the name in the look's metal (the greeting, date and clock keep their places and sizes); a personal name colour wins */
html[data-theme="pearl_night"][data-pearl-look^="lacquer"]:not([data-portal-name-custom]) body.hp-active .hp-awareness-row .hp-hero-name {
  background: var(--lacquer-name) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: var(--lacquer-name-solid) !important;   /* the real, readable metal colour (and what shows where text clipping isn't supported) */
  -webkit-text-fill-color: transparent;          /* the polished gradient is painted over it */
  text-shadow: none !important;
  filter: drop-shadow(0 2px 18px var(--lacquer-name-glow));
}
html[data-theme="pearl_night"][data-pearl-look^="lacquer"]:not([data-portal-name-custom]) body.hp-active .hp-awareness-row .hp-hero-name * { -webkit-text-fill-color: transparent; }
/* the open tab and the open menu item: a fine metal underline instead of grey */
html[data-theme="pearl_night"][data-pearl-look^="lacquer"] .hp-topnav.hp-nav-maison .hp-navpill > .tab-btn.active,
html[data-theme="pearl_night"][data-pearl-look^="lacquer"] .hp-nav-rail .hp-nav-rail-item.active {
  background: linear-gradient(180deg, rgba(255, 246, 228, .1), rgba(255, 246, 228, .04)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 222, .18), inset 0 -1px 0 var(--lacquer-metal-line), 0 6px 16px -8px rgba(0, 0, 0, .8) !important;
}
html[data-theme="pearl_night"][data-pearl-look^="lacquer"] .hp-nav-rail .hp-nav-rail-item.active .hp-nav-rail-icon { color: var(--lacquer-metal) !important; }

/* ── Finishing touches (owner 2026-11-16: "build the black name and oil slick next"; lookbook round 5) ──────────────────────
 * Chosen in the Color Studio and saved per person (index.html ekmSaveAppearanceExtras → html[data-name-finish] /
 * html[data-box-style]). Paint only, on any look: nothing moves or changes size. */

/* Black Chrome name: polished black lettering with a bright chrome highlight. It is the person's own choice, so it wins over a
   look's metal name and a name colour (picking a name colour turns it off: index.html setUserNameColor). */
html[data-name-finish="black_chrome"][data-name-finish][data-theme]:not([data-name-finish=""]) body.hp-active .hp-awareness-row .hp-hero-name {
  background: linear-gradient(180deg, #D4D4DA 0%, #5A5A62 16%, #141416 40%, #000 49%, #4A4A52 51%, #121214 62%, #0A0A0C 82%, #6A6A72 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: #141416 !important;                     /* the solid black shown where text clipping isn't supported */
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none !important;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7)) drop-shadow(0 6px 14px rgba(0, 0, 0, .18)) !important;
}
html[data-name-finish="black_chrome"][data-name-finish][data-theme]:not([data-name-finish=""]) body.hp-active .hp-awareness-row .hp-hero-name * { -webkit-text-fill-color: transparent; }
/* on a dark look: gloss black lit from behind by a soft white halo (owner 2026-11-16 chose "B: Gloss black + halo" after "that
   black name on the dark looks really bad") */
html[data-name-finish="black_chrome"][data-name-finish][data-theme][data-dark]:not([data-name-finish=""]) body.hp-active .hp-awareness-row .hp-hero-name {
  background: linear-gradient(180deg, #4A4A52 0%, #121214 40%, #000 52%, #2A2A30 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: #2A2A30 !important;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .55)) drop-shadow(0 0 34px rgba(255, 255, 255, .3)) !important;
}

/* Oil Slick boxes: an iridescent rim round each Home box and a faint glow of the same film. It is drawn in the person's own
   box color and accent (index.html ekmBoxColorsPaint: --box-accent, --box-shade-*); with the standard boxes it is the
   classic oil-slick film. The rim is a masked layer over the box's own 1px edge, so no box moves or changes size. */
html[data-box-style="oil_slick"] {
  --slick-1: color-mix(in srgb, var(--box-accent, #86C4BA) 82%, #fff);
  --slick-2: color-mix(in srgb, var(--box-shade-2, #CC9CC2) 92%, #fff);
  --slick-3: color-mix(in srgb, var(--box-accent, #D2B985) 50%, #fff);
  --slick-4: color-mix(in srgb, var(--box-shade-3, #95A6DC) 88%, #fff);
  --slick-film: conic-gradient(from 210deg, var(--slick-1), var(--slick-2), var(--slick-3), var(--slick-4), var(--slick-1));
}
html[data-box-style="oil_slick"]:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(
  #hp-summary-row .hp-summary-card,
  #hp-primary-triad > .hp-triad-slot.hp-softbox,
  .hp-exec-grid .hp-exec-card,
  .hp-ops-support-row > .hp-softbox.hp-dash-card,
  .hp-culture-row > .hp-softbox,
  #home-your-day .hp-day-card.k-sheet
) {
  position: relative;   /* every one of these is already positioned or has no positioned children (tests/oil-slick-name-finish-browser) */
  box-shadow: var(--k-soft-shadow), 0 0 0 .5px color-mix(in srgb, var(--slick-1) 40%, transparent), 0 0 32px -8px color-mix(in srgb, var(--slick-2) 60%, transparent) !important;
}
html[data-box-style="oil_slick"]:is([data-theme="pearl"], [data-theme="pearl_night"]) body :is(#role-home-content, #home-content) :is(
  #hp-summary-row .hp-summary-card,
  #hp-primary-triad > .hp-triad-slot.hp-softbox,
  .hp-exec-grid .hp-exec-card,
  .hp-ops-support-row > .hp-softbox.hp-dash-card,
  .hp-culture-row > .hp-softbox,
  #home-your-day .hp-day-card.k-sheet
)::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--slick-film);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  opacity: 1;
}
/* the top bar and the menu rail keep their own glass and take the film's soft glow; the menu rail also takes the rim, inside its
   edge (it clips its own overflow). The film is never set as their glass edge: their half-clear glass would show it across
   the whole face. */
html[data-box-style="oil_slick"]:is([data-theme="pearl"], [data-theme="pearl_night"]) :is(
  body #main-content.nav-model-b-layout > .hp-topnav.hp-nav-maison,
  body #main-content.nav-model-b-layout:has(.hp-nav-rail) > .hp-nav-rail
) {
  --lux-drop: 0 0 0 1px color-mix(in srgb, var(--slick-4) 14%, transparent), 0 0 26px -10px color-mix(in srgb, var(--slick-2) 45%, transparent), 0 30px 60px -28px rgba(0, 0, 0, .55) !important;
}
html[data-box-style="oil_slick"]:is([data-theme="pearl"], [data-theme="pearl_night"]) body #main-content.nav-model-b-layout:has(.hp-nav-rail) > .hp-nav-rail::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--slick-film);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  opacity: 1;
}
