/*
 * Hyrer components shared across the app: type, controls, surfaces and states.
 * Reads the tokens in hyrer-tokens.css. Loaded last in the app layout.
 */

/* ------------------------------------------------------------------ */
/* 1. Type                                                             */
/* ------------------------------------------------------------------ */

/* The older --c-* colour names follow Hyrer's tokens in both themes. The compiled legacy stylesheet still
   carries the old olive dark palette under [data-theme="dark"] .z-crm-app, which out-ranked the light-only
   bridge and tinted dark-mode cards green. */
html body:is(.z-crm-app, .z-crm-auth):not(#\#) {
  --c-paper: var(--h-paper-rgb);
  --c-panel: var(--h-panel-rgb);
  --c-panel-2: var(--h-panel-2-rgb);
  --c-ink: var(--h-ink-rgb);
  --c-muted: var(--h-ink-2-rgb);
  --c-subtle: var(--h-subtle-rgb);
  --c-line: var(--h-line-rgb);
  --c-line-strong: var(--h-line-strong-rgb);
  --c-hover: var(--h-hover-rgb);
  --c-brand: var(--h-ink-rgb);
  --c-accent-soft: var(--h-selected-rgb);
  --c-danger: var(--h-danger-rgb);
}

html body.z-crm-app,
html body.z-crm-auth,
html body.hyrer-public {
  font-family: var(--h-font);
  font-feature-settings: "calt" 1, "liga" 1;
  /* Equal-width figures everywhere, so money, hours and dates line up in columns. */
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
html body.z-crm-app :is(button, input, select, textarea, optgroup),
html body.z-crm-auth :is(button, input, select, textarea, optgroup),
html body.hyrer-public :is(button, input, select, textarea, optgroup) {
  font-family: inherit;
}

/* Headings: one weight, tighter tracking, no decoration */
html body.z-crm-app #main-content h1:is(.z-page-header__title, .hs-head__title, :not([class])):not(#\#):not(#\#),
html body.z-crm-app #main-content .hv-record-head h1:not(#\#):not(#\#),
html body.z-crm-app #main-content .hx-em__name:not(#\#):not(#\#) {
  font-family: var(--h-font-display) !important;
  font-size: var(--h-fs-title) !important;
  font-weight: var(--h-weight-display) !important;
  letter-spacing: var(--h-track-title) !important;
  line-height: 36px !important;
}
/* One page header: the title starts at the header's top on a 36px line, and the actions (32px buttons) sit centred
   on that line whether or not a line of facts follows the title. Competitor jobs keeps its header as it is. */
html body.z-crm-app #main-content .z-page-header:not(#\#):not(#\#) {
  padding: var(--h-page-header-top, 0) 0 0 !important;
  border: 0 !important;
}
/* Competitor jobs, its drawer and its dialogs keep the sizes they were finished at: buttons as tall as their row,
   42px fields and a 2px header inset. */
html body.z-crm-app #main-content .hs42-competitors { --h-page-header-top: 2px; }
html body :is(.hs42-competitors, .hx-ui-dialog > section[aria-labelledby^="competitor-"]) { --h-btn-height: auto; --h-field-height: 42px; }
html body.z-crm-app #main-content .z-page-header__title:not(#\#):not(#\#) {
  margin: 0;
  color: var(--h-ink);
}
@media (min-width: 640px) {
  html body.z-crm-app #main-content .z-page-header:not(.hs42-competitors *):not(#\#):not(#\#) {
    align-items: flex-start !important;
  }
  html body.z-crm-app #main-content .z-page-header__actions:not(.hs42-competitors *):not(#\#):not(#\#) {
    align-self: flex-start;
    min-height: 36px;
    align-items: center;
  }
}
@media (pointer: fine) and (min-width: 641px) {
  html body .z-page-header__actions :where(.z-btn, .z-btn-primary, .z-btn-ghost, .z-btn-secondary, .z-btn-sm, .hv-button, .hx-lf-btn):where(:not(.hv-button--icon, .z-icon-button)):not(#\#):not(#\#) {
    height: var(--h-ctl-sm) !important;
    min-height: var(--h-ctl-sm) !important;
    padding-inline: 12px !important;
  }
}
/* The line under a title (facts, the client and place on a record) is 14px ink-2, a little apart from it. */
/* One context line above a page title (a breadcrumb, a Back link, a short eyebrow): 20 tall, 13/20 subtle, starting
   where a plain page's title starts and 12 above the title, so every page with context has its title at one height
   and every page without has it at the other. A Back link keeps a full-size target through a pad. */
html body.z-crm-app #main-content :is(.hs-breadcrumb, .hif-breadcrumb, .hx-temp-breadcrumb, .ha-kicker, .hx-editor-back):not(#\#):not(#\#) {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  height: 20px;
  min-height: 20px !important;
  margin: 0 0 12px !important;
  padding: 0;
  color: var(--h-subtle);
  font-size: var(--h-fs-13) !important;
  font-weight: 500;
  line-height: 20px !important;
}
html body.z-crm-app #main-content .hx-editor-back:not(#\#):not(#\#) { position: relative; color: var(--h-ink-2); transition: color var(--h-quick) var(--h-ease); }
html body.z-crm-app #main-content .hx-editor-back:not(#\#):not(#\#):hover { color: var(--h-accent); }
html body.z-crm-app #main-content .hx-editor-back::after { content: ""; position: absolute; inset: -8px -6px; }
html body.z-crm-app #main-content :is(.hx-editor-header, .ha-workspace > .ha-header):not(#\#):not(#\#) { padding-top: 0 !important; }
html body.z-crm-app #main-content :is(.z-page-header__meta, .z-page-header__body > p, .hv-record-head > div:not(.hv-record-head__actions) > p, .hjp-head__sub):not(#\#):not(#\#) {
  margin-top: 6px !important;
  color: var(--h-ink-2) !important;
  font-size: var(--h-fs-14) !important;
  line-height: 20px !important;
}
@media (max-width: 640px) {
  html body.z-crm-app #main-content h1:is(.z-page-header__title, :not([class])):not(#\#):not(#\#),
  html body.z-crm-app #main-content .hv-record-head h1:not(#\#):not(#\#) {
    font-size: var(--h-fs-28) !important;
  }
}
/* A person's or company's name is set like a page title. */
html body.z-crm-app #main-content :is(.hx-name-row, .hv-record-head) h1:not(#\#):not(#\#):not(#\#) {
  letter-spacing: var(--h-track-title) !important;
}
/* Words inside a title (the label beside a count) take the title's font; the count stays plain. */
html body.z-crm-app #main-content h1:is(.z-page-header__title, :not([class])) > span:not(.hv-title-count):not(#\#):not(#\#),
html body.z-crm-app #main-content .hv-record-head h1 > span:not(.hv-title-count):not(#\#):not(#\#) {
  font-family: inherit !important;
  letter-spacing: inherit !important;
}
/* Page titles end in a violet full stop, like the logo's. Page titles only: never record names, panels or dialogs. */
html body.z-crm-app #main-content :is(h1.z-page-header__title[data-page-title], h1 > .hx-page-title-label, .hwb-head__copy > h1)::after {
  content: ".";
  display: inline-block;
  color: var(--h-accent);
}

/* Money, rates, hours and counts line up in columns */
html body.z-crm-app :is(table, td, th, .tabular-nums, [class*="money"], [class*="fee"], [class*="rate"],
  [class*="count"], [class*="total"], [class*="hours"], [class*="margin"]) {
  font-variant-numeric: tabular-nums;
}
/* Headline figures and titles stand alone, so they use the font's natural digits. (Cal Sans's equal-width
   figures also widen its space, which opened a gap in "Welcome back" on the sign-in pages.) */
html body:is(.z-crm-app, .z-crm-auth) :is(.z-panel-count, .hwb-fig__value, .hxa-stats dd, .hx-em__stats strong, .hr-metrics strong,
  [class*="kpi"] strong, [class*="metric"] strong, [class*="stat"] > strong, h1, h2):not(#\#):not(#\#) {
  font-variant-numeric: lining-nums proportional-nums !important;
}

/* ------------------------------------------------------------------ */
/* 2. Controls                                                         */
/* ------------------------------------------------------------------ */

/* Shared button states. Legacy dimensions remain with their component. */
html body :is(.hv-button, .z-btn, .z-btn-primary, .z-btn-secondary, .z-btn-ghost, .z-btn-danger,
  .z-btn-sm, .hx-lf-btn, .hx-intel__btn, .hi-action, .hx-create-trigger,
  .hv-quicklog-outcomes > *, .z-hero-pills > *):not(#\#):not(#\#) {
  border-radius: var(--h-r-ctl) !important;
  transition: background-color var(--h-quick) var(--h-ease), border-color var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease);
}
html body :is(.hv-button--primary, .z-btn-primary, .hx-create-trigger):not(#\#):not(#\#) {
  background: var(--h-accent) !important;
  border-color: var(--h-accent) !important;
  color: var(--h-on-accent) !important;
  /* Pointed at, the shadow deepens (--h-btn-shadow is set by hyrer-motion.css) */
  box-shadow: var(--h-btn-shadow, var(--h-shadow-primary)) !important;
  background-image: none !important;
  filter: none;
}
/* UX audit UI-6: in dark, a greyed primary button was the violet at half opacity, so its words were hard to read.
   It now has a quiet solid fill and lighter words, still plainly not pressable. */
html[data-theme="dark"] body :is(.hv-button--primary, .z-btn-primary):disabled:not(#\#):not(#\#) {
  opacity: 1 !important;
  background: rgb(var(--h-accent-rgb) / .26) !important;
  border-color: transparent !important;
  color: rgb(255 255 255 / .74) !important;
  box-shadow: none !important;
}
html body :is(.hv-button--primary, .z-btn-primary, .hx-create-trigger):not(#\#):not(#\#):hover:not(:disabled) {
  background: var(--h-accent-hover) !important;
  border-color: var(--h-accent-hover) !important;
}
/* Supporting actions stay quiet: white, a firm hairline edge and a whisper of depth. Pointing at them
   darkens the edge and fills them faintly; violet stays for the one primary action on the screen. */
html body :is(.z-btn-ghost, .z-btn-secondary, .hv-button:not(.hv-button--primary)):not(#\#):not(#\#) {
  box-shadow: none !important;
}
html body :is(.z-btn-ghost, .z-btn-secondary, .hv-button:not(.hv-button--primary), .hx-lf-btn):not(.border-0):not(.border-transparent):not(#\#):not(#\#) {
  /* 23 Nov 2026, third pass: a supporting button is white with a fine ring and a whisper of depth. Grey outlines
     read as dated and grey fills read as clutter once a page carried a dozen of them (JP, 20:32: "lots of grey
     buttons all over the place"). Actions inside a list row have no chrome at all until pointed at (below). */
  border-color: transparent !important;
  background-color: var(--h-panel);
  box-shadow: 0 0 0 1px var(--h-btn-edge, rgb(var(--h-ink-rgb) / .09)), 0 1px 2px rgb(var(--h-ink-rgb) / .06) !important;
}
html body :is(.hv-record-table, .z-table) tbody :is(.z-btn-ghost, .z-btn-secondary, .hv-button:not(.hv-button--primary)):not(#\#):not(#\#):not(#\#) {
  background-color: transparent;
  box-shadow: none !important;
}
/* Buttons that carry a tint of their own (the lavender "go" links, job status) keep it and deepen it on hover */
html body :is(.z-btn-ghost, .z-btn-secondary, .hv-button:not(.hv-button--primary), .hx-lf-btn):not([class*="danger"]):not([class*="text-z-red"]):not([class*="text-red-"]):not(.hx-intel__btn, .hjp-status > button):not(#\#):not(#\#):hover:not(:disabled) {
  /* Pointing at a supporting button brings the brand colour in: the quietest lavender, and its ring firms to violet
     (--h-btn-edge, hyrer-motion.css) */
  border-color: transparent !important;
  background-color: var(--h-tint);
  color: var(--h-ink);
}
html body :is(.z-btn-ghost, .z-btn-secondary):is(.border-0, .border-transparent):not([class*="danger"]):not(#\#):not(#\#):hover:not(:disabled) {
  background-color: var(--h-hover);
}
/* Pressing a button is one effect only: the dip and spring back drawn by hyrer-motion.js. */

/* Two button sizes: 36 for a page's and a form's actions, 32 (.z-btn-sm) inside toolbars, tables and cards.
   Every label is 13/600. With a mouse the height is fixed so a row of buttons lines up; on touch screens buttons
   keep their larger touch size. */
html body :is(.z-btn, .z-btn-primary, .z-btn-ghost, .z-btn-secondary, .z-btn-soft, .z-btn-danger, .z-btn-sm, .hv-button, .hx-lf-btn):not(.hs42-competitors .hx-lf-btn):not(#\#):not(#\#) {
  font-size: var(--h-fs-13) !important;
  font-weight: var(--h-weight-control) !important;
  letter-spacing: 0 !important;
}
@media (pointer: fine) and (min-width: 641px) {
  html body :where(.z-btn, .z-btn-primary, .z-btn-ghost, .z-btn-secondary, .z-btn-soft, .z-btn-danger, .hv-button, .hx-lf-btn):where(:not(.z-btn-sm, .hv-button--icon, .z-icon-button)):not(#\#):not(#\#) {
    height: var(--h-btn-height, var(--h-ctl-md)) !important;
    min-height: var(--h-ctl-md) !important;
    padding-block: 0 !important;
  }
  /* A list toolbar's own buttons (.hx-lf-btn) keep their 12 inset; every other 36px button has 16. */
  html body :where(.z-btn, .z-btn-primary, .z-btn-ghost, .z-btn-secondary, .z-btn-soft, .z-btn-danger, .hv-button):where(:not(.z-btn-sm, .hv-button--icon, .z-icon-button, .hx-lf-btn)):not(#\#):not(#\#) {
    padding-inline: 16px !important;
  }
  html body :where(.z-btn-sm, .hap-btn, .hv-record-tools .hv-button):where(:not(.hv-button--icon, .hap-btn--icon)):not(#\#):not(#\#) {
    height: var(--h-btn-height, var(--h-ctl-sm)) !important;
    min-height: var(--h-ctl-sm) !important;
    padding-block: 0 !important;
  }
  html body :where(.z-btn-sm, .hap-btn, .hv-record-tools .hv-button):where(:not(.hv-button--icon, .hap-btn--icon, .z-icon-button, .p-0), .hs42-competitors .z-icon-button):not(#\#):not(#\#) {
    padding-inline: 12px !important;
  }
  /* A button in the same row as labelled fields is the fields' height, so the row has one bottom edge: a row of
     fields that ends in its button, the Companies House search, the standard fee and the visit planner's postcodes. */
  html body :is(.flex.flex-wrap.items-end:not(.justify-between):has(.z-input) > :is(.z-btn-primary, .z-btn-secondary, .z-btn-ghost), .ch-search-form > .z-btn-secondary, .htr-perm > .z-btn-primary, .vp2-form__go) {
    --h-btn-height: 40px;
  }  /* A list's toolbar row is one height: its search, drop-downs, supporting buttons and primary are all 36. */
  html body :is(.z-list-toolbar, .hv-record-controls, .hxi-toolbar, .hrp-toolbar, .htk-controls, .hx-desk__tools, .hlf-tools, .hpl-pipeline-filters, .hsc-toolbar, .hcm-bar, .hx-subs__filters, .tsj-toolbar, .hx-temp-toolbar, .hac-toolbar, .hw-toolbar, .wf-list-toolbar) :where(.z-btn, .z-btn-primary, .z-btn-ghost, .z-btn-secondary, .z-btn-sm, .hv-button, .hx-lf-btn):where(:not(.hv-button--icon, .z-icon-button)):not(#\#):not(#\#) {
    height: var(--h-ctl-md) !important;
    min-height: var(--h-ctl-md) !important;
  }
}

/* Icon buttons (close, "⋯", copy) are secondary buttons with an icon: the control radius and the same firm edge.
   The top bar, tables and detail cards keep their quieter borderless ones; a dialog's close is quiet too. */
html body .z-icon-button:not(.z-topbar *, .z-topbar-actions *, .z-table *, .hx-detail-card *):not(#\#):not(#\#) {
  border-color: var(--h-line-strong) !important;
  border-radius: var(--h-r-ctl) !important;
  box-shadow: var(--h-shadow-press) !important;
  transform: none !important;
}
/* The icon-only "…" that opens a row's or a card's menu is plain until pointed at: no ring, no fill. */
html body .z-icon-button[aria-haspopup="menu"]:not(.hs42-competitors *):not(#\#):not(#\#):not(#\#) {
  border-color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--h-ink-2);
}
/* Its wash grows from the centre under the icon (hyrer-motion.css, "Touch"), so the button itself stays clear. */
html body .z-icon-button[aria-haspopup="menu"]:not(.hs42-competitors *):not(#\#):not(#\#):not(#\#):is(:hover, [aria-expanded="true"]) {
  background-color: transparent !important;
  color: var(--h-ink);
}
/* A dialog's or drawer's close is the one quiet 32px ×: no ring until pointed at. */
html body :is(.hx-ui-dialog > section > header, .hv-drawer > header, .hx-tool-head, .hx-tool-dialog) :is(.z-icon-button, .hv-button--icon, .h-close, .hx-tool-close):not(#\#):not(#\#):not(#\#) {
  width: var(--h-close-size, var(--h-ctl-sm)) !important;
  min-width: var(--h-close-size, var(--h-ctl-sm)) !important;
  height: var(--h-close-size, var(--h-ctl-sm)) !important;
  min-height: var(--h-close-size, var(--h-ctl-sm)) !important;
  padding: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--h-ink-2);
}
html body :is(.hx-ui-dialog > section > header, .hv-drawer > header, .hx-tool-head, .hx-tool-dialog) :is(.z-icon-button, .hv-button--icon, .h-close, .hx-tool-close):not(#\#):not(#\#):not(#\#):hover {
  background: transparent !important;
  color: var(--h-ink);
}

/* Focus is always visible and always the same: 2px of full-strength violet, 2px off the control. The second line
   matches the weight of the older stylesheet's ink ring so this one wins everywhere in the app. */
html body :is(a, button, input, select, textarea, [tabindex]):focus-visible,
.hx-shell :is(a, button, summary, [role="button"]):focus-visible {
  outline: 2px solid var(--h-focus);
  outline-offset: 2px;
}

/* States shared by every control: cursors and timing. Written with :where() so they weigh nothing: a component
   that sets its own cursor or transition keeps it, and everything else follows these. */
/* Anything that can be pointed at shows the hand; a card that can be dragged shows the open hand, then the
   closed one while it is held. */
:where(a[href], button:enabled, [role="button"]:not([aria-disabled="true"]), [role="tab"], [role="menuitem"], [role="option"], summary, label[for], select:enabled, input:is([type="checkbox"], [type="radio"]):enabled) { cursor: pointer; }
:where([draggable="true"]) { cursor: grab; }
:where([draggable="true"]):active { cursor: grabbing; }
/* Small controls keep their look but take a larger hit area: an invisible pad 6px round them, as the switch has,
   so every target is at least 32px to the hand (the board card tray, copy buttons, chips and day "+" buttons). */
:where(.hpb-ic, .hpb-adv, .hpb-age, .z-email-copy, .hpl-contact-email > button, .hx-wa, .hco-context__x, .hxp-legend__stage, .hcal-day__add, .htk-snz__btn, .htk-edit) { position: relative; }
:where(.hpb-ic, .hpb-adv, .hpb-age, .z-email-copy, .hpl-contact-email > button, .hx-wa, .hco-context__x, .hxp-legend__stage, .hcal-day__add, .htk-snz__btn, .htk-edit)::after { content: ""; position: absolute; inset: -6px; }
/* What can be pointed at answers on the quick token and the standard curve, never snapping and never with
   transition: all. Only colour, fill, edge, depth and opacity change. */
:where(a, button, summary, label[for], [role="tab"], [role="button"], [role="menuitem"], [role="option"]) {
  transition: color var(--h-quick) var(--h-ease), background-color var(--h-quick) var(--h-ease), border-color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease), opacity var(--h-quick) var(--h-ease);
}

/* View and filter controls: the options sit in one quiet track and the chosen one is marked with a violet wash.
   Every page's switch uses this one definition. */
html body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter,
  .hyrer-ts-filters, .hx-em__tabs, .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hx-lf-owner, .hv-segmented, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices):not(#\#):not(#\#) {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px !important;
  padding: 2px !important;
  border: 0 !important;
  border-radius: var(--h-r-ctl) !important;
  background: var(--h-track) !important;
  box-shadow: none !important;
}
html body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter,
  .hyrer-ts-filters, .hx-em__tabs, .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hx-lf-owner, .hv-segmented, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) > :is(button, a, label, .z-segmented-filter__item):not(#\#):not(#\#) {
  position: relative;
  border: 0 !important;
  border-radius: var(--h-r-sm) !important;
  background: transparent !important;
  color: var(--h-ink-2) !important;
  box-shadow: none !important;
  font-size: var(--h-fs-13) !important;
  font-weight: 500 !important;
  transition: background-color var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease) !important;
}
html body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter,
  .hyrer-ts-filters, .hx-em__tabs, .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hx-lf-owner, .hv-segmented, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) > :is(button, a, label, .z-segmented-filter__item):not(:is(.is-on, .is-active, .active, [aria-selected="true"], [aria-pressed="true"], [aria-current="page"], [aria-current="true"], [data-active="true"], .z-segmented-filter__item--active, :has(> input:checked))):not(#\#):not(#\#):hover {
  color: var(--h-ink) !important;
  background-color: rgb(var(--h-ink-rgb) / .04) !important;
}
html body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter,
  .hyrer-ts-filters, .hx-em__tabs, .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hx-lf-owner, .hv-segmented, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) > :is(.is-on, .is-active, .active, [aria-selected="true"],
  [aria-pressed="true"], [aria-current="page"], [aria-current="true"], [data-active="true"], .z-segmented-filter__item--active, :has(> input:checked)):not(#\#):not(#\#) {
  background: transparent !important;
  color: var(--h-accent) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
/* Choices that became a switch in a form (consent period, API scope, a sales note's kind) keep their own width and height
   instead of stretching to fill the form's column. */
html body :is(.hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices):not(#\#):not(#\#) { align-self: start; justify-self: start; width: fit-content; max-width: 100%; }
/* The chosen option sits on Hyrer violet (JP, 25 November: on the white key over grey it was hard to tell what was
   selected). Its key is a violet wash with a fine violet edge and its label is violet, the way the menu marks the
   page you're on. The key is drawn behind the option so it can glide from the last choice to the next
   (hyrer-motion.js). */
html body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter,
  .hyrer-ts-filters, .hx-em__tabs, .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hx-lf-owner, .hv-segmented, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) > :is(.is-on, .is-active, .active, [aria-selected="true"],
  [aria-pressed="true"], [aria-current="page"], [aria-current="true"], [data-active="true"], .z-segmented-filter__item--active, :has(> input:checked))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgb(var(--h-accent-rgb) / .12) !important;
  box-shadow: inset 0 0 0 1px rgb(var(--h-accent-rgb) / .22);
  pointer-events: none;
}
html[data-theme="dark"] body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter,
  .hyrer-ts-filters, .hx-em__tabs, .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hx-lf-owner, .hv-segmented, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) > :is(.is-on, .is-active, .active, [aria-selected="true"],
  [aria-pressed="true"], [aria-current="page"], [aria-current="true"], [data-active="true"], .z-segmented-filter__item--active, :has(> input:checked))::after {
  background: rgb(var(--h-accent-rgb) / .2) !important;
}
/* A count inside a switch is one quiet figure: 12/500 subtle, violet on the chosen option. */
html body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter, .hyrer-ts-filters, .hx-em__tabs, .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hx-lf-owner, .hv-segmented, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) :is(.z-segmented-filter__count, .placement-filter-count, .hsf-tab__n, .hx-seg__count, .lf54-count):not(#\#):not(#\#) {
  min-width: 0 !important;
  margin-left: 2px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--h-subtle) !important;
  font-size: var(--h-fs-12) !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums;
}
html body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter, .hyrer-ts-filters, .hx-em__tabs, .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hx-lf-owner, .hv-segmented, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) > :is(.is-on, .is-active, .active, [aria-selected="true"], [aria-pressed="true"], [aria-current="page"], [aria-current="true"], [data-active="true"], .z-segmented-filter__item--active, :has(> input:checked)) :is(.z-segmented-filter__count, .placement-filter-count, .hsf-tab__n, .hx-seg__count, .lf54-count):not(#\#):not(#\#) {
  color: var(--h-accent) !important;
}
/* Touch-sized options (44px on phones) keep to the control height when there's a mouse */
@media (hover: hover) and (pointer: fine) {
  html body :is(.z-segmented-filter, .hv-segmented, .hx-seg) > .z-mobile-touch:not(#\#):not(#\#) {
    min-height: 28px !important;
    padding-block: 4px !important;
    line-height: 20px !important;
  }
}
/* Two sizes for every filter and view switch. On its own a switch is 40 tall (36 options in the 2px track); in a
   toolbar row or a page header it is 36 (32 options), the height of the search, drop-downs and buttons beside it.
   Options are 12 either side. On a touch screen the options keep their larger touch size. */
@media (hover: hover) and (pointer: fine) {
  html body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter,
    .hyrer-ts-filters, .hx-em__tabs, .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hx-lf-owner, .hv-segmented, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) > :is(button, a, label, .z-segmented-filter__item):not(#\#):not(#\#):not(#\#) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    line-height: 20px !important;
  }
  html body :is(.z-list-toolbar, .hv-record-controls, .hxi-toolbar, .hrp-toolbar, .htk-controls, .hx-desk__tools, .hlf-tools, .hpl-pipeline-filters, .hsc-toolbar, .hcm-bar, .hx-subs__filters, .tsj-toolbar, .hx-temp-toolbar, .hac-toolbar, .hw-toolbar, .wf-list-toolbar, .z-page-header, .hx-lf-top, .hx-lf-tabsrow, .placement-controls, .hcj3-bar) :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter, .hyrer-ts-filters, .hx-em__tabs, .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hx-lf-owner, .hv-segmented, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) > :is(button, a, label, .z-segmented-filter__item):not(#\#):not(#\#):not(#\#):not(#\#) {
    height: 32px !important;
    min-height: 32px !important;
  }
  html body .hx-lf-owner > select:not(#\#):not(#\#):not(#\#) {
    height: 32px !important;
    min-height: 32px !important;
  }
}
/* The consultant picker in the scope trough is one more option of the trough, not a field dropped into it: no edge
   of its own, the options' inset and line, and the wash they take when pointed at. */
html body .hx-lf-owner select:not(#\#):not(#\#) {
  margin-left: 0;
  padding-left: 12px;
  border-left-color: transparent !important;
  border-radius: var(--h-r-sm) !important;
  line-height: 20px;
  color: var(--h-ink-2);
  transition: background-color var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease);
}
html body .hx-lf-owner select:hover:not(#\#):not(#\#) { background-color: rgb(var(--h-ink-rgb) / .04); color: var(--h-ink); }

/* Where you are: the current section in the rail and the current page in the menu are
   marked in Hyrer violet, so you can always find your place at a glance */
html body #desktop-navigation a:is([aria-current="page"], [aria-current="true"]):not(#\#):not(#\#) {
  border-radius: var(--h-r-ctl) !important;
  background: var(--h-tint) !important;
  color: var(--h-accent) !important;
  font-weight: 600 !important;
}
html body #desktop-navigation a:is([aria-current="page"], [aria-current="true"]) svg:not(#\#):not(#\#) {
  color: var(--h-accent) !important;
}

/* On/off switch: a grey track with a white knob, violet when on */
button.h-switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: var(--h-r-round);
  background: var(--h-line-strong);
  cursor: pointer;
  transition: background-color 180ms var(--h-ease), box-shadow 180ms var(--h-ease);
}
button.h-switch::after {
  content: "";
  position: absolute;
  inset: -11px -2px;
}
.h-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: var(--h-r-round);
  background: #fff;
  box-shadow: var(--h-shadow-thumb);
  transform-origin: 0 50%;
  /* The knob travels with a little spring and lands a touch past; a press stretches it (scale) towards its way */
  transition: transform 240ms var(--h-spring), scale var(--h-quick) var(--h-ease);
}
.h-switch[aria-checked="true"] .h-switch__knob {
  transform: translateX(18px);
}
/* The track is cut into the page (a soft inner shade) and, when on, lit like the primary button.
   Pressing stretches the knob a little before it travels, so the switch answers the finger at once. */
button.h-switch { box-shadow: inset 0 1px 2px rgb(20 22 40 / .14); }
button.h-switch:hover:not(:disabled):not([aria-checked="true"]) { background: rgb(var(--h-subtle-rgb) / .5); }
button.h-switch[aria-checked="true"] { box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), inset 0 -1px 0 rgb(20 10 70 / .22), 0 1px 2px rgb(40 30 120 / .18); }
button.h-switch:active:not(:disabled) .h-switch__knob { scale: 1.25 1; }
button.h-switch[aria-checked="true"] .h-switch__knob { transform-origin: 100% 50%; }
@media (prefers-reduced-motion: reduce) { .h-switch__knob { transition: none; } button.h-switch:active:not(:disabled) .h-switch__knob { scale: none; } }

/* ------------------------------------------------------------------ */
/* 3. Surfaces                                                         */
/* ------------------------------------------------------------------ */

/* Numbers that belong together sit in one summary strip, not a row of identical cards */
html body :is(.hx-em__stats, .hr-metrics):not(#\#):not(#\#) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--h-line) !important;
  border-radius: var(--h-r-panel) !important;
  background: var(--h-panel) !important;
  box-shadow: none !important;
  overflow: hidden;
}
html body :is(.hx-em__stats, .hr-metrics) > *:not(#\#):not(#\#) {
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-left: 1px solid var(--h-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
html body :is(.hx-em__stats, .hr-metrics) > *:first-child:not(#\#):not(#\#) {
  border-left: 0 !important;
}
html body :is(.hx-em__stats, .hr-metrics) > *:not(#\#):not(#\#)::before,
html body :is(.hx-em__stats, .hr-metrics) > *:not(#\#):not(#\#)::after {
  content: none !important;
}
html body :is(.hx-em__stats) strong:not(#\#):not(#\#) {
  display: block;
  margin-top: 4px;
  font-size: var(--h-fs-20) !important;
  font-weight: 600 !important;
  color: var(--h-ink) !important;
}
@media (max-width: 640px) {
  html body :is(.hx-em__stats, .hr-metrics):not(#\#):not(#\#) {
    grid-template-columns: 1fr 1fr !important;
  }
  html body :is(.hx-em__stats, .hr-metrics) > *:not(#\#):not(#\#) {
    border-left: 0 !important;
    border-top: 1px solid var(--h-line) !important;
  }
  html body :is(.hx-em__stats, .hr-metrics) > *:nth-child(even):not(#\#):not(#\#) {
    border-left: 1px solid var(--h-line) !important;
  }
  html body :is(.hx-em__stats, .hr-metrics) > *:nth-child(-n+2):not(#\#):not(#\#) {
    border-top: 0 !important;
  }
}

/* One choice chip, for picking values (filters, a sales stage, a follow-up day) rather than switching a view (that is
   the segmented control). At rest a soft fill with no edge, 32 tall, 13/500 ink-2; pointed at, the quietest violet;
   chosen, the violet wash with a fine violet edge and a violet label, the same as the chosen option of a segmented
   control; unavailable, faded. (The Sales desk calendar's follow-ups, .hx-chip, are events rather than choices and
   are drawn in hyrer-sales-desk.css.) */
html body :is(.hxa-chipbtn:not(.hxa-chipbtn--solid), .hadv-filter, .hx-lf-chip, .hsf-chip, .tmx-chip, .hwl-chip, .hbd-chip, .hadv-chip, .hnt-chip, .hs-stage, .hsn-chip:not(.hsn-interactions > *)):not(#\#):not(#\#) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--h-ctl-sm) !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: var(--h-r-sm) !important;
  background: rgb(var(--h-ink-rgb) / .05) !important;
  box-shadow: none !important;
  color: var(--h-ink-2) !important;
  font-size: var(--h-fs-13) !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background-color var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease);
}
html body :is(.hxa-chipbtn:not(.hxa-chipbtn--solid), .hadv-filter, .hx-lf-chip, .hsf-chip, .tmx-chip, .hwl-chip, .hbd-chip, .hadv-chip, .hnt-chip, .hs-stage, .hsn-chip:not(.hsn-interactions > *)):not(:is(.is-on, .is-active, [aria-pressed="true"], [aria-selected="true"], [aria-checked="true"])):not(:disabled):not(#\#):not(#\#):hover {
  background: var(--h-tint) !important;
  color: var(--h-ink) !important;
}
html body :is(.hxa-chipbtn:not(.hxa-chipbtn--solid), .hadv-filter, .hx-lf-chip, .hsf-chip, .tmx-chip, .hwl-chip, .hbd-chip, .hadv-chip, .hnt-chip, .hs-stage, .hsn-chip:not(.hsn-interactions > *)):is(.is-on, .is-active, [aria-pressed="true"], [aria-selected="true"], [aria-checked="true"]):not(#\#):not(#\#) {
  background: rgb(var(--h-accent-rgb) / .12) !important;
  box-shadow: inset 0 0 0 1px rgb(var(--h-accent-rgb) / .22) !important;
  color: var(--h-accent) !important;
  font-weight: 600 !important;
}
html[data-theme="dark"] body :is(.hxa-chipbtn:not(.hxa-chipbtn--solid), .hadv-filter, .hx-lf-chip, .hsf-chip, .tmx-chip, .hwl-chip, .hbd-chip, .hadv-chip, .hnt-chip, .hs-stage, .hsn-chip:not(.hsn-interactions > *)):is(.is-on, .is-active, [aria-pressed="true"], [aria-selected="true"], [aria-checked="true"]):not(#\#):not(#\#) {
  background: rgb(var(--h-accent-rgb) / .2) !important;
}
html body :is(.hxa-chipbtn:not(.hxa-chipbtn--solid), .hadv-filter, .hx-lf-chip, .hsf-chip, .tmx-chip, .hwl-chip, .hbd-chip, .hadv-chip, .hnt-chip, .hs-stage, .hsn-chip:not(.hsn-interactions > *)):is(:disabled, [aria-disabled="true"]):not(#\#):not(#\#) {
  opacity: .5;
  cursor: not-allowed;
}
html body .hxa-chipbtn--solid:not(#\#):not(#\#) {
  background: var(--h-accent) !important;
  border-color: var(--h-accent) !important;
  color: var(--h-on-accent) !important;
}

/* Top bar: the current page is shown with a quiet grey fill */
html body .z-topbar .z-topbar-action:not(#\#):not(#\#) {
  border-radius: var(--h-r-ctl) !important;
  background: transparent !important;
  color: var(--h-ink-2) !important;
  box-shadow: none !important;
}
html body .z-topbar .z-topbar-action:is([aria-current], .is-active):not(#\#):not(#\#) {
  background: var(--h-selected) !important;
  color: var(--h-ink) !important;
}

/* Reports: the report name is enough; its description lives in the report list */
html body .hr-report-heading > div > p:not(#\#):not(#\#),
html body .hr-sections .hr-panel > p:empty:not(#\#):not(#\#) {
  display: none !important;
}

/* Links in report sections are the whole heading row, not a label with an arrow */
html body .hr-sections .hr-panel > header > a > svg:not(#\#):not(#\#) {
  display: none !important;
}

/* The menu says what each section holds; no description under the heading */

/* Labels are sentence case: no spaced capitals anywhere in the app */
html body.z-crm-app :is(.uppercase, .z-page-header__eyebrow, .hy-eyebrow, .hv-eyebrow, .wf-eyebrow, .rc-eyebrow,
  .ht-eyebrow, .z-dashboard-kicker, .z-sidebar-group-label, .hst-nav__group, .hv-kpi__name):not(#\#):not(#\#) {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html body.z-crm-app :is(.z-page-header__eyebrow, .hy-eyebrow):not(#\#):not(#\#) {
  display: none !important;
}

/* Buttons keep their label on one line */
html body :is(.z-btn-primary, .z-btn-ghost, .z-btn-secondary, .z-btn-danger, .hv-button):not(#\#):not(#\#) {
  white-space: nowrap;
}

/* Links inside tables read as text until you point at them */
html body .hv-record-value--link:not(#\#):not(#\#) {
  color: var(--h-ink) !important;
  text-decoration: none;
}
html body .hv-record-value--link:not(#\#):not(#\#):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* No decorative gradients on controls or charts */
html body :is(.hv-button, .z-btn-primary, .hx-create-trigger):not(#\#):not(#\#) {
  background-image: none !important;
}

/* ------------------------------------------------------------------ */
/* 4. Sign-in and other account pages: one calm column                 */
/* ------------------------------------------------------------------ */

/* These pages stand on the same ink as the app's frame, with violet light rising from one corner and a cooler
   light in the other. The form is a white card in the middle; the wordmark and the two controls are light. */
/* No room is kept for a scrollbar here: the kept gutter showed as a flat strip beside the light. */
html:has(> body.z-crm-auth) { background: rgb(var(--h-rail-rgb)); scrollbar-gutter: auto; }
html body.z-crm-auth:not(#\#):not(#\#) {
  background: radial-gradient(960px 680px at 0 100%, rgb(104 84 228 / .44), transparent 68%), radial-gradient(780px 540px at 100% 0, rgb(86 132 255 / .16), transparent 70%), rgb(var(--h-rail-rgb)) !important;
  background-attachment: fixed !important;
  --auth-ink: var(--h-ink);
  --auth-purple: var(--h-accent);
  --auth-purple-bright: var(--h-accent);
  --auth-paper: var(--h-paper);
  --auth-right: var(--h-paper);
  --auth-panel: var(--h-panel);
  --auth-line: var(--h-line);
  --auth-muted: var(--h-ink-2);
}
html body.z-crm-auth .z-auth-shell:not(#\#):not(#\#) {
  display: block !important;
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* UX audit UI-1: the card sits a little above the middle of the screen, not in the top third with the lower half
   empty. The extra space below lifts it; a short screen falls back to the old top padding. */
html body.z-crm-auth .z-auth-main:not(#\#):not(#\#) {
  min-height: 100vh !important;
  width: 100% !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 28px !important;
  padding: clamp(28px, 6vh, 72px) 20px clamp(40px, 14vh, 160px) !important;
  background: transparent !important;
}
html body.z-crm-auth .z-auth-brandmark:not(#\#):not(#\#) {
  position: static !important;
  display: flex !important;
  justify-content: center;
  width: 100%;
}
html body.z-crm-auth .z-auth-brandmark .z-auth-wordmark:not(#\#):not(#\#) {
  width: 104px !important;
}
html body.z-crm-auth .z-auth-brandmark .z-auth-wordmark-dark:not(#\#):not(#\#) { display: none !important; }
html body.z-crm-auth .z-auth-brandmark .z-auth-wordmark-light:not(#\#):not(#\#) { display: block !important; }
html body.z-crm-auth .z-auth-controls:not(#\#):not(#\#) {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
html body.z-crm-auth .z-auth-theme:not(#\#):not(#\#) {
  position: static !important;
  border: 0 !important;
  border-radius: var(--h-r-ctl) !important;
  background: rgb(255 255 255 / .08) !important;
  box-shadow: none !important;
  color: #fff !important;
}
html body.z-crm-auth .z-auth-theme:not(#\#):not(#\#):hover { background: rgb(255 255 255 / .14) !important; }
html body.z-crm-auth .z-auth-controls select:not(#\#):not(#\#) {
  border-color: transparent !important;
  background-color: rgb(255 255 255 / .08) !important;
  box-shadow: none !important;
  color: #fff !important;
}
html body.z-crm-auth .z-auth-controls option { color: #16152a; }
html body.z-crm-auth .z-auth-controls .h-native-select__arrow { color: rgb(255 255 255 / .7); }
html body.z-crm-auth .z-auth-card:not(#\#):not(#\#) {
  width: 100% !important;
  max-width: var(--z-auth-card-width, 440px) !important;
  padding: 32px !important;
  border: 0 !important;
  border-radius: var(--h-r-overlay) !important;
  background: var(--h-panel) !important;
  box-shadow: 0 32px 80px -24px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .06) !important;
}
/* Sign-in titles are centred over the card */
html body.z-crm-auth .z-auth-card .z-auth-title:not(#\#):not(#\#) {
  margin-top: 0 !important;
  font-family: var(--h-font-display) !important;
  font-size: var(--h-fs-28) !important;
  font-weight: var(--h-weight-display) !important;
  letter-spacing: var(--h-track-title) !important;
  text-align: center;
}
html body.z-crm-auth .z-auth-card .z-auth-subtitle:not(#\#):not(#\#) {
  margin-top: 6px !important;
  color: var(--h-ink-2) !important;
  font-size: var(--h-fs-14) !important;
  text-align: center;
}
html body.z-crm-auth :is(.z-auth-input):not(#\#):not(#\#) {
  min-height: 44px !important;
  border-radius: var(--h-r-ctl) !important;
  background: var(--h-panel) !important;
  border-color: var(--h-line-strong) !important;
}
html body.z-crm-auth .z-auth-input:focus:not(#\#):not(#\#) {
  border-color: var(--h-accent) !important;
  box-shadow: 0 0 0 3px var(--h-focus-halo) !important;
}
html body.z-crm-auth .z-auth-submit:not(#\#):not(#\#) {
  min-height: 44px !important;
  border-radius: var(--h-r-ctl) !important;
  background: var(--h-accent) !important;
  box-shadow: none !important;
  transform: none !important;
}
html body.z-crm-auth .z-auth-submit:hover:not(#\#):not(#\#) {
  background: var(--h-accent-hover) !important;
}
html body.z-crm-auth :is(.z-auth-security-note, .z-auth-status):not(#\#):not(#\#) {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--h-ink-2) !important;
}
html body.z-crm-auth .z-auth-security-icon:not(#\#):not(#\#) {
  background: transparent !important;
  color: var(--h-ink-2) !important;
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
}
html body.z-crm-auth .z-auth-footnote:not(#\#):not(#\#)::before,
html body.z-crm-auth .z-auth-footnote:not(#\#):not(#\#)::after {
  content: none !important;
}
html body.z-crm-auth .z-dashboard-kicker:not(#\#):not(#\#) {
  display: none !important;
}
html body.z-crm-auth .z-provider-options:not(#\#):not(#\#) {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
}
html body.z-crm-auth .z-provider-button:not(#\#):not(#\#) {
  max-width: none !important;
  height: 44px !important;
  min-height: 44px !important;
  border-color: var(--h-line-strong) !important;
  border-radius: var(--h-r-ctl) !important;
}

/* ------------------------------------------------------------------ */
/* 5. Phone layout                                                     */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
  /* Help lives in the menu on phones, so it never covers content */
  html body .hxc-launcher:not(#\#):not(#\#) {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body *,
  html body *::before,
  html body *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* The top bar's Pipeline and Calendar links are quiet until you're on that page; then, like every "you are here",
   they sit on the lavender tint in violet. */
html body .z-topbar .z-focus-trigger[aria-current="page"]:not(#\#):not(#\#) {
  border-color: transparent !important;
  background: var(--h-tint) !important;
  color: var(--h-accent) !important;
}
html body .z-topbar .z-focus-trigger[aria-current="page"] .z-focus-trigger__icon:not(#\#):not(#\#) {
  background: transparent !important;
  color: var(--h-accent) !important;
}

/* List headers: the buttons sit level with the title, not at the top of it (from 768px; below that they sit under it) */
@media (min-width: 768px) {
  html body .hv-record-head > .hv-record-head__actions:not(#\#):not(#\#) {
    align-self: center;
  }
}
/* Page header buttons are one size everywhere (32px), lists and record headers included.
   On phones they are 44px touch targets that share the row under the title, and a record
   header's Ask Assistant and status menu match its other buttons. */
@media (min-width: 601px) {
  html body :is(.hv-record-head__actions :is(.hv-button, a.hv-button), .hx-profile-actions :is(.hx-ask-copilot, .h-9)):not(#\#):not(#\#) {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 12px !important;
  }
}
@media (max-width: 600px) {
  html body .hv-record-head > .hv-record-head__actions:not(#\#):not(#\#) {
    align-self: stretch;
  }
  html body :is(.hv-record-head__actions, .z-page-header__actions) > :is(a, button):not(#\#):not(#\#) {
    flex: 1 1 auto !important;
    justify-content: center;
    min-height: 44px;
  }
  html body .hv-record-head__actions :is(.hv-button, a.hv-button):not(#\#):not(#\#) {
    height: 44px !important;
    padding: 0 14px !important;
  }
  html body .z-page-header__actions .hap-btn:not(#\#):not(#\#) {
    height: 44px;
  }
}

/* Stage tags: one colour per pipeline stage, from the theme, so they match on every page and read in dark mode.
   Applied and closed are grey, Submitted blue, Interview violet (like interview times), Offer amber, Placed green. */
html body .h-stage:not(#\#):not(#\#) { color: var(--h-ink-2) !important; background: var(--h-hover) !important; }
html body .h-stage--client_submitted:not(#\#):not(#\#) { color: var(--h-info) !important; background: var(--h-info-soft) !important; }
html body .h-stage--interview:not(#\#):not(#\#) { color: var(--h-accent) !important; background: var(--h-tint) !important; }
html body .h-stage--offer:not(#\#):not(#\#) { color: var(--h-warn) !important; background: var(--h-warn-soft) !important; }
html body .h-stage--placed:not(#\#):not(#\#) { color: var(--h-money) !important; background: var(--h-money-soft) !important; }
/* The same stage colours as a variable (--stage, from data-stage), for things drawn in a stage's colour rather than
   tagged with it: an application's journey steps, a candidate's progress through each job. */
[data-stage] { --stage: var(--h-ink-2); }
[data-stage="client_submitted"] { --stage: var(--h-info); }
[data-stage="interview"] { --stage: var(--h-accent); }
[data-stage="offer"] { --stage: var(--h-warn); }
[data-stage="placed"] { --stage: var(--h-money); }

/* Dark mode: the interface language picker on Account was a white box with near-white text */
html[data-theme="dark"] body .hyrer-language :is(select, button):not(#\#):not(#\#) {
  border-color: var(--h-line-strong) !important;
  background-color: var(--h-panel) !important;
  color: var(--h-ink) !important;
}

/* "Show more" sections: a small chevron that turns as it opens, instead of the browser's black triangle */
html body .hx-disclose > summary:not(#\#):not(#\#) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}
html body .hx-disclose > summary::-webkit-details-marker { display: none; }
html body .hx-disclose > summary::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: .7;
  transition: transform var(--h-quick) var(--h-ease);
}
html body .hx-disclose[open] > summary::before { transform: rotate(90deg); }
/* A menu (Template options) points down and opens downwards */
html body .hx-disclose--menu > summary::before {
  order: 2;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
html body .hx-disclose--menu[open] > summary::before { transform: rotate(180deg); }

/* Phone top bar: search, Create, alerts, your settings and account. Pipeline and
   Calendar live in the menu; the menu button stays in the page (the bottom bar's
   Menu tab opens it) but takes no space. */
@media (max-width: 767px) {
  html body .z-topbar :is(.z-topbar-calculator, .z-focus-trigger):not(#\#):not(#\#) {
    display: none !important;
  }
  html body .z-page-header__body:not(#\#):not(#\#) {
    align-self: stretch;
    text-align: left;
  }
}

/* Phone record headers: a long email shortens instead of pushing the copy button onto its own line
   (room for the 18px gap, the button's 4px margin and its 44px width) */
@media (max-width: 767px) {
  html body .hx-profile-contact a[href^="mailto:"]:not(#\#):not(#\#) {
    display: inline-block !important;
    min-width: 0;
    max-width: calc(100% - 70px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
  html body .hx-profile-contact a[href^="mailto:"] svg:not(#\#):not(#\#) {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 4px;
  }
  html body .z-topbar:not(#\#):not(#\#) {
    justify-content: flex-end;
  }
  html body .z-topbar .z-topbar-actions:not(#\#):not(#\#) {
    justify-content: flex-end !important;
    gap: 6px !important;
  }
}

/* Help opens from the top bar on a computer (16 November 2026), so nothing floats over the page: the corner button
   used to sit on top of Next, Add to a job and the Rows control. The chat still opens in the bottom corner. */
.h-helpbtn { position: relative; display: none; }
.h-helpbtn__dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--h-danger, #e0443a); box-shadow: 0 0 0 2px var(--h-paper); }
.h-helpbtn__dot[hidden] { display: none; }
@media (min-width: 768px) {
  .h-helpbtn { display: inline-flex; }
  html body:has([data-help-open]) .hxc-launcher:not(#\#):not(#\#) { display: none !important; }
  html body:has([data-help-open]) .hxc :is(.hxc-panel, .hxc-toast) { bottom: 0 !important; }
}

/* Nothing in the bottom corner sits on Help (17 November 2026, James: "the popups bottom right overlap the help button
   so stop that"). Where the floating Help button is still shown (a page with no top bar), corner cards sit above it;
   while the Help chat is open, they sit to its left. */
@media (min-width: 768px) {
  html body:not(:has([data-help-open])) :is(.hcn-stack, .hs-float) { bottom: 76px; }
  html body:has(.hxc.is-open) :is(.hcn-stack, .hs-float) { right: 412px; }
}

/* The floating Help button matches the other buttons on larger screens */
html body .hxc-launcher:not(#\#):not(#\#) {
  border-radius: var(--h-r-ctl) !important;
  background: var(--h-panel) !important;
  background-image: none !important;
  color: var(--h-ink) !important;
  border: 1px solid var(--h-line) !important;
  box-shadow: var(--h-shadow-float) !important;
}

/* "Ask Assistant" in a record's header is a plain word with its icon until pointed at, so the header's ringed
   buttons are Edit and More and its one violet button is the primary (a job's Ask Assistant is in its More menu). */
html body .hx-ask-copilot:not(#\#):not(#\#) {
  border: 1px solid transparent !important;
  border-radius: var(--h-r-ctl) !important;
  background: transparent !important;
  color: var(--h-ink-2) !important;
  box-shadow: none !important;
}
html body .hx-ask-copilot:not(#\#):not(#\#):hover {
  background: rgb(var(--h-ink-rgb) / .06) !important;
  color: var(--h-ink) !important;
}
/* On a laptop a record's header has no room for five labelled actions (More dropped to a second line on a company
   at 1366px). Ask Assistant keeps its icon and loses its label there; the label still names it for screen readers
   and it has a title. */
@media (min-width: 768px) and (max-width: 1559px) {
  html body .hx-profile-actions .hx-ask-copilot > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html body .hx-profile-actions .hx-ask-copilot:not(#\#):not(#\#) { padding-inline: 9px !important; }
}

/* ------------------------------------------------------------------ */
/* 6. Finish: quick feedback, readable tables, one entrance per page    */
/* ------------------------------------------------------------------ */

/* Anything you press answers straight away, without bouncing around */
html body :is(.z-btn, .z-btn-primary, .z-btn-ghost, .z-btn-secondary, .hv-button, .z-topbar-action,
  a.z-card, .z-input, .z-select, .hx-lf-btn):not(#\#):not(#\#) {
  transition-property: background-color, border-color, box-shadow, color, transform !important;
  transition-duration: var(--h-quick) !important;
  transition-timing-function: var(--h-ease) !important;
}

/* Fields: the same shape as buttons, body-size text, a firmer edge on hover, a soft violet ring when typing.
   The 1px edge is the field's only line: no drop shadow under it. */
html body :is(.z-input, .z-select, .z-textarea):not(#\#):not(#\#) {
  border-radius: var(--h-r-ctl) !important;
}
/* Keep native phone fields at reading size when the browser focuses them. */
@media (max-width: 767px) {
  :where(input, select, textarea) { --h-field-text-size: var(--h-fs-16); }
}
html body :is(.z-input, .z-select, .z-textarea):not(:-webkit-autofill):not(:focus):not(#\#):not(#\#) {
  box-shadow: none !important;
}
html body :is(.z-input, .z-select, .z-textarea):not(:focus):not(:disabled):not([aria-invalid="true"]):not(#\#):not(#\#):hover {
  border-color: rgb(var(--h-subtle-rgb) / .55) !important;
}
html body :is(.z-input, .z-select, .z-textarea):not(:-webkit-autofill):not(#\#):not(#\#):focus {
  border-color: var(--h-accent) !important;
  box-shadow: 0 0 0 3px var(--h-focus-halo) !important;
  outline: none !important;
}
/* Drop-downs: Hyrer's own chevron instead of the browser's heavy black arrow. Selects that draw their own
   arrow (Tailwind appearance-none with an icon, .z-select, Home's .hh-select) keep theirs. */
html body:is(.z-crm-app, .z-crm-auth) select:not([multiple]):not([size]):not([class*="appearance-none"]):not(.z-select):not(.sr-only):not(.hh-select select):not(#\#):not(#\#) {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px !important;
  background-image: var(--h-select-chevron, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626578' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")) !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px 14px !important;
  text-overflow: ellipsis;
}
html[data-theme="dark"] body:is(.z-crm-app, .z-crm-auth) select:not([multiple]):not([size]):not([class*="appearance-none"]):not(.z-select):not(.sr-only):not(.hh-select select):not(#\#):not(#\#) {
  background-image: var(--h-select-chevron, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c9fb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")) !important;
}
/* While a select's list is open (hyrer-select.js marks it aria-expanded) its chevron points up. */
select[aria-expanded="true"] { --h-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626578' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"); }
html[data-theme="dark"] select[aria-expanded="true"] { --h-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c9fb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"); }
/* Fold-outs drawn with utility classes: Hyrer's small chevron, which turns when open, in place of the
   browser's black triangle. Fold-outs that draw their own marker (.list-none or .flex) are left alone. */
html body.z-crm-app summary.cursor-pointer:not(.list-none):not(.flex):not(#\#) {
  list-style: none;
}
html body.z-crm-app summary.cursor-pointer:not(.list-none):not(.flex)::-webkit-details-marker {
  display: none;
}
html body.z-crm-app summary.cursor-pointer:not(.list-none):not(.flex)::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626578' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--h-quick) var(--h-ease);
}
html body.z-crm-app details[open] > summary.cursor-pointer:not(.list-none):not(.flex)::before {
  transform: rotate(90deg);
}
html[data-theme="dark"] body.z-crm-app summary.cursor-pointer:not(.list-none):not(.flex)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c9fb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E");
}

/* A field with an error keeps a red edge until it is fixed */
html body :is(.z-input, .z-select, .z-textarea, input, select, textarea)[aria-invalid="true"]:not(#\#):not(#\#) {
  border-color: var(--h-danger) !important;
}
html body :is(.z-input, .z-select, .z-textarea, input, select, textarea)[aria-invalid="true"]:not(#\#):not(#\#):focus {
  border-color: var(--h-danger) !important;
  box-shadow: 0 0 0 3px rgb(var(--h-danger-rgb) / .16) !important;
}
/* A box in error is easy to spot, not just a thin red edge: a soft red wash and ring (JP, 22 November) */
html body :is(.z-input, .z-select, .z-textarea, input:not([type="radio"]):not([type="checkbox"]), select, textarea)[aria-invalid="true"]:not(#\#):not(#\#):not(:focus) {
  background-color: rgb(var(--h-danger-rgb) / .045) !important;
  box-shadow: 0 0 0 3px rgb(var(--h-danger-rgb) / .10) !important;
}
/* A rich text box (advert text) in error */
html body [contenteditable="true"][aria-invalid="true"]:not(#\#):not(#\#) {
  border-color: var(--h-danger) !important;
  box-shadow: 0 0 0 3px rgb(var(--h-danger-rgb) / .12) !important;
}
/* Radio buttons and tick boxes: their group lights up instead */
html body [data-hx-invalid]:not(#\#):not(#\#) {
  border-radius: var(--h-r-ctl);
  outline: 2px solid rgb(var(--h-danger-rgb) / .55) !important;
  outline-offset: 3px;
}
/* The first field in error gives one small shake as the page brings it into view, then its ring pulses outward */
@keyframes hx-error-flash {
  0% { outline: 3px solid rgb(var(--h-danger-rgb) / .55); outline-offset: 0; }
  100% { outline: 3px solid rgb(var(--h-danger-rgb) / 0); outline-offset: 10px; }
}
@keyframes hx-error-shake {
  0%, 100% { translate: 0; }
  18% { translate: -4px 0; }
  38% { translate: 3px 0; }
  58% { translate: -2px 0; }
  78% { translate: 1px 0; }
}
html body .hx-error-flash:not(#\#):not(#\#) {
  animation: hx-error-shake 420ms cubic-bezier(.36, .07, .19, .97), hx-error-flash 1.1s ease-out 2;
}
@media (prefers-reduced-motion: reduce) {
  html body .hx-error-flash:not(#\#):not(#\#) { animation: none; }
}

/* Lists and tables: body text at 14px, the row you point at lights up. Column names are styled with the column
   band below; a row's own header (th in tbody) stays a body cell. */
html body :is(.hv-record-table, .z-table) td:not(#\#):not(#\#) {
  font-size: var(--h-fs-14) !important;
}
html body :is(.hv-record-table, .z-table) tbody tr:not(#\#):not(#\#) {
  transition: background-color var(--h-quick) var(--h-ease);
}

/* Panel headings read as headings, not as small labels */
html body.z-crm-app #main-content :is(h2, h3)[class*="eyebrow"]:not(#\#):not(#\#) {
  color: var(--h-ink) !important;
  font-size: var(--h-fs-14) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Quieter scrollbars and a selection colour that belongs to Hyrer */
html:has(body.z-crm-app) {
  scrollbar-color: rgb(var(--h-ink-rgb) / .22) transparent;
}
html body.z-crm-app * {
  scrollbar-width: thin;
}
html body.z-crm-app ::selection {
  background: rgb(var(--h-accent-rgb) / .2);
}

/* Job pipeline: the view switch is the shared segmented control; the bar around it is just a row */
html body .hr62-workspace .hw-nav:not(#\#):not(#\#) {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* File drop zones are neutral until you bring a file over them */
html body :is(.hcv-drop, .z-wiz-drop, .hs-drop, label.border-dashed):not(#\#):not(#\#) {
  /* 23 Nov 2026: a faint fill with a hairline edge, like a field, in place of a dashed box */
  border: 0 !important;
  border-radius: var(--h-r-inset) !important;
  background: rgb(var(--h-ink-rgb) / .035) !important;
  box-shadow: inset 0 0 0 1px rgb(var(--h-ink-rgb) / .07) !important;
  transition: background-color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease);
}
html body :is(.hcv-drop, .z-wiz-drop, .hs-drop, label.border-dashed):not(#\#):not(#\#):is(:hover, :focus-within, .is-dragging) {
  background: var(--h-tint) !important;
  box-shadow: inset 0 0 0 1px rgb(var(--h-accent-rgb) / .35) !important;
}

/* Counts inside tabs and filters are plain numbers beside the label, never a coloured badge */
html body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter, .hyrer-ts-filters, .hx-em__tabs,
  .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) > * > :is(b, small, [class*="count"]):not(#\#):not(#\#) {
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--h-subtle) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
/* The one exception is a view with something waiting for someone: its number is amber (still a plain number,
   never a badge) until that view is the one on screen. The page marks the button with is-warn (is-alert on
   Timesheets, whose counts are plain spans). */
html body .hv-record-filters button.is-warn:not([aria-pressed="true"]):not([aria-selected="true"]) b:not(#\#):not(#\#),
html body .hyrer-ts-filters > button.is-alert:not([aria-pressed="true"]) > span:not(#\#):not(#\#):not(#\#) {
  color: var(--h-warn) !important;
}
/* In the chosen option the count is violet too, a little lighter than its label. */
html body :is(.hv-record-filters, .hx-desk__queues, .hx-seg, .z-segmented-filter, .hyrer-ts-filters, .hx-em__tabs,
  .hx-auto__tabs, .hx-home-pipeline__scope, .hcm-filters, .hs42-inbox, .hxa-filters, .hcal-seg, .placement-type-tabs, .hx-subs__tabs, .hi-tabs, .hx-em__seg, .hrfs-tabs, .hsf-tabs, .tsj-switch, .hh-seg, .hsc-nav, .placement-status-filters, .hlf-tabs, .hsn-interactions, .hak-scopes, .hdc-months, .z-wiz-consent__choices) > :is(.is-on, .is-active, .active, [aria-selected="true"], [aria-pressed="true"], [aria-current="page"], [aria-current="true"], [data-active="true"], .z-segmented-filter__item--active, :has(> input:checked)) > :is(b, small, span + span, [class*="count"]):not(#\#):not(#\#):not(#\#) {
  color: rgb(var(--h-accent-rgb) / .78) !important;
}
html body .hyrer-ts-filters > button > span:not(#\#):not(#\#) {
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--h-subtle) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

/* Small print never drops below 12px */
html body.z-crm-app #main-content small {
  font-size: max(var(--h-fs-12), .85em);
}

/* Who: companies without a logo show their initials on a quiet stone face (Nov 2026). People's initials sit on
   their own colour (23 Nov 2026, JP's "option B": hyrer-ui.js gives each person a hue, .hk-hue in
   hyrer-polish.css spreads those hues round the wheel); company marks and pipeline cards stay neutral. */
html body :is(.hx-mark:not(.hbm), .hpb-av:not(:has(img))):not(.hk-hue):not(#\#):not(#\#) {
  background: rgb(var(--h-ink-rgb) / .055) !important;
  color: var(--h-ink-2) !important;
  border-color: transparent !important;
  box-shadow: inset 0 0 0 1px rgb(var(--h-ink-rgb) / .05) !important;
}

/* On: ticked boxes, switches that are on and selected rows */
html body.z-crm-app :is(input[type="checkbox"], input[type="radio"], input[type="range"], progress):not(#\#):not(#\#) {
  accent-color: var(--h-accent) !important;
}
html body :is([role="switch"][aria-checked="true"], .hx-auto__switch.is-on):not(#\#):not(#\#) {
  border-color: var(--h-accent) !important;
  background: var(--h-accent) !important;
  color: var(--h-on-accent) !important;
}
html body :is(.hv-record-table, .z-table) tbody tr:has(> td input[type="checkbox"]:checked):not(#\#):not(#\#) {
  background: var(--h-tint) !important;
}

/* ------------------------------------------------------------------ */
/* 7. Depth: panels sit up off the page                                */
/* ------------------------------------------------------------------ */

/* Cards and panels: a faint shadow ring in place of a grey border (the border stays, transparent, so nothing
   moves), the card radius, and a soft drop. A card inside a card keeps a hairline edge instead. */
html body :is(.hv-record-surface, .hx-profile-header, .hx-intel, .hx-detail-card, .hxo-card, .hcov-card,
  .hcp-ai-overview, .hxp-overview, .z-card, .z-work-panel, .hj-pipeline-workspace, .hr-panel, .hx-desk,
  .hx-temp-toolbar, .hxi-toolbar, .hx-em__stats,
  .hr-metrics, .hwb-figures, .hx-snap, .hx-simple-tabs:not(.hr60-tabs), .hrp-stat, .hrp-panel, .hi-interview, .hi-summary > div):not(#\#):not(#\#) {
  border-color: transparent !important;
  border-radius: var(--h-r-panel) !important;
  box-shadow: var(--h-shadow-card) !important;
}
/* Panels that kept their own outline: the same depth as every other card */
html body :is(.har-card, .hs-card, .hs-page > .hs-head, .hct-jobs.h-record-panel, .hcp-section.h-record-panel,
  .hx-em__preview, .hsg-about):not(#\#):not(#\#) {
  border-color: transparent !important;
  background-color: var(--h-panel) !important;
  box-shadow: var(--h-shadow-card) !important;
}
/* Empty states that stand on the page sit on a white card like every other panel: no border, never a dashed outline */
html body :is(.hx-auto__empty, .hx-em__empty, .hcm-empty):not(#\#):not(#\#) {
  border: 0 !important;
  border-radius: var(--h-r-panel) !important;
  background: var(--h-panel) !important;
  box-shadow: var(--h-shadow-card) !important;
}
html body :is(.z-card, .z-work-panel, .hr-panel, .hx-em__panel, .hx-em__card) :is(.hx-auto__empty, .hx-em__empty, .hcm-empty):not(#\#):not(#\#) {
  border-color: transparent !important;
  box-shadow: none !important;
}
/* Cards you can open lift a little when you point at them */
html body :is(a.z-card, a.hx-detail-card, a.hcov-card, .z-card[wire\:click], .z-card[href]):not(#\#):not(#\#) {
  transition: box-shadow var(--h-quick) var(--h-ease), border-color var(--h-quick) var(--h-ease), transform var(--h-quick) var(--h-ease) !important;
}
html body :is(a.z-card, a.hx-detail-card, a.hcov-card, .z-card[wire\:click], .z-card[href]):not(#\#):not(#\#):hover {
  border-color: rgb(var(--h-accent-rgb) / .28) !important;
  box-shadow: var(--h-shadow-lift) !important;
}

/* Record tabs never show a scrollbar: anything that doesn't fit is in their "+N more" menu */
html body .hx-section-tabs--primary:not(#\#):not(#\#) {
  scrollbar-width: none !important;
}
html body .hx-section-tabs--primary:not(#\#):not(#\#)::-webkit-scrollbar {
  display: none;
}
html body :is(.z-card, .z-work-panel, .hr-panel) :is(.z-card, .z-work-panel, .hr-panel):not(#\#):not(#\#) {
  border-color: var(--h-line) !important;
  box-shadow: none !important;
}

/* ------------------------------------------------------------------ */
/* 8. Menus: the "More" and "⋯" lists on rows and records              */
/* ------------------------------------------------------------------ */

/* Every menu and popover: a panel at the overlay radius with float depth and 6 padding; rows 36 tall with 8
   inline padding on the small radius, a 13/500 label, an optional 12 subtle value on the right and 16px icons in
   one column. Pointing at a row lays the hover tone under it. Destructive actions sit last, after a line, in red. */
.h-menu {
  position: fixed;
  z-index: 250;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 0;
  border-radius: var(--h-r-overlay);
  background: var(--h-panel);
  box-shadow: var(--h-shadow-float);
  color: var(--h-ink);
  font-family: var(--h-font);
  font-size: var(--h-fs-13);
  transform-origin: top right;
  animation: h-menu-in var(--h-overlay-enter) var(--h-overlay-ease);
}
/* It grows out of its button: from .96, 4px towards the button (hyrer-motion.js puts the origin on the button) */
@keyframes h-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(.96); }
}
.h-menu[data-side="top"] { transform-origin: bottom right; animation-name: h-menu-in-up; }
@keyframes h-menu-in-up {
  from { opacity: 0; transform: translateY(4px) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  .h-menu { animation: none; }
}
.h-menu__head {
  margin: -6px -6px 6px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--h-line);
}
.h-menu__head b,
.h-menu__head span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.h-menu__head b { font-size: var(--h-fs-13); font-weight: 600; line-height: 1.35; color: var(--h-ink); }
.h-menu__head span { margin-top: 1px; font-size: var(--h-fs-12); line-height: 1.4; color: var(--h-subtle); }
.h-menu__label {
  margin: 8px 8px 3px;
  font-size: var(--h-fs-12);
  font-weight: 500;
  line-height: 1.4;
  color: var(--h-subtle);
}
.h-menu__label:first-child { margin-top: 4px; }
.h-menu__sep {
  height: 1px;
  margin: 6px -6px;
  border: 0;
  background: var(--h-line);
}
.h-menu .h-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--h-r-sm);
  background: none;
  color: var(--h-ink);
  font: inherit;
  font-size: var(--h-fs-13);
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease);
}
.h-menu .h-menu__item > svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--h-subtle);
  transition: color var(--h-quick) var(--h-ease);
}
.h-menu .h-menu__item:hover,
.h-menu .h-menu__item:focus-visible {
  background: var(--h-hover);
  outline: none;
}
.h-menu .h-menu__item:focus-visible { box-shadow: inset 0 0 0 2px var(--h-focus); }
.h-menu .h-menu__item:is(:hover, :focus-visible) > svg { color: var(--h-accent); }
.h-menu__meta {
  min-width: 0;
  max-width: 150px;
  margin-left: auto;
  padding-left: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--h-fs-12);
  font-weight: 400;
  color: var(--h-subtle);
  font-variant-numeric: tabular-nums;
}
.h-menu .h-menu__item--danger,
.h-menu .h-menu__item--danger > svg { color: var(--h-danger); }
.h-menu .h-menu__item--danger:is(:hover, :focus-visible) { background: var(--h-danger-soft); }
.h-menu .h-menu__item--danger:is(:hover, :focus-visible) > svg { color: var(--h-danger); }
.h-menu .h-menu__item:disabled,
.h-menu .h-menu__item[aria-disabled="true"] {
  opacity: .45;
  background: none;
  cursor: not-allowed;
}

/* A menu that opens under its button inside a panel, rather than floating over the page */
.h-menu.h-menu--inline { position: absolute; z-index: 50; top: calc(100% + 4px); right: 0; min-width: 220px; max-height: 320px; }

/* Record "More" menus (x-ui.action-menu) use the same look. Their items keep older class names: z-action-menu-item,
   an icon either bare or in .hx-mi-ic, a heading in .hx-menu-h / .hjp-menu-h, and a line in [role=separator]. */
.h-menu .z-action-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: var(--h-r-sm);
  color: var(--h-ink);
  font-size: var(--h-fs-13);
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
}
.h-menu .z-action-menu-item:is(:hover, :focus-visible) { background: var(--h-hover); outline: none; }
.h-menu .z-action-menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--h-focus); }
.h-menu .z-action-menu-item > svg,
.h-menu .hx-mi-ic {
  display: inline-flex;
  flex: none;
  color: var(--h-subtle);
}
.h-menu .z-action-menu-item:is(:hover, :focus-visible) :is(> svg, .hx-mi-ic) { color: var(--h-accent); }
/* An item that can't be used right now, as .h-menu__item's: greyed, no hover fill; its title says why. */
.h-menu .z-action-menu-item:disabled { opacity: .45; background: none; cursor: not-allowed; }
.h-menu .z-action-menu-item:disabled :is(> svg, .hx-mi-ic) { color: var(--h-subtle); }
.h-menu .z-action-menu-item b { display: block; font-weight: 500; }
.h-menu .z-action-menu-item small {
  display: block;
  margin-top: 1px;
  font-size: var(--h-fs-12);
  font-weight: 400;
  line-height: 1.35;
  color: var(--h-subtle);
}
.h-menu :is(.hx-menu-h, .hjp-menu-h) {
  margin: 8px 8px 3px;
  padding: 0;
  font-size: var(--h-fs-12);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--h-subtle);
}
.h-menu :is(.hx-menu-h, .hjp-menu-h):first-child { margin-top: 4px; }
.h-menu [role="separator"] {
  height: 1px;
  margin: 6px -6px;
  border: 0;
  background: var(--h-line);
}
.h-menu .z-action-menu-item:is(.text-z-red, .hjp-mi--danger, .hadw-mi--danger),
.h-menu .z-action-menu-item:is(.text-z-red, .hjp-mi--danger, .hadw-mi--danger) :is(> svg, .hx-mi-ic) { color: var(--h-danger); }
.h-menu .z-action-menu-item:is(.text-z-red, .hjp-mi--danger, .hadw-mi--danger):is(:hover, :focus-visible) { background: var(--h-danger-soft); }

/* ------------------------------------------------------------------ */
/* 9. Notices: something on this page needs doing                      */
/* ------------------------------------------------------------------ */

/* A soft tinted panel: problems on a pale red, good news on a pale green and everything else on the quietest
   lavender. A warning sits on Hyrer's lavender with a violet mark (JP, 23 November: the pale amber fill and brown
   icons looked machine-made); the words say what needs doing. The mark at the start carries the colour. Facts about the page itself (how many
   timesheets are still open) go in the page header's line instead, with a plain link. */
.h-note {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px 10px 16px;
  border: 0;
  border-radius: var(--h-r-panel);
  background: var(--h-wash);
  box-shadow: none;
  color: var(--h-ink);
  font-size: var(--h-fs-13);
  line-height: 20px;
}
a.h-note { text-decoration: none; transition: background-color var(--h-quick) var(--h-ease); }
a.h-note:hover { background: rgb(var(--h-tint-rgb)); }
/* A notice whose text may run to more lines keeps its mark at the top; its first line still centres on the 32px
   action beside it. */
.h-note--top { align-items: flex-start; }
.h-note--top > :is(.h-note__mark, .h-note__text) { margin-top: 6px; }
.h-note__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--h-accent);
}
.h-note__mark svg { width: 16px; height: 16px; }
.h-note--warn { background: var(--h-wash); }
.h-note--danger { background: var(--h-danger-soft); }
.h-note--info { background: var(--h-wash); }
.h-note--good { background: var(--h-money-soft); }
.h-note--warn .h-note__mark { color: var(--h-accent); }
.h-note--danger .h-note__mark { color: var(--h-danger); }
.h-note--info .h-note__mark { color: var(--h-accent); }
.h-note--good .h-note__mark { color: var(--h-money); }
a.h-note--warn:hover { background: var(--h-tint-strong); }
a.h-note--danger:hover { background: color-mix(in srgb, var(--h-danger) 8%, var(--h-danger-soft)); }
.h-note__text { flex: 1; min-width: 0; margin: 0; color: var(--h-ink); }
.h-note__text :is(p, div) { margin: 0; }
.h-note__title { font-weight: 600; color: var(--h-ink); }
.h-note--danger .h-note__title { color: var(--h-danger); }
.h-note__more { color: var(--h-ink-2); }
.h-note__actions { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 6px; }
.h-note__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--h-r-ctl);
  background: none;
  color: var(--h-subtle);
  cursor: pointer;
}
.h-note__close:hover { background: rgb(var(--h-ink-rgb) / .06); color: var(--h-ink); }
.h-note__close svg { width: 15px; height: 15px; }
/* Stacked (<x-ui.notice stack>): for a narrow column such as a side card. The words take the full width
   beside the mark and the actions sit underneath, in line with the words. */
.h-note--stack { flex-wrap: wrap; align-items: flex-start; }
.h-note--stack .h-note__text { flex-basis: calc(100% - 42px); padding-top: 5px; }
.h-note--stack .h-note__actions { width: 100%; padding-left: 42px; }
@media (max-width: 640px) {
  .h-note { flex-wrap: wrap; align-items: flex-start; }
  .h-note__text { flex-basis: calc(100% - 82px); }
  .h-note__actions { width: 100%; padding-left: 40px; }
}

/* Offer to open a page in the installed Hyrer app, when it arrived in a browser tab from a link elsewhere */
.h-open-app {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(440px, calc(100vw - 32px));
  box-shadow: var(--h-shadow-float);
}
.h-open-app__always {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--h-ink-2);
  font-size: var(--h-fs-12);
}

/* The line under a page title: plain facts, with an ordinary underlined link when there's somewhere to go */
.z-page-header__meta a {
  color: var(--h-accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(var(--h-accent-rgb) / .35);
  text-underline-offset: 3px;
}
.z-page-header__meta a:hover { text-decoration-color: currentColor; }

/* 9b. Sent to a client?: questions that wait for an answer             */
/* A white card of rows, one per CV Hyrer saw the consultant email to a client. Each row is who went to whom,
   how Hyrer knew, and the answer: a job, speculative, or not a submission. */
.h-sent { overflow: hidden; border-radius: var(--h-r-panel); background: var(--h-panel); box-shadow: var(--h-shadow-card); }
.h-sent__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.h-sent__mark { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: var(--h-r-ctl); background: var(--h-wash); color: var(--h-accent); }
.h-sent__title { margin: 0; color: var(--h-ink); font-size: var(--h-fs-16); font-weight: 600; line-height: 22px; letter-spacing: -.006em; }
.h-sent__sub { margin: 0; color: var(--h-subtle); font-size: var(--h-fs-13); line-height: 1.45; }
.h-sent__list { margin: 0; padding: 0; list-style: none; }
.h-sent__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 18px; border-top: 1px solid var(--h-line); }
.h-sent__who { flex: 1 1 320px; min-width: 0; }
.h-sent__names { margin: 0; color: var(--h-ink); font-size: var(--h-fs-14); font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.h-sent__names a { color: inherit; text-decoration: none; }
.h-sent__names a:hover { color: var(--h-accent); }
.h-sent__to { margin: 0 6px; color: var(--h-subtle); font-weight: 400; }
.h-sent__how { margin: 2px 0 0; color: var(--h-subtle); font-size: var(--h-fs-12-5); line-height: 1.45; overflow-wrap: anywhere; }
.h-sent__quote { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--h-line-strong); color: var(--h-ink-2); font-size: var(--h-fs-13); line-height: 1.5; overflow-wrap: anywhere; }
.h-sent__answer { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 8px; }
.h-sent__job { width: 260px; max-width: 100%; }
.h-sent__job .z-input { height: 34px; min-height: 34px; padding-top: 0; padding-bottom: 0; font-size: var(--h-fs-13); }
.h-sent__error { flex-basis: 100%; margin: 0; color: var(--h-danger); font-size: var(--h-fs-12-5); }

/* ------------------------------------------------------------------ */
/* 10. Finish: one visual language across every screen (Oct 2026)      */
/*     Geometry stays with each component; this sets how it looks.     */
/* ------------------------------------------------------------------ */

/* Headline numbers use the title face (Cal Sans), so figures read as figures */
html body.z-crm-app :is(.hwb-fig__value, .hx-em__stats strong, .hr-metrics strong, .hv-kpi__value,
  .hv-chart-overview > div > strong, .hwb-figures strong, .hyrer-ts-stat strong, .tsj-stat > strong, .hlf-focus__item > b):not(#\#):not(#\#) {
  font-family: var(--h-font-display) !important;
  font-weight: var(--h-weight-display) !important;
  letter-spacing: var(--h-track-figure) !important;
  color: var(--h-ink) !important;
}

/* The count beside a page title has no border or shadow of its own; its pill is set further down (4 Dec 2026) */
html body .hv-title-count:not(#\#):not(#\#) {
  border: 0 !important;
  box-shadow: none !important;
}

/* Panel headers sit on the panel itself, divided by a hairline: no grey fade behind the title */
html body .z-panel-header:not(#\#):not(#\#) {
  background: transparent !important;
}

/* Card titles: 16/600 ink in the body face, on the card's 20 inset, wherever the card was built (panels, record
   sections, company cards, report panels, wizard cards). An action may share the line. !important on the face and
   weight because the workspace sets every heading's face and weight with !important. */
html body.z-crm-app #main-content :is(.hv-panel-header__copy, .hwb-panel__head, .hx-home-pipeline__header, .z-panel-header, .h-record-section__head, .hcov-head, .hc-card__head, .hr-panel > header, .hx-detail-card > header, .z-work-panel > header, .z-card > header) :is(h2, h3):not(#\#):not(#\#),
html body.z-crm-app #main-content :is(.z-panel-title, .hv-panel-title, .hjp-facts__title):not(#\#):not(#\#) {
  margin: 0;
  color: var(--h-ink) !important;
  font-family: var(--h-font) !important;
  font-size: var(--h-fs-16) !important;
  font-weight: 600 !important;
  line-height: 24px !important;
  letter-spacing: -.01em !important;
}

/* Panels Hyrer draws in more than one place all sit on the same surface */
html body :is(.hv-panel, .hv-card, .hv-list-panel, .hwb-panel, .hwb-figures, .hx-em__card, .hx-radar):not(.hx-home-pipeline):not(#\#):not(#\#) {
  border-color: transparent !important;
  border-radius: var(--h-r-panel) !important;
  background-color: var(--h-panel) !important;
  box-shadow: var(--h-shadow-card) !important;
}
html body :is(.hv-panel, .hv-card, .hv-list-panel, .hwb-panel, .z-card) :is(.hv-panel, .hv-card, .hv-list-panel, .hwb-panel):not(#\#):not(#\#) {
  border-color: var(--h-line) !important;
  box-shadow: none !important;
}

/* Search: the top bar's box is the command bar; the list search is a quiet well that lights up when used */
html body .z-search-input:not(#\#):not(#\#) {
  border-color: var(--h-line) !important;
  border-radius: var(--h-r-ctl) !important;
  background: var(--h-panel) !important;
  box-shadow: var(--h-shadow-press) !important;
  color: var(--h-ink) !important;
  transition: border-color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease) !important;
}
html body .z-search-input:not(#\#):not(#\#):hover { border-color: var(--h-line-strong) !important; }
html body .z-search-input:not(#\#):not(#\#):focus {
  border-color: var(--h-accent) !important;
  box-shadow: 0 0 0 3px var(--h-focus-halo) !important;
  outline: none !important;
}
html body :is(.z-search-input, .z-input, .z-select, .z-textarea, .hv-record-search input)::placeholder {
  color: rgb(var(--h-subtle-rgb) / .85);
}
html body .z-search-shortcut:not(#\#):not(#\#) {
  border: 0 !important;
  border-radius: var(--h-r-sm) !important;
  background: var(--h-panel-2) !important;
  box-shadow: inset 0 0 0 1px var(--h-line), 0 1px 0 var(--h-line) !important;
  color: var(--h-ink-2) !important; /* small text on a tinted key: the darker grey keeps it AA (UX audit ACC-3) */
  font-family: var(--h-font) !important;
  font-size: var(--h-fs-12) !important;
  font-weight: 500 !important;
}
/* Search boxes: one look on every page, the same as the record lists (Nov 2026, from the mockups): a clean white
   field with a firm 1px ring, 36px tall like the buttons beside it, and a violet ring while you type. Boxes with the
   icon inside a wrapper, then plain inputs. */
html body :is(.hv-record-search, .hi-search, .hx-desk__search, .hcm-search, .tsj-search):not(#\#):not(#\#) {
  height: var(--h-ctl-md) !important;
  min-height: var(--h-ctl-md) !important;
  border-color: transparent !important;
  border-radius: var(--h-r-ctl) !important;
  background: var(--h-panel) !important;
  box-shadow: inset 0 0 0 1px var(--h-line-strong) !important;
  transition: background-color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease) !important;
}
html body :is(.hv-record-search, .hi-search, .hx-desk__search, .hcm-search, .tsj-search):not(#\#):not(#\#):focus-within {
  background: var(--h-panel) !important;
  box-shadow: inset 0 0 0 1px var(--h-accent), 0 0 0 3px var(--h-focus-halo) !important;
  outline: none !important;
}
html body :is(.hv-record-search, .hi-search, .hx-desk__search, .hcm-search, .tsj-search) input:not(#\#):not(#\#) {
  background: transparent !important;
}
html body :is(input.z-list-search, .hx-subs__filters input[type="search"], .hx-subs__filters input:not([type]), input.hx-em__search, .htc-search input, .hx-perm-search input):not(#\#):not(#\#):not(#\#) {
  --h-field-lead: 36px;   /* room for the search icon */
  height: var(--h-ctl-md) !important;
  min-height: var(--h-ctl-md) !important;
  border-color: transparent !important;
  border-radius: var(--h-r-ctl) !important;
  background-color: var(--h-panel) !important;
  box-shadow: inset 0 0 0 1px var(--h-line-strong) !important;
}
html body :is(.hv-record-search, .hi-search, .hx-desk__search, .hcm-search, .tsj-search):not(#\#):not(#\#):hover:not(:focus-within) {
  box-shadow: inset 0 0 0 1px rgb(var(--h-subtle-rgb) / .55) !important;
}
html body :is(input.z-list-search, .hx-subs__filters input[type="search"], .hx-subs__filters input:not([type]), input.hx-em__search, .htc-search input, .hx-perm-search input):not(#\#):not(#\#):not(#\#):focus {
  background-color: var(--h-panel) !important;
  box-shadow: inset 0 0 0 1px var(--h-accent), 0 0 0 3px var(--h-focus-halo) !important;
  outline: none !important;
}

/* One search field: whichever way a page builds it (a wrapper with the icon beside the input, or an input with
   the icon laid over it), the magnifier is 16 at 12 from the edge and the text starts at 36. */
html body :is(.hv-record-search, .hi-search, .hx-desk__search, .hcm-search, .tsj-search):not(#\#):not(#\#) {
  padding-left: 12px !important;
  column-gap: 8px !important;
}
html body :is(.hv-record-search, .hi-search, .hx-desk__search, .hcm-search, .tsj-search) svg:not(#\#):not(#\#) {
  flex: none;
  width: 16px !important;
  height: 16px !important;
}
html body svg:has(+ :is(.z-input, .z-list-search)):not(#\#):not(#\#) { width: 16px; height: 16px; }
html body svg + :is(.z-input, .z-list-search):not(#\#):not(#\#) { --h-field-lead: 36px; }

/* Search boxes that were drawn without a magnifier get one, like the rest */
html body :is(input.hx-em__search, .hx-subs__filters input[type="search"], .hx-subs__filters input:not([type]), .hx-perm-search input):not(#\#):not(#\#):not(#\#) {
  padding-left: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626578' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  background-size: 16px 16px !important;
}
html[data-theme="dark"] body :is(input.hx-em__search, .hx-subs__filters input[type="search"], .hx-subs__filters input:not([type]), .hx-perm-search input):not(#\#):not(#\#):not(#\#) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c9fb2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") !important;
}

/* Fields: a firmer edge than the panel they sit in */
html body :is(.z-input, .z-select, .z-textarea):not(:focus):not([aria-invalid="true"]):not(#\#):not(#\#) {
  border-color: var(--h-line-strong) !important;
}
html body :is(.z-input, .z-select, .z-textarea):not(#\#):not(#\#) {
  background-color: var(--h-panel) !important;
}

/* One table, for record lists (.hv-record-table) and every other list (.z-table). Column names are 12/500 violet
   on the 38px lavender band; rows are separated by hairlines and take the faintest violet when pointed at. A row is
   at least 52 tall; its block padding (10 above, 9 plus the hairline below) makes a two-line row 60. Cells are inset
   16 either side; a tick-box column is 48 wide. Figures are tabular. The table sits on its card (the card owns the
   shadow and the corners). Month and group rows, and an empty row, keep their own height. */
html body :is(.hv-record-table, .z-table) thead:not(#\#):not(#\#):not(#\#) {
  background: transparent !important;
}
html body :is(.hv-record-table, .z-table) thead th:not(#\#):not(#\#):not(#\#) {
  height: 38px !important;
  padding-block: 0 !important;
  border: 0 !important;
  background: var(--h-nav-wash) !important;
  color: var(--h-accent-hover) !important;
  font-size: var(--h-fs-12) !important;
  font-weight: 500 !important;
  line-height: 16px !important;
  letter-spacing: 0 !important;
  vertical-align: middle !important;
}
html body :is(.hv-record-table, .z-table) tbody td:not(tr[class*="bg-accent-soft"] > *):not([colspan]):not(#\#):not(#\#):not(#\#) {
  height: var(--h-record-cell-height, 52px) !important;
  padding-block: 10px 9px !important;
  vertical-align: middle;
}
html body :is(.hv-record-table, .z-table) :is(thead th, tbody td):not(.has-actions :last-child):not([data-z-empty]):not(#\#):not(#\#):not(#\#) {
  padding-inline: 16px !important;
}
html body :is(.hv-record-table, .z-table) :is(th, td):has(> input[type="checkbox"], > label > input[type="checkbox"]):not(#\#):not(#\#):not(#\#) {
  width: 48px !important;
  padding-right: 0 !important;
}
html body :is(.hv-record-table, .z-table) tbody td:not(#\#):not(#\#):not(#\#) {
  border-bottom: 1px solid var(--h-row-rule, var(--h-line)) !important;
  font-variant-numeric: tabular-nums;
}
html body :is(.hv-record-table, .z-table) tbody tr:last-child:not(#\#):not(#\#):not(#\#) {
  --h-row-rule: transparent;
}
html body :is(.hv-record-table, .z-table) tbody tr:not(#\#):not(#\#):not(#\#):hover {
  background: rgb(var(--h-accent-rgb) / .04) !important;
}
html body .hv-record-identity strong:not(#\#):not(#\#) {
  color: var(--h-ink) !important;
  letter-spacing: -.005em;
}
/* Job rows: the job's mark is a small rounded tile rather than a big circle, on the one violet tint (a job has no
   colour of its own, so a row of jobs is never a rainbow), and the columns after the job read in ink-2, so the job
   title carries the row. */
html body .hv-record-table--job .hv-record-avatar:not(#\#):not(#\#):not(#\#) {
  width: 30px !important;
  height: 30px !important;
  border-radius: var(--h-r-ctl) !important;
  background: var(--h-tint) !important;
  color: var(--h-accent) !important;
  box-shadow: none !important;
}
html body .hv-record-table--job .hv-record-avatar:not(#\#):not(#\#):not(#\#) svg { color: var(--h-accent) !important; }
html body .hv-record-table--job tbody td:not(:first-child):not(#\#):not(#\#) {
  color: var(--h-ink-2) !important;
}
/* A long job title keeps to one line with an ellipsis; the pay line sits under it. */
.hv-record-table--job .hv-record-identity > span { min-width: 0; }
.hv-record-table--job .hv-record-identity strong { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Status pills: one plain pill everywhere, used only where someone has to act. No dot, no outline and no candy tint: a quiet
   fill in deeper colours with bolder words, so a status reads like a printed label rather than a UI-kit badge.
   Covers the status component (x-ui.status), older badges (.z-badge with a text colour), record lists
   (.hv-record-status), tags (.hx-tag) and a job's status button (.hjp-status). */
:root, [data-theme="light"] {
  --h-pill-grey-bg: #EEEEF2;   --h-pill-grey: #555869;
  --h-pill-green-bg: #E3EFE7;  --h-pill-green: #1D6640;
  --h-pill-amber-bg: #F6E9D0;  --h-pill-amber: #764705;
  --h-pill-red-bg: #F6DDD8;    --h-pill-red: #982C20;
  --h-pill-violet-bg: #E9E6F7; --h-pill-violet: #4334AE;
}
[data-theme="dark"] {
  --h-pill-grey-bg: rgb(255 255 255 / .08);  --h-pill-grey: #B9BCCB;
  --h-pill-green-bg: rgb(46 156 98 / .2);    --h-pill-green: #8FD6AE;
  --h-pill-amber-bg: rgb(208 138 28 / .22);  --h-pill-amber: #F2C46D;
  --h-pill-red-bg: rgb(224 90 72 / .22);     --h-pill-red: #F4A497;
  --h-pill-violet-bg: rgb(140 125 240 / .22); --h-pill-violet: #C9C1FF;
}
/* A task's priority (High, Urgent) is a fact about the task, not something late: on Tasks, on a record and on Home
   it is the same quiet grey pill. Overdue is shown by the due date's colour. */
html body :is(.hv-record-status, .z-badge, .hx-tag, .htk-flag, .hh-task__flag):not(#\#):not(#\#) {
  display: inline-flex;
  align-items: center;
  gap: 6px !important;
  min-height: 22px;
  padding: 2px 9px !important;
  border: 0 !important;
  border-radius: var(--h-r-sm) !important;
  box-shadow: none !important;
  background: var(--h-pill-grey-bg) !important;
  color: var(--h-pill-grey) !important;
  font-size: var(--h-fs-12-5) !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  white-space: nowrap;
}
/* The dot the old badges drew before the words */
html body :is(.hv-record-status, .z-badge, .hx-tag):not(#\#):not(#\#) > :is(i, span.rounded-full):empty {
  display: none !important;
}
/* A state that is fine (done, live, sent, clear, approved) needs no one, so it is not a pill: plain 13/500 words in
   ink-2 that sit on the text line. The "fine" tone of x-ui.status, and the older green badges, read this way. */
html body :is(.hx-pill.is-fine, .hx-pill.is-success, .hv-record-status--success, .hv-record-status--green, .z-badge.text-z-green, .hx-tag--ok):not(#\#):not(#\#) {
  min-height: 0;
  padding: 0 !important;
  background: transparent !important;
  color: var(--h-ink-2) !important;
  font-size: var(--h-fs-13) !important;
  font-weight: 500 !important;
  line-height: 20px !important;
}
html body :is(.hx-pill.is-warning, .hv-record-status--warning, .z-badge.text-z-amber, .z-badge.text-amber-800, .hx-tag--lead):not(#\#):not(#\#) {
  background: var(--h-pill-amber-bg) !important;
  color: var(--h-pill-amber) !important;
}
html body :is(.hx-pill.is-danger, .hv-record-status--danger, .z-badge.text-z-red, .hx-tag--warn):not(#\#):not(#\#) {
  background: var(--h-pill-red-bg) !important;
  color: var(--h-pill-red) !important;
}
html body :is(.hx-pill.is-info, .hv-record-status--info, .z-badge.text-z-info, .z-badge.text-accent, .hx-tag--strong):not(#\#):not(#\#) {
  background: var(--h-pill-violet-bg) !important;
  color: var(--h-pill-violet) !important;
}
/* Solid badges stay solid (a count on a dark chip, a red alert) */
html body .z-badge.bg-z-red:not(#\#):not(#\#) { background: var(--h-danger) !important; color: #fff !important; }
html body .z-badge.bg-ink:not(#\#):not(#\#) { background: var(--h-ink) !important; color: var(--h-panel) !important; }
html body .hx-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* A job's status button (Open, On hold, Filled) uses the same colours */
.hjp-status:not(#\#) { --hjp-fg: var(--h-pill-grey); --hjp-bg: var(--h-pill-grey-bg); }
.hjp-status--green:not(#\#) { --hjp-fg: var(--h-pill-green); --hjp-bg: var(--h-pill-green-bg); }
.hjp-status--amber:not(#\#) { --hjp-fg: var(--h-pill-amber); --hjp-bg: var(--h-pill-amber-bg); }
.hjp-status--red:not(#\#) { --hjp-fg: var(--h-pill-red); --hjp-bg: var(--h-pill-red-bg); }
html body .hjp-status > button.z-btn-ghost:not(#\#):not(#\#), html body .hjp-status__pill:not(#\#):not(#\#) { font-weight: 600 !important; }
html body .hjp-status .hjp-dot:not(#\#):not(#\#) { display: none !important; }

/* Who: initials sit on stone with a fine ring, so they hold their shape on white and on grey */
html body :is(.hv-record-avatar, .hx-mark:not(.hbm), .hpb-av:not(:has(img))):not(.hk-hue):not(#\#):not(#\#) {
  background: rgb(var(--h-ink-rgb) / .055) !important;
  color: var(--h-ink-2) !important;
  box-shadow: inset 0 0 0 1px rgb(var(--h-ink-rgb) / .05) !important;
}

/* Pipeline boards: Home, Pipeline and a job's Pipeline tab draw the same board. A column is a lane sunk into the
   page (a faint ink well, radius 16, padding 8) with a 3px bar in its stage's colour at the top; the stage name sits
   with its count in a pill of the same colour. Cards are white, radius 12, the card shadow at rest; pointed at, a
   card rises a pixel onto the raise shadow. An empty column says so in one quiet line and is no taller than that. */
@scope (:root) to (.h-stage-board) {
.hpb-col {
  border-radius: var(--h-r-panel) !important;
  background: rgb(var(--h-ink-rgb) / .035) !important;
  box-shadow: none !important;
}
.hpb-col.is-over {
  background: color-mix(in srgb, var(--s) 12%, rgb(var(--h-ink-rgb) / .035)) !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--s) 55%, transparent) !important;
}
.hpb-col__bar { height: 3px !important; border-radius: var(--h-r-round) !important; opacity: 1; }
.hpb-col__name {
  color: var(--h-ink) !important;
  font-size: var(--h-fs-13) !important;
  font-weight: 600 !important;
  line-height: 20px !important;
}
.hpb-count {
  display: inline-flex;
  align-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  justify-content: center;
  border-radius: var(--h-r-tag);
  background: color-mix(in srgb, var(--s) 24%, transparent);
  color: var(--s-ink) !important;
  font-size: var(--h-fs-12) !important;
  font-weight: 600 !important;
  line-height: 20px;
  align-self: center;
}
.hpb-card:not(.is-dragging) {
  border: 0 !important;
  border-radius: var(--h-r-inset) !important;
  background: var(--h-panel) !important;
  box-shadow: var(--h-shadow-card) !important;
  transition: box-shadow var(--h-quick) var(--h-ease), transform var(--h-quick) var(--h-ease) !important;
}
.hpb-card:not(.is-dragging):is(:hover, :focus-visible) { box-shadow: var(--h-shadow-raise) !important; transform: translateY(-1px); }
/* Pressed, the card settles back onto the board (the press dip itself comes from the shared motion script). */
.hpb-card:not(.is-dragging):active { box-shadow: var(--h-shadow-card) !important; transform: none; }
.hpb-empty {
  padding: 4px 4px 8px !important;
  border: 1px dashed transparent !important;
  border-radius: var(--h-r-sm) !important;
  background: transparent !important;
  color: var(--h-subtle) !important;
  font-size: var(--h-fs-13) !important;
  line-height: 20px;
  text-align: left;
}
.hpb-col.is-over .hpb-empty { border-color: var(--h-line-strong) !important; }
}
/* In dark theme a raised surface is lighter, so the cards take the lighter step. */
@scope (html[data-theme="dark"]) to (.h-stage-board) {
  .hpb-card:not(.is-dragging) { background: var(--h-panel-2) !important; }
}

/* Top bar actions: quiet icon buttons that answer when you point at them. The wash grows from the centre under the
   icon (hyrer-motion.css, "Touch"); the button itself stays clear. */
html body .z-topbar :is(.z-icon-button, .z-topbar-action):not(.hx-create-trigger):not(#\#):not(#\#) {
  border-radius: var(--h-r-ctl) !important;
}
html body .z-topbar .z-icon-button:not(#\#):not(#\#):hover {
  background: transparent !important;
  color: var(--h-ink) !important;
}

/* Links in running text are violet, and underline only when you point at them */
html body.z-crm-app #main-content :is(p, li, td, dd) > a:not([class]):not(#\#):not(#\#) {
  color: var(--h-accent);
  text-decoration: none;
}
html body.z-crm-app #main-content :is(p, li, td, dd) > a:not([class]):not(#\#):not(#\#):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Type rendering */
html body.z-crm-app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ticks and choices: Hyrer's own checkbox and radio, crisp at every size, violet when on */
:where(html body:is(.z-crm-app, .z-crm-auth) input:is([type="checkbox"], [type="radio"]):not(.sr-only):not([role="switch"]):not([class*="__"]):not([class*="appearance-none"])) {
  width: 16px;
  height: 16px;
}
html body:is(.z-crm-app, .z-crm-auth) input:is([type="checkbox"], [type="radio"]):not(.sr-only):not([role="switch"]):not([class*="__"]):not([class*="appearance-none"]):not(#\#):not(#\#) {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: inline-block;
  padding: 0;
  border: 1.5px solid var(--h-line-strong);
  border-radius: var(--h-r-tag);
  background: var(--h-panel) center / 12px 12px no-repeat;
  box-shadow: var(--h-shadow-press);
  color: var(--h-accent);
  vertical-align: -3px;
  cursor: pointer;
  transition: background-color var(--h-quick) var(--h-ease), border-color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease);
}
/* Radios are round. (Same specificity as the shared rule above, so it wins by coming later.) */
html body:is(.z-crm-app, .z-crm-auth) input[type="radio"]:not(.sr-only):not([role="switch"]):not([class*="__"]):not([class*="appearance-none"]):not(#\#):not(#\#) {
  border-radius: 50%;
}
html body:is(.z-crm-app, .z-crm-auth) input:is([type="checkbox"], [type="radio"]):not(.sr-only):not([role="switch"]):not([class*="__"]):not([class*="appearance-none"]):not(:checked):not(:disabled):not(#\#):not(#\#):hover {
  border-color: rgb(var(--h-subtle-rgb) / .7);
}
html body:is(.z-crm-app, .z-crm-auth) input[type="checkbox"]:not(.sr-only):not([role="switch"]):not([class*="__"]):not([class*="appearance-none"]):checked:not(#\#):not(#\#) {
  border-color: var(--h-accent);
  background-color: var(--h-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E");
  box-shadow: none;
}
html body:is(.z-crm-app, .z-crm-auth) input[type="checkbox"]:not(.sr-only):not([role="switch"]):not([class*="__"]):not([class*="appearance-none"]):indeterminate:not(#\#):not(#\#) {
  border-color: var(--h-accent);
  background-color: var(--h-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 6h6'/%3E%3C/svg%3E");
}
html body:is(.z-crm-app, .z-crm-auth) input[type="radio"]:not(.sr-only):not([role="switch"]):not([class*="__"]):not([class*="appearance-none"]):checked:not(#\#):not(#\#) {
  border-color: var(--h-accent);
  background: var(--h-panel);
  box-shadow: inset 0 0 0 3.5px var(--h-accent), var(--h-shadow-press);
}
html[data-theme="dark"] body:is(.z-crm-app, .z-crm-auth) input[type="checkbox"]:not(.sr-only):not([role="switch"]):not([class*="__"]):not([class*="appearance-none"]):checked:not(#\#):not(#\#) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23171430' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E");
}
html body:is(.z-crm-app, .z-crm-auth) input:is([type="checkbox"], [type="radio"]):not(.sr-only):not([role="switch"]):not([class*="__"]):not([class*="appearance-none"]):disabled:not(#\#):not(#\#) {
  opacity: .5;
  cursor: not-allowed;
}
html body:is(.z-crm-app, .z-crm-auth) input:is([type="checkbox"], [type="radio"]):not(.sr-only):not([role="switch"]):not([class*="__"]):not([class*="appearance-none"]):focus-visible:not(#\#):not(#\#) {
  outline: 2px solid var(--h-focus);
  outline-offset: 2px;
}

/* Keyboard keys look like keys wherever Hyrer shows a shortcut */
html body.z-crm-app :not(.hk-toast__undo) > kbd:not(.z-search-shortcut):not(#\#) {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  border: 0;
  border-radius: var(--h-r-tag);
  background: var(--h-panel);
  box-shadow: inset 0 0 0 1px var(--h-line), 0 1px 0 var(--h-line);
  color: var(--h-ink-2);
  font-family: var(--h-font);
  font-size: var(--h-fs-12);
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

/* File pickers: the browser's grey "Choose File" becomes a Hyrer secondary button */
html body:is(.z-crm-app, .z-crm-auth) input[type="file"]::file-selector-button {
  height: 30px;
  margin-right: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--h-r-sm);
  background: var(--h-panel);
  box-shadow: inset 0 0 0 1px var(--h-line-strong), var(--h-shadow-press);
  color: var(--h-ink);
  font: 500 13px/30px var(--h-font);
  cursor: pointer;
  transition: background-color var(--h-quick) var(--h-ease);
}
html body:is(.z-crm-app, .z-crm-auth) input[type="file"]:hover::file-selector-button {
  background: var(--h-panel-2);
}
html body:is(.z-crm-app, .z-crm-auth) input[type="file"] {
  color: var(--h-ink-2);
  font-size: var(--h-fs-13);
}
/* A file picker drawn as a field hugs its button, so it is as tall as the fields around it (40px) */
html body .z-input[type="file"]:not(#\#):not(#\#) {
  padding: 4px !important;
  line-height: 30px !important;
}

/* Bulk selection: the bar that appears when rows are ticked carries a faint violet, matching the ticked rows */
html body .hv-record-selection:not(#\#):not(#\#) {
  background: rgb(var(--h-accent-rgb) / .05) !important;
  border-color: rgb(var(--h-accent-rgb) / .14) !important;
}
html body .hv-record-selection > :is(span, strong, b):first-child:not(#\#):not(#\#) {
  color: var(--h-accent) !important;
  font-weight: 600 !important;
}

/* ------------------------------------------------------------------ */
/* 11. Motion: quiet, quick and always optional                         */
/*     A highlight glides to what you chose and a button dips as you    */
/*     press it (hyrer-motion.js, which also runs the loading line      */
/*     below). Page arrival, the light/dark reveal and Home's figures   */
/*     are in hyrer-motion.css.                                         */
/* ------------------------------------------------------------------ */

/* Loading: a thin violet line along the top while a page, or something you clicked, takes a moment */
.hx-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2147483000;
  height: 2px;
  pointer-events: none;
  opacity: 0;
}
.hx-progress > i {
  display: block;
  height: 100%;
  background: var(--h-accent);
  transform: scaleX(0);
  transform-origin: left;
}
[dir="rtl"] .hx-progress > i { transform-origin: right; }

/* Waiting for words: where Hyrer is writing something (a summary, the day's plan) the block holds its place with
   quiet bars the length of the lines to come, in place of a pulsing sentence. A status line beside it, read out to
   screen readers, says what is happening. The light that crosses the bars is in hyrer-motion.css. */
.h-skel { position: relative; display: block; overflow: hidden; height: 10px; border-radius: 5px; background: rgb(var(--h-ink-rgb) / .07); }
.h-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(var(--h-panel-rgb) / .75), transparent); transform: translateX(-100%); }
.h-skel-lines { display: grid; gap: 10px; padding: 4px 0; }
.h-skel-lines > .h-skel:nth-child(2) { width: 92%; }
.h-skel-lines > .h-skel:last-child { width: 58%; }

/* Headline figures use even-width digits, so numbers line up */
:is(.hwb-fig__value, .hx-em__stats strong, .hr-metrics strong, .hv-kpi__value, .tsj-stat > strong,
  .hwb-figures strong) {
  font-variant-numeric: tabular-nums;
}

/* Tick-on chips for a multiple choice (x-candidates.work-types): quiet until chosen, then lavender with a violet tick */
.z-crm-app .hx-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.z-crm-app .hx-pick__opt { position: relative; margin: 0; cursor: pointer; }
.z-crm-app .hx-pick__opt > span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; color: var(--h-ink-2); font-size: var(--h-fs-13); font-weight: 500; white-space: nowrap; transition: background-color var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease); }
.z-crm-app .hx-pick__opt:hover > span { color: var(--h-ink); }
.z-crm-app .hx-pick__tick { display: none; color: var(--h-accent); }
.z-crm-app .hx-pick__opt input:checked + span .hx-pick__tick { display: inline-flex; }
.z-crm-app .hx-pick__opt input:focus-visible + span { outline: 2px solid var(--h-accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* 12. Craft (7 November 2026)                                          */
/*     Shared pieces that make Hyrer read as made rather than          */
/*     generated: icons on hairline plates instead of lavender tiles,  */
/*     figures in one strip, one quiet stepper for every wizard, and   */
/*     choices marked with a key or a crisp ring. Styling only.        */
/* ------------------------------------------------------------------ */

/* 12.1 Icons stand on their own. Where an icon anchors a row, a dialog or an empty page it sits on a quiet plate
   (a hairline square with a key's bottom edge) in ink-2, never on a lavender tile. (Home's rows and the pipeline dialog's choices draw their own plates.)
   New markup can use .h-plate for the same plate. */
html body :is(.h-plate, .hxf-empty__icon, .h-record-empty__plate, .hxmail-empty__icon, .h-refs__empty-mark, .hx-brand-tile, .hi-summary-icon, .hbd-count__icon, .z-empty-icon, .htk-empty__icon,
  .hx-forms__ticon, .hcv-icon, .hcv-upload-icon, .hx-notes__icon, .hrp-empty__icon, .hx-em__empty-icon, .hcm-empty__icon,
  .hx-auto__empty-icon, .hx-intel__icon, .hap-head__mark, .hs-icon,
  .h-review-prompt__icon, .hc-action-icon, .hcc-empty-icon, .hcj2-none__icon, .hcj3-held__icon, .hcj3-start__icon,
  .hcjpaste-sent__icon, .hco-confirm__icon, .hco-start__icon, .hf-review-icon, .hfb__icon, .hjm-empty__icon, .hmb-connect__icon,
  .hmr__icon, .hnt-start__icon, .hsn-event__icon, .hv-metric-icon, .hwc__mark, .hx-ce__use-icon, .hx-confirm__outcome-icon,
  .hx-was-icon, .hxk-item__icon, .hxpk-mark, .isc-prompt__icon):not(#\#):not(#\#) {
  border: 0 !important;
  border-radius: var(--h-r-ctl) !important;
  background: var(--h-plate-face) !important;
  box-shadow: var(--h-plate) !important;
  color: var(--h-ink-2) !important;
}

/* 12.2 One empty state, wherever it sits (a record tab, a list, a panel, a page): the icon on its plate at the start,
   then a title of 14/500 ink and one line of 13 subtle beside it, and the one action under the text. It reads from
   the left like the rows it stands in for, and it is never a tall box: no minimum height, no border, no well of its
   own. An empty state with no icon is the text alone; a message that is a single sentence is that line in subtle. */
html body :is(.z-empty-state, .htk-empty, .hi-empty, .hrp-empty, .hx-forms__empty, .hxf-empty, .hxa-empty, .h-refs__empty, .hjm-empty, .hcm-empty, .hx-desk__empty, .tsj-empty, .hx-em__empty, .tb-empty, .hx-auto__empty, .hsn-timeline__empty, .hcc-empty, .hw-empty, .h-record-empty, .hxmail-empty, .ha-empty):not(#\#):not(#\#):not(#\#) {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px !important;
  row-gap: 0 !important;
  align-items: center;
  justify-items: start;
  min-height: 0 !important;
  margin: 0 !important;
  padding-block: 20px !important;
  border: 0 !important;
  text-align: left !important;
}
html body :is(.z-empty-state, .htk-empty, .hi-empty, .hrp-empty, .hx-forms__empty, .hxf-empty, .hxa-empty, .h-refs__empty, .hjm-empty, .hcm-empty, .hx-desk__empty, .tsj-empty, .hx-em__empty, .tb-empty, .hx-auto__empty, .hsn-timeline__empty, .hcc-empty, .hw-empty, .h-record-empty, .hxmail-empty, .ha-empty):not(:has(> :is(.z-empty-icon, .htk-empty__icon, .hrp-empty__icon, .hx-em__empty-icon, .hcm-empty__icon, .hx-auto__empty-icon, .hjm-empty__icon, .hcc-empty-icon, .hxf-empty__icon, .h-record-empty__plate, .hxmail-empty__icon, .hcm-ic, .h-refs__empty-mark, .h-plate))):not(#\#):not(#\#):not(#\#) { display: block !important; }
html body :is(.z-empty-state, .htk-empty, .hi-empty, .hrp-empty, .hx-forms__empty, .hxf-empty, .hxa-empty, .h-refs__empty, .hjm-empty, .hcm-empty, .hx-desk__empty, .tsj-empty, .hx-em__empty, .tb-empty, .hx-auto__empty, .hsn-timeline__empty, .hcc-empty, .hw-empty, .h-record-empty, .hxmail-empty, .ha-empty):not(:has(> *)):not(#\#):not(#\#):not(#\#) { color: var(--h-subtle) !important; font-size: var(--h-fs-13) !important; line-height: 20px !important; }
html body :is(.z-empty-state, .htk-empty, .hi-empty, .hrp-empty, .hx-forms__empty, .hxf-empty, .hxa-empty, .h-refs__empty, .hjm-empty, .hcm-empty, .hx-desk__empty, .tsj-empty, .hx-em__empty, .tb-empty, .hx-auto__empty, .hsn-timeline__empty, .hcc-empty, .hw-empty, .h-record-empty, .hxmail-empty, .ha-empty) > *:not(#\#):not(#\#):not(#\#) { grid-column: 2; }
html body :is(.z-empty-state, .htk-empty, .hi-empty, .hrp-empty, .hx-forms__empty, .hxf-empty, .hxa-empty, .h-refs__empty, .hjm-empty, .hcm-empty, .hx-desk__empty, .tsj-empty, .hx-em__empty, .tb-empty, .hx-auto__empty, .hsn-timeline__empty, .hcc-empty, .hw-empty, .h-record-empty, .hxmail-empty, .ha-empty) > :is(.z-empty-icon, .htk-empty__icon, .hrp-empty__icon, .hx-em__empty-icon, .hcm-empty__icon, .hx-auto__empty-icon, .hjm-empty__icon, .hcc-empty-icon, .hxf-empty__icon, .h-record-empty__plate, .hxmail-empty__icon, .hcm-ic, .h-refs__empty-mark, .h-plate):not(#\#):not(#\#):not(#\#) {
  display: inline-flex !important;
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
}
html body :is(.z-empty-state, .htk-empty, .hi-empty, .hrp-empty, .hx-forms__empty, .hxf-empty, .hxa-empty, .h-refs__empty, .hjm-empty, .hcm-empty, .hx-desk__empty, .tsj-empty, .hx-em__empty, .tb-empty, .hx-auto__empty, .hsn-timeline__empty, .hcc-empty, .hw-empty, .h-record-empty, .hxmail-empty, .ha-empty) :is(.z-empty-icon, .htk-empty__icon, .hrp-empty__icon, .hx-em__empty-icon, .hcm-empty__icon, .hx-auto__empty-icon, .hjm-empty__icon, .hcc-empty-icon, .hxf-empty__icon, .h-record-empty__plate, .hxmail-empty__icon, .hcm-ic, .h-refs__empty-mark, .h-plate) svg:not(#\#):not(#\#):not(#\#) {
  width: 20px !important;
  height: 20px !important;
}
html body :is(.z-empty-state, .htk-empty, .hi-empty, .hrp-empty, .hx-forms__empty, .hxf-empty, .hxa-empty, .h-refs__empty, .hjm-empty, .hcm-empty, .hx-desk__empty, .tsj-empty, .hx-em__empty, .tb-empty, .hx-auto__empty, .hsn-timeline__empty, .hcc-empty, .hw-empty, .h-record-empty, .hxmail-empty, .ha-empty) :is(h2, h3, h4, strong:first-of-type, .htk-empty__title, .tb-empty__title, .h-record-empty__title, p.font-medium, p.font-semibold):not(.hx-forms__template > strong):not(#\#):not(#\#):not(#\#) {
  display: block;
  margin: 0 !important;
  color: var(--h-ink) !important;
  font-family: var(--h-font) !important;
  font-size: var(--h-fs-14) !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
}
html body :is(.z-empty-state, .htk-empty, .hi-empty, .hrp-empty, .hx-forms__empty, .hxf-empty, .hxa-empty, .h-refs__empty, .hjm-empty, .hcm-empty, .hx-desk__empty, .tsj-empty, .hx-em__empty, .tb-empty, .hx-auto__empty, .hsn-timeline__empty, .hcc-empty, .hw-empty, .h-record-empty, .hxmail-empty, .ha-empty) :is(p, span, .htk-empty__text, .h-record-empty__help):not(.font-medium):not(.font-semibold):not(.htk-empty__title):not(.tb-empty__title):not(.h-record-empty__title):not(:is(.z-empty-icon, .htk-empty__icon, .hrp-empty__icon, .hx-em__empty-icon, .hcm-empty__icon, .hx-auto__empty-icon, .hjm-empty__icon, .hcc-empty-icon, .hxf-empty__icon, .h-record-empty__plate, .hxmail-empty__icon, .hcm-ic, .h-refs__empty-mark, .h-plate)):not(:is(.z-empty-icon, .htk-empty__icon, .hrp-empty__icon, .hx-em__empty-icon, .hcm-empty__icon, .hx-auto__empty-icon, .hjm-empty__icon, .hcc-empty-icon, .hxf-empty__icon, .h-record-empty__plate, .hxmail-empty__icon, .hcm-ic, .h-refs__empty-mark, .h-plate) *):not(#\#):not(#\#):not(#\#) {
  max-width: 60ch;
  margin: 0 !important;
  color: var(--h-subtle) !important;
  font-size: var(--h-fs-13) !important;
  line-height: 20px !important;
  text-align: left !important;
  text-wrap: pretty;
}
html body :is(.z-empty-state, .htk-empty, .hi-empty, .hrp-empty, .hx-forms__empty, .hxf-empty, .hxa-empty, .h-refs__empty, .hjm-empty, .hcm-empty, .hx-desk__empty, .tsj-empty, .hx-em__empty, .tb-empty, .hx-auto__empty, .hsn-timeline__empty, .hcc-empty, .hw-empty, .h-record-empty, .hxmail-empty, .ha-empty) > :is(div, a, button):not(.h-record-empty__text):not(#\#):not(#\#):not(#\#) { margin-top: 12px !important; }
html body :is(.z-empty-state, .htk-empty, .hi-empty, .hrp-empty, .hx-forms__empty, .hxf-empty, .hxa-empty, .h-refs__empty, .hjm-empty, .hcm-empty, .hx-desk__empty, .tsj-empty, .hx-em__empty, .tb-empty, .hx-auto__empty, .hsn-timeline__empty, .hcc-empty, .hw-empty, .h-record-empty, .hxmail-empty, .ha-empty) > span:not(#\#):not(#\#):not(#\#) { display: block; }
/* The record Emails tab drew its empty state in a grey well; it stands in the card like the others. */
html body .hxmail-empty:not(#\#):not(#\#):not(#\#) { padding-inline: 0 !important; background: transparent !important; border-radius: 0 !important; }

/* 12.3 Figures that belong together share one strip with hairline dividers, not a row of identical cards.
   (A 1px gap over a hairline fill draws the dividers, so it holds however many columns fit.) */
html body :is(.hi-diary .hi-summary, .hrp-stats, .hbd-counts, .hh-figs, .tsj-summary, .lw-kpis, .hx-acc__figs, .hxp-overview, .hlf-focus, .hx-em__stats, .hsoc-figs, .hx-intake-metrics, .hxa-stats, .hxh-stats):not(#\#):not(#\#) {
  gap: 1px !important;
  overflow: hidden;
  border-radius: var(--h-r-panel) !important;
  background: var(--h-line) !important;
  box-shadow: var(--h-shadow-card) !important;
}
/* Reports' second strip (activity) is the lower half of the same card as the headline figures: no gap between
   them, square where they meet and a hairline between, so the page has one strip with one lead figure. */
html body .hrp-stats:has(+ .hrp-stats--minor):not(#\#):not(#\#) { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
html body .hrp-stats + .hrp-stats--minor:not(#\#):not(#\#) { margin-top: -16px; border-top: 1px solid var(--h-line); border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
html body :is(.hi-diary .hi-summary > div, .hrp-stats > .hrp-stat, .hbd-counts > *, .hh-figs > .hh-fig, .tsj-summary > .h-fig, .lw-kpis > .lw-kpi, .hx-acc__figs > .h-fig, .hxp-overview > *, .hlf-focus > .hlf-focus__item, .hx-em__stats > div, .hsoc-figs > .hsoc-fig, .hx-intake-metrics > div, .hxa-stats > div, .hxh-stats > .hxh-stat):not(#\#):not(#\#) {
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--h-panel) !important;
  box-shadow: none !important;
}
/* The first figure in a strip is the lead. It sits on ink with violet light coming from its corner, as the
   brand's dark panels do, and everything inside it reads from the light-on-ink colours set here. */
html body :is(.hi-diary .hi-summary > div, .hbd-counts > *, .hh-figs > .hh-fig, .tsj-summary > .h-fig, .lw-kpis > .lw-kpi, .hx-acc__figs > .h-fig, .hxp-overview > *, .hlf-focus > .hlf-focus__item, .hx-em__stats > div, .hsoc-figs > .hsoc-fig, .hrp-stats:not(.hrp-stats--minor) > .hrp-stat, .hs-workspace .h-figs > .h-fig, .hcg .h-figs > .h-fig, .hx-intake-metrics > div, .hxa-stats > div, .hxh-stats > .hxh-stat):first-child:not(#\#):not(#\#) {
  --h-ink-rgb: 255 255 255;
  --h-ink-2-rgb: 218 215 242;
  --h-subtle-rgb: 176 172 214;
  --h-accent-rgb: 184 172 255;
  --h-money-rgb: 126 214 166;
  --h-danger-rgb: 240 150 138;
  --h-ink: rgb(var(--h-ink-rgb));
  --h-ink-2: rgb(var(--h-ink-2-rgb));
  --h-subtle: rgb(var(--h-subtle-rgb));
  --h-accent: rgb(var(--h-accent-rgb));
  --h-money: rgb(var(--h-money-rgb));
  --h-danger: rgb(var(--h-danger-rgb));
  background: var(--h-ink-surface) !important;
  color: var(--h-ink) !important;
}
/* Figures that are links or quick views (Home, Reports, Lead finder, Accounts) answer the pointer with the faintest violet
   wash laid over their face, ink or white, and nothing else: they stay in the strip. */
html body :is(.hh-figs > .hh-fig, .hrp-stats > .hrp-stat.is-link, .hlf-focus > .hlf-focus__item, .hx-acc__figs > .h-fig.is-link):not(#\#):not(#\#) { transform: none !important; transition: background-color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease) !important; }
html body :is(.hh-figs > .hh-fig, .hrp-stats > .hrp-stat.is-link, .hlf-focus > .hlf-focus__item, .hx-acc__figs > .h-fig.is-link):not(#\#):not(#\#):hover { box-shadow: inset 0 0 0 100vmax rgb(var(--h-accent-rgb) / .04) !important; }
html body :is(.hh-figs > .hh-fig, .hrp-stats > .hrp-stat.is-link, .hlf-focus > .hlf-focus__item, .hx-acc__figs > .h-fig.is-link):first-child:not(#\#):not(#\#):hover { box-shadow: inset 0 0 0 100vmax rgb(var(--h-accent-rgb) / .08) !important; }

/* 12.4 The one stepper (<x-wizard.steps>, rebuilt 11 November 2026 on the look of New job's steps).
   Steps behind you are ticked on lavender, the one you're on is in ink with a violet number, the rest wait in grey.
   A short rule joins them and turns violet behind you. No boxes, no "Current step" captions (they are read out to
   screen readers instead). On a phone only the step you're on keeps its name. */
.h-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 0; list-style: none; }
.h-steps:not(.h-steps--flush) { margin-bottom: 20px; }
.h-step { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--h-ink-2); font-size: var(--h-fs-13); font-weight: 500; line-height: 22px; }
.h-step + .h-step::before { content: ""; flex: none; width: 32px; height: 1px; margin-right: 4px; background: var(--h-line-strong); }
.h-step.is-done + .h-step::before { background: var(--h-accent); }
.h-step.is-on { color: var(--h-ink); font-weight: 600; }
.h-step__dot { display: inline-grid; flex: none; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--h-panel); box-shadow: inset 0 0 0 1px var(--h-line-strong); color: var(--h-subtle); font-size: var(--h-fs-12); font-weight: 600; line-height: 1; }
.h-step.is-on .h-step__dot { background: var(--h-accent); box-shadow: none; color: var(--h-on-accent); }
.h-step.is-done .h-step__dot { background: var(--h-tint); box-shadow: none; color: var(--h-accent); }
.h-step.is-warn .h-step__dot { background: rgb(var(--c-z-amber) / .14); color: rgb(var(--c-z-amber)); font-weight: 700; }
.h-step__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A done step goes back to it: plain ink-2 at rest, underlined only when pointed at, like every other link. */
.h-step__back { position: relative; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: none; text-underline-offset: 3px; transition: color var(--h-quick) var(--h-ease); }
.h-step__back::after { content: ""; position: absolute; inset: -4px 0; }
.h-step__back:hover { color: var(--h-ink); text-decoration: underline; }
/* Steps a page switches between itself carry both the number and the tick; the step's state shows one of them. */
.h-step__tick, .h-step.is-done .h-step__num { display: none; }
.h-step.is-done .h-step__tick { display: inline-grid; }
@media (max-width: 640px) {
  .h-steps { gap: 8px; }
  .h-step + .h-step::before { width: 14px; margin-right: 0; }
  .h-step:not(.is-on) .h-step__label { display: none; }
}

/* 12.6 Settings: each setting's name reads in ink and only turns violet when you point at it */
html body.z-crm-app #main-content .hs-home :is(.hs-account__links, .hs-group) a:not(#\#):not(#\#) {
  color: var(--h-ink) !important;
}
html body.z-crm-app #main-content .hs-home :is(.hs-account__links, .hs-group) a:not(#\#):not(#\#) strong { font-weight: 600; }
html body.z-crm-app #main-content .hs-home :is(.hs-account__links, .hs-group) a:not(#\#):not(#\#):hover { text-decoration: none; }
html body.z-crm-app #main-content .hs-home :is(.hs-account__links, .hs-group) a:not(#\#):not(#\#):hover :is(strong, .hs-icon) { color: var(--h-accent) !important; }

/* 12.7 Initials: the stone face from hyrer-polish.css (.hk-hue), held at this weight so list and record styles
   that paint their own avatar colours can't put the candy tint back */
html body .hk-hue:not(#\#):not(#\#) {
  background: oklch(.9 .085 calc(var(--h) * 27)) !important;
  color: oklch(.36 .14 calc(var(--h) * 27)) !important;
  box-shadow: none !important;
}
html body .hk-hue:not(#\#):not(#\#) :is(b, span, svg),
html body .hk-hue:not(#\#):not(#\#)::before { color: oklch(.36 .14 calc(var(--h) * 27)) !important; }
html[data-theme="dark"] body .hk-hue:not(#\#):not(#\#) {
  background: oklch(.34 .06 calc(var(--h) * 27)) !important;
  color: oklch(.9 .07 calc(var(--h) * 27)) !important;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06) !important;
}
html[data-theme="dark"] body .hk-hue:not(#\#):not(#\#) :is(b, span, svg),
html[data-theme="dark"] body .hk-hue:not(#\#):not(#\#)::before { color: oklch(.9 .07 calc(var(--h) * 27)) !important; }

/* 12.8 A person or a company is always a round disc of initials, whichever page draws it: the shared avatar
   (.hxa, .hk-hue) and the avatars areas built themselves (job people, temp bookings, settings users, chat, record
   headers on a phone, email senders and the agency itself as a sender, a company's contacts, the job and company
   on a candidate's pipeline). Brand marks and a job's own mark keep their tile. */
html body :is(.hxa, .hk-hue, .hjp-av, .htb-avatar, .hs-avatar, .hxc-avatar, .hx-profile-avatar, .hxmail-av, .hv-record-avatar:not(.hv-record-table--job *), .hpb-av, .tsj-avatar, .hx-name-avatar, .hcov-contact-avatar, .hxo-mark):not(#\#):not(#\#) {
  border-radius: var(--h-r-round) !important;
}

/* ------------------------------------------------------------------ */
/* 13. Forms: sections and the action bar (November 2026)              */
/*     A long form reads as a few short sections. Each has its name   */
/*     and a line of plain words beside it (above it on narrow        */
/*     screens), and the actions sit in one bar that stays in reach.  */
/*                                                                    */
/*     <div class="h-sections [h-sections--numbered]">                */
/*       <section class="h-section">                                  */
/*         <div class="h-section__aside">                             */
/*           <h3 class="h-section__title">…</h3>                      */
/*           <p class="h-section__lede">…</p>                         */
/*         </div>                                                     */
/*         <div class="h-section__body">fields</div>                  */
/*       </section>                                                   */
/*     </div>                                                         */
/*     <footer class="h-actionbar"><p class="h-actionbar__note">…</p> */
/*       <div class="h-actionbar__actions">buttons</div></footer>    */
/* ------------------------------------------------------------------ */

.h-sections { container: h-sections / inline-size; min-width: 0; counter-reset: h-section; }
.h-section { display: grid; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--h-line); }
.h-sections > .h-section:last-child { border-bottom: 0; }
.h-section__aside { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.h-section__title { grid-column: -2; margin: 0; color: var(--h-ink); font-size: var(--h-fs-14); font-weight: 600; line-height: 20px; }
.h-section__lede { grid-column: -2; max-width: 52ch; margin: 4px 0 0; color: var(--h-ink-2); font-size: var(--h-fs-13); line-height: 19px; }
.h-section__body { min-width: 0; }
.h-section__body > :last-child { margin-bottom: 0; }
/* Numbered sections count themselves: a small figure in a hairline ring before each title */
.h-sections--numbered .h-section { counter-increment: h-section; }
.h-sections--numbered .h-section__aside { grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; }
.h-sections--numbered .h-section__aside::before {
  content: counter(h-section);
  grid-row: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--h-line-strong);
  color: var(--h-subtle);
  font-size: var(--h-fs-12);
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: lining-nums;
}
/* A small button that belongs to the whole section (Test connection) sits under its words */
.h-section__tools { grid-column: -2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@container h-sections (min-width: 640px) {
  .h-section { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
}

/* Fields in a section: one column, two side by side once the section has room. .is-wide spans both;
   a short value (an email address) can keep a short field with .h-field--half. */
.h-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 16px; }
.h-field--half { max-width: 380px; }
@container h-sections (min-width: 760px) {
  .h-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-fields--2 > .is-wide { grid-column: 1 / -1; }
}

/* Help under a field: 12 subtle, 6 below it. An error under a field takes the same place. */
.h-help { display: block; margin: 6px 0 0; color: var(--h-subtle); font-size: var(--h-fs-12); line-height: 18px; }
.h-section__body .z-error { margin: 6px 0 0; font-size: var(--h-fs-12); }
/* A section body that holds several blocks (fields, a note, buttons) stacks them 16 apart */
.h-stack { display: grid; gap: 16px; min-width: 0; }
.h-stack > * { min-width: 0; margin: 0; }
/* A section's own buttons (Update password, Save picture) sit in one row under its fields */
.h-section__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.h-section__actions > .h-help { flex: 1 1 240px; margin: 0; }
/* Plain words in a section body (a status, a short explanation): 13 ink-2, one style */
.h-text { color: var(--h-ink-2); font-size: var(--h-fs-13); line-height: 20px; }
.h-text strong, .h-text b { color: var(--h-ink); font-weight: 500; }
/* A list of links to other settings: name and one line, a chevron at the end, hairlines between */
.h-links { display: grid; margin: 0; padding: 0; list-style: none; }
.h-links > a, .h-links > li > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 8px 0; color: var(--h-ink-2); }
.h-links > a + a, .h-links > li + li > a { border-top: 1px solid var(--h-line); }
.h-links b { display: block; color: var(--h-ink); font-size: var(--h-fs-13); font-weight: 500; line-height: 20px; }
.h-links small { display: block; color: var(--h-ink-2); font-size: var(--h-fs-12); line-height: 18px; }
.h-links > a:hover b, .h-links > li > a:hover b { color: var(--h-accent); }
/* Option tiles: a choice of two or three ways (WhatsApp, Email sending) or facts side by side. One radius, one
   padding; the chosen one takes the violet wash and a violet edge. */
.h-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.h-tile { display: block; min-width: 0; padding: 16px; border-radius: var(--h-r-inset); background: var(--h-panel); box-shadow: inset 0 0 0 1px var(--h-line); color: var(--h-ink-2); font-size: var(--h-fs-13); line-height: 20px; }
label.h-tile { cursor: pointer; transition: background-color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease); }
label.h-tile:hover { box-shadow: inset 0 0 0 1px var(--h-line-strong); }
.h-tile:is(.is-on, :has(input:checked)) { background: var(--h-tint); box-shadow: inset 0 0 0 1px var(--h-accent); }
.h-tile__title { display: block; margin: 0; color: var(--h-ink); font-size: var(--h-fs-14); font-weight: 600; line-height: 20px; }
.h-tile__text { display: block; margin: 4px 0 0; }
/* A well inside a section: steps of a set-up, a QR code */
.h-well { padding: 16px; border-radius: var(--h-r-inset); background: var(--h-panel-2); }
.h-well__title { margin: 0; color: var(--h-ink); font-size: var(--h-fs-14); font-weight: 600; line-height: 20px; }

/* A form card: the sections run inside the card's padding and the action bar closes it */
.h-form > .h-sections,
.h-form > form > .h-sections { padding: 0 24px; }
.h-form .h-actionbar { border-radius: 0 0 var(--h-r-panel) var(--h-r-panel); }
/* A list of switches in a section: the setting and its hint on the left, the switch on the right */
.h-toggles { display: grid; margin: 0; padding: 0; list-style: none; }
.h-toggles__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--h-line); }
.h-toggles__row:first-child { padding-top: 0; }
.h-toggles__row:last-child { padding-bottom: 0; border-bottom: 0; }
.h-toggles__copy { min-width: 0; }
.h-toggles__copy p { margin: 0; color: var(--h-ink); font-size: var(--h-fs-13); font-weight: 500; line-height: 20px; }
.h-toggles__copy small { display: block; max-width: 62ch; margin-top: 2px; color: var(--h-subtle); font-size: var(--h-fs-12); line-height: 17px; }
/* A warning that belongs to the whole form (a record that already exists) sits just above the action bar */
.h-form__note { padding: 0 24px 20px; }
.h-conflicts { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.h-conflicts li + li { margin-top: 2px; }
@media (max-width: 640px) {
  .h-form > .h-sections,
  .h-form > form > .h-sections { padding: 0 20px; }
  .h-form__note { padding: 0 20px 16px; }
}

/* The action bar: a hairline above, the solid panel colour, the main action last */
.h-actionbar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-height: 64px;
  padding: 12px 24px;
  border-top: 1px solid var(--h-line);
  background: var(--h-panel);
}
.h-actionbar__note { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 0 0; color: var(--h-subtle); font-size: var(--h-fs-13); }
.h-actionbar__note.is-ready { color: var(--h-ink-2); }
/* Something the action needs first (a missing company detail): the words in ink, the mark in amber, with a fix link */
.h-actionbar__note.is-warning { color: var(--h-ink-2); }
.h-actionbar__note.is-warning > svg { color: var(--h-warn); }
.h-actionbar__note.is-warning a { color: inherit; font-weight: 500; }
/* Unsaved changes: a small amber mark before the words, so the bar reads differently at a glance */
.h-actionbar__dirty { display: inline-flex; align-items: center; gap: 8px; color: var(--h-ink); font-weight: 500; }
.h-actionbar__dirty[wire\:dirty\.inline-flex] { display: none; }
.h-actionbar__dirty::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--h-warn-rgb)); box-shadow: 0 0 0 3px rgb(var(--h-warn-rgb) / .16); }
.h-actionbar__note > svg { flex: none; }
.h-actionbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .h-actionbar { padding: 12px 20px; }
  .h-actionbar__rest { display: none; }
  .h-actionbar__actions { width: 100%; }
  .h-actionbar__actions > :is(.z-btn-primary, .hv-button--primary) { flex: 1; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* 14. Task line: one line in, a task out (November 2026)             */
/*     <x-tasks.line> sits at the top of a list of tasks. You type    */
/*     "call Jack Friday 2pm"; what it understood shows underneath,   */
/*     and each reading has its own way out (the small cross).        */
/* ------------------------------------------------------------------ */
.h-taskline { padding: 4px 16px; border-bottom: 1px solid var(--h-line); }
.h-taskline:last-child { border-bottom: 0; }
.h-taskline__row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; }
.h-taskline__plus { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--h-line-strong); color: var(--h-subtle); transition: box-shadow var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease); }
.h-taskline:focus-within .h-taskline__plus { box-shadow: inset 0 0 0 1.5px var(--h-accent), 0 0 0 3px var(--h-focus); color: var(--h-accent); }
/* The field has no box of its own: the ring on the plus shows where you are */
.h-taskline input.h-taskline__input { width: 100%; min-width: 0; height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--h-ink); font: inherit; font-size: var(--h-fs-14); font-weight: 500; line-height: 20px; }
.h-taskline input.h-taskline__input::placeholder { color: var(--h-subtle); font-weight: 400; opacity: 1; }
.h-taskline input.h-taskline__input:focus { outline: none; box-shadow: none; }
.h-taskline__add { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border: 0; border-radius: var(--h-r-ctl); background: none; color: var(--h-accent); font: inherit; font-size: var(--h-fs-13); font-weight: var(--h-weight-control); cursor: pointer; transition: background-color var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease); }
.h-taskline__add:hover { background: var(--h-tint); color: var(--h-accent-hover); }
.h-taskline__add:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--h-focus); }
.h-taskline__add:disabled { background: none; color: var(--h-subtle); cursor: default; }
/* What it understood: the words that are left, then a chip for the day and one for the priority */
.h-taskline__read { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 24px; margin: -2px 0 10px 32px; color: var(--h-ink-2); font-size: var(--h-fs-13); line-height: 20px; }
.h-taskline__title { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-taskline__chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 3px 0 8px; border-radius: var(--h-r-tag); background: var(--h-tint); color: var(--h-ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.h-taskline__chip > svg { flex: none; color: var(--h-accent); }
.h-taskline__chip.is-high { background: var(--h-warn-soft); color: var(--h-warn); font-weight: 600; }
.h-taskline__drop { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--h-subtle); cursor: pointer; }
.h-taskline__drop:hover { background: rgb(var(--h-ink-rgb) / .08); color: var(--h-ink); }
.h-taskline__drop:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--h-focus); }
.h-taskline__quiet { color: var(--h-subtle); }
.h-taskline__link { padding: 0; border: 0; background: none; color: var(--h-accent); font: inherit; font-weight: 500; cursor: pointer; }
.h-taskline__link:hover { text-decoration: underline; text-underline-offset: 2px; }
.h-taskline__link:focus-visible { outline: none; border-radius: 4px; box-shadow: 0 0 0 3px var(--h-focus); }
.h-taskline__more { color: var(--h-ink-2); }
.h-taskline__more:hover { color: var(--h-ink); }
.h-taskline__error { margin: 0 0 10px 32px; color: var(--h-danger); font-size: var(--h-fs-13); line-height: 18px; }
/* On a touch screen the crosses are thumb-sized and the Enter hint goes: there is no Enter key to point at */
@media (pointer: coarse) {
  .h-taskline__drop { width: 28px; height: 28px; }
  .h-taskline__chip { height: 32px; }
  .h-taskline__key { display: none; }
}
@media (max-width: 640px) {
  .h-taskline__key { display: none; }
}

/* ------------------------------------------------------------------ */
/* 16. Figures strip (November 2026)                                  */
/*     <x-ui.figures> holds up to four <x-ui.figure>: a label, the    */
/*     number and one line of context, in one card divided by         */
/*     hairlines. No badges, pills or icons inside a figure.          */
/*     Each figure draws its own left and top hairline and the strip  */
/*     clips the outer ones, so the dividers hold however it wraps.   */
/*     The strip sets no margin: the page spaces it (mb-4, mt-5).     */
/* ------------------------------------------------------------------ */
.h-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: hidden; border-radius: var(--h-r-panel); background: var(--h-panel); box-shadow: var(--h-shadow-card); }
.h-fig { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 16px 20px 14px; box-shadow: -1px 0 0 var(--h-line), 0 -1px 0 var(--h-line); color: var(--h-ink); }
.h-fig__label { color: var(--h-ink-2); font-size: var(--h-fs-13); font-weight: 500; line-height: 18px; }
.h-fig__value { overflow-wrap: anywhere; font-size: var(--h-fs-28); font-weight: var(--h-weight-display); line-height: 34px; letter-spacing: var(--h-track-figure); font-variant-numeric: lining-nums proportional-nums; }
.h-fig__note { color: var(--h-subtle); font-size: var(--h-fs-12-5); line-height: 18px; }
.h-fig.is-alert .h-fig__value { color: var(--h-danger); }
/* A figure that leads somewhere is a link or a button with the figure's own look. Its focus ring sits inside the strip. */
.h-fig.is-link { border: 0; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.h-fig.is-link:focus-visible { outline: 2px solid var(--h-focus); outline-offset: -3px; }
/* The face needs this weight: the list bundle's stylesheet sets one font, with !important, on everything in the app.
   The digits are the font's own width: Cal Sans's equal-width digits widen its comma too ("1 , 047"). */
html body.z-crm-app :is(.h-fig__value, .htb-details__money strong) { font-family: var(--h-font-display) !important; }

/* ------------------------------------------------------------------ */
/* 17. Row actions are words (November 2026)                          */
/*     The action at the end of a list row is a word or two, not a    */
/*     boxed button: .h-rowgo, violet (.is-next) when it is the next  */
/*     thing to do on that row. First used on Bookings as .tb-go.     */
/* ------------------------------------------------------------------ */
.h-rowgo { display: inline-flex; align-items: center; height: 30px; margin-right: -9px; padding: 0 9px; border-radius: var(--h-r-ctl); color: var(--h-ink-2); font-size: var(--h-fs-13); font-weight: var(--h-weight-control); text-decoration: none; white-space: nowrap; transition: background-color var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease); }
.h-rowgo:hover { background: var(--h-hover); color: var(--h-ink); }
.h-rowgo:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--h-focus); }
.h-rowgo.is-next { color: var(--h-accent); }
.h-rowgo.is-next:hover { background: var(--h-tint); color: var(--h-accent-hover); }

/* ------------------------------------------------------------------ */
/* 18. Suggestions under a field (November 2026)                      */
/*     <x-location-autocomplete>: places offered while you type.      */
/*     The list looks like a menu (section 8): the same panel, the    */
/*     same lilac wash on the row you're on. One line a place: its    */
/*     name, then where it is in quieter words.                       */
/* ------------------------------------------------------------------ */
.h-suggest { position: relative; }
.h-suggest__list { position: absolute; z-index: 200; top: calc(100% + 6px); left: 0; width: 100%; min-width: 240px; max-width: 520px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid var(--h-line); border-radius: var(--h-r-panel); background: var(--h-panel); box-shadow: var(--h-shadow-float); color: var(--h-ink); }
.h-suggest__item { display: flex; align-items: baseline; gap: 10px; width: 100%; min-height: 34px; padding: 7px 8px; border: 0; border-radius: var(--h-r-ctl); background: none; color: var(--h-ink); font: inherit; font-size: var(--h-fs-13); line-height: 20px; text-align: left; cursor: pointer; }
.h-suggest__item.is-active { background: rgb(var(--h-accent-rgb) / .06); }
.h-suggest__name { flex: none; max-width: 70%; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.h-suggest__where { min-width: 0; overflow: hidden; color: var(--h-subtle); font-size: var(--h-fs-12-5); text-overflow: ellipsis; white-space: nowrap; }
.h-suggest__credit { margin: 4px 0 0; padding: 6px 8px 3px; border-top: 1px solid var(--h-line); color: var(--h-subtle); font-size: var(--h-fs-12); line-height: 16px; }

/* ------------------------------------------------------------------ */
/* 19. Note box: where a note is written (November 2026)              */
/* ------------------------------------------------------------------ */
/* One box on every record: the words, then a bar with the quick starts, the flag for accounts and Save. The box
   carries the field's edge and ring, so the field inside has none. Used by panels/notes-panel.blade.php. */
.h-notebox textarea.h-notebox__input::placeholder { color: var(--h-subtle); opacity: 1; }
.h-notebox textarea.h-notebox__input:focus { outline: none; box-shadow: none; }
/* Browsers that can't grow the field as you type keep the corner to drag. */
@supports not (field-sizing: content) { .h-notebox textarea.h-notebox__input { resize: vertical; } }
/* Keep the audience visible while writing and the submission action on the same line as the contact menu. */
.h-notebox__heading .z-btn-ghost { color: var(--h-ink-2); }
.h-notebox__bar .z-btn-ghost { gap: 4px; padding-inline: 6px; }
.h-notebox__heading .z-action-menu-item, .h-notebox__bar [role="menuitemradio"] { justify-content: space-between; }
@media (max-width: 640px) {
  .h-notebox__heading .z-btn-ghost, .h-notebox__bar .z-btn-ghost, .h-notebox__bar > .z-btn-primary { min-height: 44px; }
}
.h-notebox__error { margin: 0; padding: 0 14px 6px; color: var(--h-danger); font-size: var(--h-fs-13); line-height: 18px; }
.h-notebox__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 8px 8px; }
.h-notebox__quick { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.h-notebox__chip { display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border: 0; border-radius: var(--h-r-ctl); background: none; color: var(--h-ink-2); font: inherit; font-size: var(--h-fs-13); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease); }
.h-notebox__chip:hover { background: var(--h-tint); color: var(--h-accent-hover); }
.h-notebox__chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--h-focus); }
.h-notebox__chip[aria-pressed="true"] { background: var(--h-tint); color: var(--h-accent); font-weight: 600; }
.h-notebox__end { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; margin-inline-start: auto; }
.h-notebox__end > button { margin-inline-start: auto; }
.h-notebox__flag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: var(--h-r-ctl); color: var(--h-ink-2); font-size: var(--h-fs-13); font-weight: 500; white-space: nowrap; cursor: pointer; user-select: none; transition: background-color var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease); }
.h-notebox__flag:hover { background: var(--h-hover); color: var(--h-ink); }
.h-notebox__flag > svg { flex: none; }
.h-notebox__flag:has(input:checked) { --h-flag-fill: currentColor; background: var(--h-warn-soft); color: var(--h-warn); font-weight: 600; }
/* Filled through the property set just above, so no rule ends in a bare "path" after :has() (that restyled every
   icon on the page whenever anything was added to it) */
.h-notebox__flag > svg path:last-child { fill: var(--h-flag-fill, none); }
.h-notebox__flag:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--h-focus); }
@media (max-width: 640px) {
  .h-notebox textarea.h-notebox__input { font-size: var(--h-fs-16); }
  .h-notebox__chip, .h-notebox__flag { height: 36px; }
  .h-notebox__end { width: 100%; }
  .h-notebox__end > button, .h-notebox__end .h-notebox__flag { min-height: 44px; }
}

/* ── Craft-pass form card (the look in JP's "Hyrer craft pass" mockups) ─────────────────────────────────────
   .hc-card       a white card on the page, shadow not border, with a Cal Sans title
   .hc-sec        a numbered section: title and plain-words description on the left, fields on the right
                  (<x-craft.section number title description>)
   .hc-card__foot one action bar that stays in view at the bottom of the card */
.hc-card{position:relative;min-width:0;border-radius:var(--h-r-panel);background:var(--h-panel);box-shadow:var(--h-shadow-card)}
.hc-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 28px 6px}
.hc-card__head h2{margin:0;font-family:var(--h-font-display);font-weight:400;font-size:var(--h-fs-dialog);line-height:28px;letter-spacing:-.012em;color:var(--h-ink)}
.hc-card__head p{margin:6px 0 0;font-size:var(--h-fs-14);line-height:20px;color:var(--h-ink-2)}
.hc-card__body{padding:0 28px}
.hc-card__body--pad{padding:18px 28px 24px}
/* The bar is solid white, so text scrolling beneath it is cut cleanly at its hairline rather than showing through. */
.hc-card__foot{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:16px 28px;border-radius:0 0 var(--h-r-panel) var(--h-r-panel);background:var(--h-panel);box-shadow:inset 0 1px 0 var(--h-line)}
.hc-card__spacer{flex:1}
.hc-card__note{display:inline-flex;align-items:center;gap:8px;font-size:var(--h-fs-13);color:var(--h-subtle)}
.hc-card__note svg{flex:none}
.hc-card__ask{flex:1 1 320px;margin:0;font-size:var(--h-fs-13);line-height:19px;color:var(--h-ink-2)}
.hc-card__ask strong{display:block;font-size:var(--h-fs-14);font-weight:600;color:var(--h-ink)}
.hc-sec{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;padding:24px 0;box-shadow:inset 0 -1px 0 var(--h-line)}
.hc-sec:last-child{box-shadow:none}
.hc-sec--wide{grid-template-columns:minmax(0,1fr)}
.hc-sec__title{display:flex;align-items:center;gap:10px}
.hc-sec__title h3{margin:0;font-size:var(--h-fs-16);font-weight:600;letter-spacing:-.006em;color:var(--h-ink)}
.hc-sec__num{display:inline-flex;flex:none;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--h-line-strong);font-size:var(--h-fs-12);font-weight:600;color:var(--h-subtle);font-variant-numeric:tabular-nums}
.hc-sec__intro p{margin:6px 0 0;font-size:var(--h-fs-13);line-height:19px;color:var(--h-ink-2)}
.hc-sec.has-num .hc-sec__intro p{margin-left:32px}
.hc-sec__body{min-width:0}
.hc-card .z-label{font-size:var(--h-fs-13);font-weight:600;color:var(--h-ink-2)}
@media (max-width:900px){.hc-sec{grid-template-columns:minmax(0,1fr);gap:14px}.hc-card__head,.hc-card__body,.hc-card__foot{padding-inline:18px}.hc-card__body--pad{padding:14px 18px 18px}}

/* Livewire marks the originating control with data-loading. Both captions reserve space
   in the same grid cell so a translated pending label cannot move a neighbouring button. */
.h-action-label { display: inline-grid; align-items: center; justify-items: center; }
.h-action-label > span { grid-area: 1 / 1; }
.h-action-label > span:last-child, .h-action-label[aria-busy="true"] > span:first-child { visibility: hidden; }
.h-action-label[aria-busy="true"] > span:last-child { visibility: visible; }
@keyframes h-busy-spin { to { transform: rotate(360deg); } }
:is(button, a, [role="button"], [role="menuitem"]):is([data-loading], [data-busy]) { cursor: progress; pointer-events: none; opacity: .78; }
:is(button, a, [role="button"], [role="menuitem"]):is([data-loading], [data-busy])::before {
    content: ""; display: inline-block; flex: none; width: 12px; height: 12px; margin-inline-end: 7px; vertical-align: -1px;
    border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: h-busy-spin .7s linear infinite;
}
/* The same ring beside background work, search and previews. Never infer activity
   from a label like "pending": the caller opts in only while work is running. */
.h-spinner {
    display: inline-block; box-sizing: border-box; flex: none; width: 1em; height: 1em;
    vertical-align: -.125em; border: 2px solid currentColor; border-inline-end-color: transparent;
    border-radius: 50%; animation: h-busy-spin .85s linear infinite;
}
.h-busy-label { display: inline-flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: reduce) {
    .h-spinner,
    :is(button, a, [role="button"], [role="menuitem"]):is([data-loading], [data-busy])::before { animation: none !important; }
}

/* DES-5 (UX audit): a file box in the CRM (profile picture and the like) draws its button like the CRM's own ghost
   button, not the browser's grey "Choose File". */
.z-input[type="file"] { cursor: pointer; }
.z-input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 1px solid var(--h-line-strong); border-radius: var(--h-r-ctl); background: var(--h-panel); color: var(--h-ink); font: inherit; font-size: var(--h-fs-13); font-weight: 500; cursor: pointer; transition: background-color var(--h-quick) var(--h-ease), border-color var(--h-quick) var(--h-ease); }
.z-input[type="file"]:hover::file-selector-button { background: var(--h-hover); border-color: var(--h-accent); }

/* ====================================================================== */
/* 20. Lists on the page, and where the colour sits (23 November 2026)    */
/* ====================================================================== */
/* A record list is one white card resting on the page, with no border; the table inside it is defined in
   section 6 ("One table"). */
html body .hv-record-surface:not(#\#):not(#\#):not(#\#) { border: 0 !important; border-radius: var(--h-r-panel) !important; background: var(--h-panel) !important; box-shadow: var(--h-shadow-card) !important; overflow: hidden; }
html body .hv-record-controls:not(#\#):not(#\#):not(#\#) { border: 0 !important; }
html body .hx-lf-tabsrow:not(#\#):not(#\#):not(#\#) { border-bottom: 0 !important; }
html body .hv-record-search:not(#\#):not(#\#):not(#\#) { border-color: transparent !important; border-radius: var(--h-r-inset) !important; background: rgb(var(--h-ink-rgb) / .04) !important; }
html body .hv-record-search:not(:focus-within):not(#\#):not(#\#):not(#\#) { box-shadow: none !important; }
/* The number beside a list's title: a small count pill centred on the title's capitals (JP, 4 Dec: the bare
   figure looked out of place) */
html body .hv-title-count:not(#\#):not(#\#):not(#\#) { position: relative; top: -0.14em; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; min-height: 0 !important; margin-left: 12px; padding: 0 9px !important; border-radius: 999px !important; background: rgb(var(--h-ink-rgb) / .065) !important; color: var(--h-ink-2) !important; font-family: var(--h-font) !important; font-size: var(--h-fs-13) !important; font-weight: 600 !important; line-height: 24px !important; letter-spacing: 0 !important; font-variant-numeric: tabular-nums; vertical-align: middle; }
/* The main search rests as a soft fill like the list search, and takes its ring back when you click into it. */
html body .z-topbar .z-search-input:not(:focus):not(#\#):not(#\#):not(#\#) { border-color: transparent !important; background: rgb(var(--h-ink-rgb) / .045) !important; box-shadow: none !important; }
/* Home's pipeline: a column is never taller than about a screen; a long one scrolls inside itself. */
html body .hh-board .hpb-cols > *:not(#\#):not(#\#):not(#\#) { max-height: min(560px, 60vh) !important; overflow-y: auto !important; }

/* The job's pipeline panel is one card: its empty state sits on the panel itself, not on a second card inside it */
html body .hj-pipeline-workspace > .z-card:not(#\#):not(#\#):not(#\#) { box-shadow: none !important; }

/* A record's header: Edit and More take the soft fill every other supporting button has. The list bundle paints
   them white on the white header card, which left them reading as loose words beside one outlined button. */
html body .hx-profile-actions :is(.z-btn-ghost, .z-btn-secondary):not(#\#):not(#\#):not(#\#) { background: var(--h-panel) !important; }
html body .hx-profile-actions :is(.z-btn-ghost, .z-btn-secondary):not(#\#):not(#\#):not(#\#):hover { background: var(--h-tint) !important; }

/* One search field and one toolbar control. Every list's search, and the sort and filter drop-downs beside it,
   take the soft fill the Candidates list has: no outline at rest, the usual outlined look and ring when in use.
   Before this, about half the pages had a white outlined search beside soft-fill buttons. Form fields keep
   their outline. */
html body :is(label.hx-desk__search, label.tsj-search, label.hi-search, label.hcm-search, label.hta-search-input, label.hrp-search, label.hx-lf-sort, label.hs-search):not(:focus-within):not(#\#):not(#\#):not(#\#),
html body :is(input.z-input[type="search"], input.z-list-search, input.hx-em__search, :is(.htc-search, .hx-perm-search, .hmb-search) > .z-input, .htk-controls__quick > select, .hx-desk__owner > select, .hxi-toolbar select.z-input, .hrp-toolbar select.z-select):not(:focus):not(#\#):not(#\#):not(#\#) {
  border-color: transparent !important;
  background-color: rgb(var(--h-ink-rgb) / .04) !important;
  box-shadow: none !important;
}

/* One search field. Every list's search is the same soft 36px field with 13px text and the control radius, like the
   buttons and filters beside it, whether it is a wrapper with the icon inside or a plain input. With a mouse only:
   narrower layouts keep the native field size. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  html body :is(.hv-record-search, .hi-search, .hx-desk__search, .hcm-search, .tsj-search, .hlf-search, input.z-list-search, input.z-input[type="search"], input.hx-em__search, :is(.htc-search, .hx-perm-search, .hmb-search) > .z-input):not(#\#):not(#\#):not(#\#):not(#\#) {
    height: var(--h-ctl-md) !important;
    min-height: var(--h-ctl-md) !important;
    border-radius: var(--h-r-ctl) !important;
    font-size: var(--h-fs-13) !important;
  }
  html body :is(.hv-record-search, .hi-search, .hx-desk__search, .hcm-search, .tsj-search, .hlf-search) input:not(#\#):not(#\#):not(#\#):not(#\#) {
    font-size: var(--h-fs-13) !important;
  }
  /* Fields and drop-downs in a toolbar row (a list's search, sort, stage and consultant, a page header's picker)
     are 36 tall with 13px text, the height of the buttons beside them; a form's fields are 40. */
  html body :is(.z-list-toolbar, .hv-record-controls, .hlf-tools, .hxi-toolbar, .htk-controls, .hrp-toolbar, .hx-desk__tools, .hpl-pipeline-filters, .hsc-toolbar, .hcm-bar, .hx-subs__filters, .tsj-toolbar, .hx-temp-toolbar, .hac-toolbar, .hw-toolbar, .wf-list-toolbar, .za-toolbar, .tl-filters, .form-queue-filters, .hh-head__tools, .z-page-header__actions, .hxmail-bar) :is(select, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="color"])):not(.sr-only):not(.hx-lf-owner > select):not(:is(.hv-record-search, .hi-search, .hx-desk__search, .hcm-search, .tsj-search, .hlf-search) input):not(#\#):not(#\#):not(#\#):not(#\#) {
    height: var(--h-ctl-md) !important;
    min-height: var(--h-ctl-md) !important;
    padding-block: 0 !important;
    border-radius: var(--h-r-ctl) !important;
    font-size: var(--h-fs-13) !important;
  }
  /* At rest they are the soft fill with no ring, like the search beside them; in use they take the usual ring. */
  html body :is(.z-list-toolbar, .hv-record-controls, .hlf-tools, .hxi-toolbar, .htk-controls, .hrp-toolbar, .hx-desk__tools, .hpl-pipeline-filters, .hsc-toolbar, .hcm-bar, .hx-subs__filters, .tsj-toolbar, .hx-temp-toolbar, .hac-toolbar, .hw-toolbar, .wf-list-toolbar, .za-toolbar, .tl-filters, .form-queue-filters, .hh-head__tools, .z-page-header__actions, .hxmail-bar, .hx-em__find) :is(select, input.z-input):not([type="checkbox"]):not([type="radio"]):not(:focus):not(:is(.hx-lf-owner, .hx-lf-sort) > select):not(#\#):not(#\#):not(#\#):not(#\#) {
    border-color: transparent !important;
    background-color: rgb(var(--h-ink-rgb) / .04) !important;
    box-shadow: none !important;
  }
  /* At rest every one is the soft grey field; typing turns it white with the violet ring, as before. */
  html body :is(.hv-record-search, .hi-search, .hx-desk__search, .hcm-search, .tsj-search, .hlf-search):not(:focus-within):not(#\#):not(#\#):not(#\#):not(#\#),
  html body :is(input.z-list-search, input.z-input[type="search"], input.hx-em__search, :is(.htc-search, .hx-perm-search, .hmb-search) > .z-input):not(:focus):not(#\#):not(#\#):not(#\#):not(#\#) {
    border-color: transparent !important;
    background-color: rgb(var(--h-ink-rgb) / .04) !important;
    box-shadow: none !important;
  }
  html body .hlf-search:focus-within:not(#\#):not(#\#) {
    border-color: transparent !important;
    background: var(--h-panel) !important;
    box-shadow: inset 0 0 0 1px var(--h-accent), 0 0 0 3px rgb(var(--h-accent-rgb) / .14) !important;
  }
}

/* Headings break into even lines and paragraphs never strand one word on the last line */
html body main :is(h1, h2, h3) { text-wrap: balance; }
html body main p { text-wrap: pretty; }

/* Emails and Applications: their column headings take the same lavender band as every table */
html body .hap-cols:not(#\#):not(#\#):not(#\#) { border: 0 !important; background: var(--h-nav-wash) !important; }
html body .hap-cols > *:not(#\#):not(#\#):not(#\#) { color: var(--h-accent-hover) !important; font-weight: 500 !important; }

/* Applications: a queue of five rows showed five solid violet buttons and ten outlined ones. Row actions are plain
   words until pointed at; "Add to CRM" stays the violet one as a tint, and turns solid when pointed at. */
html body .hap-row .hap-btn:not(#\#):not(#\#):not(#\#) { border-color: transparent !important; background-color: var(--intake-button-fill,transparent) !important; box-shadow: none !important; }
html body .hap-row .hap-btn:not(#\#):not(#\#):not(#\#):hover { background-color: var(--intake-button-hover,rgb(var(--h-ink-rgb) / .06)) !important; }
/* A row's decisions are one level, plain words of one height: the safe one in violet, Reject in red, the rest ink. */
html body .hap-row .hap-btn--primary:not(#\#):not(#\#):not(#\#) { color: var(--h-accent) !important; }
html body .hap-row .hap-btn--primary:not(#\#):not(#\#):not(#\#):hover { background-color: var(--h-accent) !important; color: var(--h-on-accent) !important; }

/* ------------------------------------------------------------------ */
/* 21. Fields (23 November 2026)                                       */
/* ------------------------------------------------------------------ */
/* Every form field in the app: a faint fill with a hairline edge at rest, a slightly firmer one when pointed at,
   and white with a violet edge and a soft 3px ring when in use. Before this a form was a grid of white boxes with
   grey outlines on a white card, which is most of what made edit screens and Settings look dated. Fields marked
   invalid keep their own red edge; search fields and tick boxes are styled elsewhere. The list also names the
   record picker, the Quick view finder and the few forms whose fields are written with utility classes (Add a
   sales lead, some dialogs), which were still white boxes with grey outlines. */
html body :is(.z-input, .z-select, .hx-editor-input, .hx-lf-pop select, .hv-record-pagination select, .hx-record-editor :is(input, select, textarea), .hxpk-input, .z-textarea, .hv-find > input, .hyrer-language__controls > select, .hxwd__field > textarea, :is(input, select, textarea).border:is(.border-line-strong, .border-line):is(.bg-panel, .bg-paper)):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="search"]):not(.z-list-search):not([aria-invalid="true"]):not(:focus):not(#\#):not(#\#):not(#\#) {
  border-color: transparent !important;
  background-color: rgb(var(--h-ink-rgb) / .035) !important;
  box-shadow: inset 0 0 0 1px rgb(var(--h-ink-rgb) / .07) !important;
}
html body :is(.z-input, .z-select, .hx-editor-input, .hx-lf-pop select, .hv-record-pagination select, .hx-record-editor :is(input, select, textarea), .hxpk-input, .z-textarea, .hv-find > input, .hyrer-language__controls > select, .hxwd__field > textarea, :is(input, select, textarea).border:is(.border-line-strong, .border-line):is(.bg-panel, .bg-paper)):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="search"]):not(.z-list-search):not([aria-invalid="true"]):not(:focus):not(:disabled):not(#\#):not(#\#):not(#\#):hover {
  background-color: rgb(var(--h-ink-rgb) / .055) !important;
  box-shadow: inset 0 0 0 1px rgb(var(--h-ink-rgb) / .14) !important;
}
html body :is(.z-input, .z-select, .hx-editor-input, .hx-lf-pop select, .hv-record-pagination select, .hx-record-editor :is(input, select, textarea), .hxpk-input, .z-textarea, .hv-find > input, .hyrer-language__controls > select, .hxwd__field > textarea, :is(input, select, textarea).border:is(.border-line-strong, .border-line):is(.bg-panel, .bg-paper)):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="search"]):not(.z-list-search):not([aria-invalid="true"]):not(#\#):not(#\#):not(#\#) {
  border-radius: var(--h-r-ctl) !important;
  transition: background-color var(--h-quick) var(--h-ease), border-color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease);
}
html body :is(.z-input, .z-select, .hx-editor-input, .hx-lf-pop select, .hv-record-pagination select, .hx-record-editor :is(input, select, textarea), .hxpk-input, .z-textarea, .hv-find > input, .hyrer-language__controls > select, .hxwd__field > textarea, :is(input, select, textarea).border:is(.border-line-strong, .border-line):is(.bg-panel, .bg-paper)):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="search"]):not(.z-list-search):not([aria-invalid="true"]):not(#\#):not(#\#):not(#\#):focus {
  border-color: var(--h-accent) !important;
  background-color: var(--h-panel) !important;
  box-shadow: 0 0 0 3px rgb(var(--h-accent-rgb) / .16) !important;
  outline: 0 !important;
}
/* A typed date keeps the field's look; its calendar button is quiet until pointed at. */
html body input:is([type="date"], [type="datetime-local"], [type="month"])::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; transition: opacity var(--h-quick) var(--h-ease); }
html body input:is([type="date"], [type="datetime-local"], [type="month"])::-webkit-calendar-picker-indicator:hover { opacity: .9; }
/* A field on a tinted panel (who and which job, in Add to pipeline) is white, so it does not sink into the panel */
html body :is(.hap-who .hxpk-input, .hxco-website .z-input):not(:focus):not(#\#):not(#\#):not(#\#):not(#\#) { background-color: var(--h-panel) !important; }
/* A field's label sits 6 above it in 13/500 ink (the 6 is the label's own bottom margin) */
html body :is(.hx-editor-label, .z-label):not(#\#):not(#\#):not(#\#) { color: var(--h-ink) !important; font-size: var(--h-fs-13) !important; font-weight: 500 !important; }
/* One field: 40 tall with 12 either side and 14px text, whether it is typed into or picked from. A field whose
   markup leaves room for an icon (a pl-* utility) keeps that room. A textarea starts at 88 and grows. Fields in a
   toolbar row are 36 (below, in "One search field and one toolbar control"). */
html body :is(.z-input, .z-select, .hx-editor-input, .hx-lf-pop select, .hx-record-editor :is(input, select), .hxpk-input, .hv-find > input, .hyrer-language__controls > select, .h-native-select select, :is(input, select).border:is(.border-line-strong, .border-line):is(.bg-panel, .bg-paper)):not(textarea):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not(#\#):not(#\#):not(#\#) {
  box-sizing: border-box !important;
  height: var(--h-field-height, 40px) !important;
  min-height: var(--h-field-height, 40px) !important;
  padding-block: 0 !important;
  font-size: var(--h-field-text-size, var(--h-fs-14)) !important;
  line-height: 20px !important;
}
html body :is(.z-input, .z-select, .hx-editor-input, .hx-record-editor :is(input, select), .h-native-select select):not(.hxpk-input):not(textarea):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([class*="pl-"]):not(#\#):not(#\#):not(#\#) {
  padding-left: var(--h-field-lead, 12px) !important;   /* a field with an icon in front sets --h-field-lead */
}
html body :is(.z-input, .z-select, .hx-editor-input, .hx-record-editor input, .hxpk-input):not(select):not(textarea):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([class*="pr-"]):not(#\#):not(#\#):not(#\#) {
  padding-right: var(--h-field-trail, 12px) !important;   /* a field with a unit after it sets --h-field-trail */
}
html body :is(textarea.z-input, .z-textarea, .hx-record-editor textarea, .hxwd__field > textarea):not(#\#):not(#\#):not(#\#) {
  box-sizing: border-box !important;
  min-height: 88px !important;
  padding: 10px 12px !important;
  font-size: var(--h-field-text-size, var(--h-fs-14)) !important;
  line-height: 20px !important;
}
/* Choices in a form (type of work and the like) are the shared choice chip (section 3, "One choice chip") */
html body .hx-pick__opt > span:not(#\#):not(#\#):not(#\#) { padding: 0 12px; border-radius: var(--h-r-sm); background: rgb(var(--h-ink-rgb) / .05); box-shadow: none; }
html body .hx-pick__opt:hover > span:not(#\#):not(#\#):not(#\#) { background: var(--h-tint); }
html body .hx-pick__opt input:checked + span:not(#\#):not(#\#):not(#\#) { background: rgb(var(--h-accent-rgb) / .12); box-shadow: inset 0 0 0 1px rgb(var(--h-accent-rgb) / .22); color: var(--h-accent); font-weight: 600; }
/* Logo drop areas: a solid hairline and the field radius in place of a dashed box */
html body .zs-drop:not(#\#):not(#\#):not(#\#) { border: 1px solid rgb(var(--h-ink-rgb) / .09) !important; border-radius: var(--h-r-inset) !important; overflow: hidden; }

/* Applications and CV uploads: the search bar and the list are two cards with a gap between them, not two cards
   pressed together; the list's column band takes the card's top corners */
html body .hxi-toolbar:not(#\#):not(#\#):not(#\#) { margin-bottom: 12px !important; }
html body .hap-list:not(#\#):not(#\#):not(#\#) { border: 0 !important; border-radius: var(--review-list-radius,var(--h-r-panel)) !important; box-shadow: var(--review-list-shadow,var(--h-shadow-card)) !important; }
html body .hap-list > .hap-cols:first-child:not(#\#):not(#\#):not(#\#) { border-radius: var(--review-list-radius,var(--h-r-panel)) var(--review-list-radius,var(--h-r-panel)) 0 0 !important; }

/* Every scrolling menu, popover, drawer and panel has the thin scrollbar the page has. Zero specificity, so a
   rule that hides a scrollbar still wins. */
:where(body.z-crm-app) :where(*) { scrollbar-width: thin; }

/* Initials avatars in the dark theme: the component picks from a fixed palette of dark violets for the letters,
   which vanished on a dark page (Applications, Emails). The same hue is lightened for the letters and deepened
   for the disc. */
html[data-theme="dark"] body .hxa:not(.hxa--solid) { color: color-mix(in srgb, var(--av) 40%, white); background: color-mix(in srgb, var(--av) 34%, var(--h-panel)); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body .hxa:not(.hxa--solid) { color: color-mix(in srgb, var(--av) 40%, white); background: color-mix(in srgb, var(--av) 34%, var(--h-panel)); }
}

/* Three levels of button, one rule each. The page's own actions (its header) are white with a ring. Actions that
   belong to a panel inside the page (a CV's Download, a pipeline's See matches, Home's Open pipeline) are plain
   words with their icon until pointed at, like actions in a list row. Violet is the one primary. An empty
   state's own call to action keeps its ring. */
html body :is(.hr62-workspace, .h-record-panel, .hx-detail-card, .hxo-card, .z-work-panel, .hr-panel, .hrp-panel, .hh-head, .hh-quiet, .hx-radar__head) :is(.z-btn-ghost, .z-btn-secondary):not(.text-center > *):not(.z-empty-state *):not(.hj-board-empty > *):not(.hw-nav > *):not(#\#):not(#\#):not(#\#) {
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--h-ink-2);
}
html body :is(.hr62-workspace, .h-record-panel, .hx-detail-card, .hxo-card, .z-work-panel, .hr-panel, .hrp-panel, .hh-head, .hh-quiet, .hx-radar__head) :is(.z-btn-ghost, .z-btn-secondary):not(.text-center > *):not(.z-empty-state *):not(.hj-board-empty > *):not(.hw-nav > *):not(#\#):not(#\#):not(#\#):hover {
  background-color: rgb(var(--h-ink-rgb) / .06) !important;
  color: var(--h-ink);
}

/* A notice that sits on the page itself (above a record, under a page title) is a white strip with the same soft
   shadow as every card, so it belongs with them: the pale blue bar above a job read as something from another
   product (JP, 21:25). Its mark carries the colour. A notice inside a card stays a quiet tinted strip. */
html body .h-note:not(:is(.z-card, .hxo-card, .hcov-card, .hc-card, .hr62-workspace, .hx-detail-card, .hv-record-surface, .z-work-panel, .hh-w__body, dialog) .h-note) {
  padding: 12px 14px 12px 18px;
  background: var(--h-panel);
  box-shadow: var(--h-shadow-card);
}
html body a.h-note:not(:is(.z-card, .hxo-card, .hcov-card, .hc-card, .hr62-workspace, .hx-detail-card, .hv-record-surface, .z-work-panel, .hh-w__body, dialog) .h-note):hover { background: var(--h-hover); }

/* One card padding. Record panels were 16/18, 18/20, 18 and 18/22 depending on who built them; all are 20/24, and
   a record's header 22/28/24, so every card has the same generous inset. */
html body :is(.hcov-card, .hx-snap, .hcp-ai-overview, .hj-pipeline-workspace):not(#\#):not(#\#):not(#\#) { padding: var(--h-record-card-padding, 20px) !important; }
html body .hx-profile-header.hr60-header:not(#\#):not(#\#):not(#\#) { padding: var(--h-record-header-padding, 24px) !important; }
@media (max-width:600px) {
    .hr60-header[data-hx2] { --h-record-header-padding:16px 18px; --h-record-avatar-size:48px; }
}

/* ------------------------------------------------------------------ */
/* 22. Records (23 November 2026)                                      */
/* ------------------------------------------------------------------ */
/* A record's tabs are words. Nine tabs each with a small icon was nine pieces of decoration. */
html body .hr60-tabs .hx-section-tab > span:first-child[aria-hidden]:not(#\#):not(#\#) { display: none !important; }

/* A job's details card has a title. */
.hjp-facts__title { margin: 0; padding: 20px 24px 0; color: var(--h-ink); font-size: var(--h-fs-16); line-height: 22px; font-weight: 600; }

/* An empty board shows its stages; under it, one quiet line with the two ways to fill it */
.hj-board-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--h-subtle); font-size: var(--h-fs-13); }
.hj-board-empty > p { margin: 0 auto 0 0; }
/* A job's Pipeline tab opens straight onto one toolbar (which candidates, and the review queue) and the board. The
   panel's own heading repeated the tab's name, so it is kept for screen readers only. */
html body .hr62-workspace .hj-board-heading { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A record's tabs match each other, on jobs, candidates, companies and contacts: every tab's card is padded 20 all
   round and every heading is 16px semibold. */
html body .hr60-tabs ~ * :is(h2, h3.hx-activity__head):not(.sr-only):not(.hj-board-heading *):not(dialog *) {
  color: var(--h-ink) !important;
  font-family: var(--h-font) !important;
  font-size: var(--h-fs-16) !important;
  line-height: 24px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
html body .hr60-tabs ~ * :is(.hjm, .hxa-boards, .hxap, .z-card.p-5, .z-card.p-4):not(#\#):not(#\#):not(#\#) { padding: 20px !important; }
/* A record's header already holds its violet action (Add candidates, Add to pipeline, Add job); a primary inside a
   tab's panel is a ringed button, so a page never shows two primaries at once. */
html body :is(.hjp-main .hv-record-surface, .hjp-main .hr60-notes-panel, #candidate-section-panel, #company-section-panel, #contact-section-panel) .z-btn-primary:not(#\#):not(#\#):not(#\#) {
  border-color: transparent !important;
  background: var(--h-panel) !important;
  color: var(--h-ink) !important;
  box-shadow: 0 0 0 1px rgb(var(--h-ink-rgb) / .09), 0 1px 2px rgb(var(--h-ink-rgb) / .06) !important;
  transform: none !important;
}
/* With nothing written yet, Save note is a quiet word in both themes: half-faded white text on a dark card still
   looked ready to press. */
html body .h-notebox__bar .z-btn-primary:disabled:not(#\#):not(#\#):not(#\#):not(#\#) {
  background: transparent !important;
  color: var(--h-subtle) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: default;
}

/* ------------------------------------------------------------------ */
/* 23. Edit forms (23 November 2026)                                   */
/* ------------------------------------------------------------------ */
/* Editing a record opens on its fields. The CV block used to fill the first screen with a tall dashed drop area,
   three bullet points and a note; on an edit form it is one slim row (icon, "Drop a CV here or browse your files",
   the formats at the far end) with the small print on a single muted line under it. The Add a candidate wizard
   keeps the tall version, where the CV is the first step. */
html body .hx-record-editor .hcv-heading { margin-bottom: 12px; }
html body :is(.hx-record-editor, .hv-cv-wizard) .hcv-heading h2 { font-family: var(--h-font); font-size: var(--h-fs-16); line-height: 24px; font-weight: 600; letter-spacing: 0; }
html body .hx-record-editor .hcv-icon { width: 36px; height: 36px; flex-basis: 36px; }
html body .hx-record-editor .hcv-drop {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 12px 16px;
  text-align: left;
}
html body .hx-record-editor .hcv-drop .hcv-upload-icon { width: 32px; height: 32px; margin: 0 6px 0 0; background: none; }
html body .hx-record-editor .hcv-drop > strong { font-weight: 600; color: var(--h-ink); }
html body .hx-record-editor .hcv-drop > span:not(.hcv-upload-icon) { color: var(--h-accent); }
html body .hx-record-editor .hcv-drop > small { margin-left: auto; color: var(--h-subtle); font-size: var(--h-fs-13); }
html body .hx-record-editor .hcv-format-note { margin-top: 4px; color: var(--h-subtle); font-size: var(--h-fs-13); }
/* On a phone the row has no room: the drop area stacks again, still without the tall box */
@media (max-width: 640px) {
  html body .hx-record-editor .hcv-drop { flex-direction: column; gap: 4px; padding: 16px; text-align: center; }
  html body .hx-record-editor .hcv-drop .hcv-upload-icon { margin: 0; }
  html body .hx-record-editor .hcv-drop > small { margin-left: 0; }
}

/* ------------------------------------------------------------------ */
/* 24. Desks: Accounts and Timesheets (23 November 2026)               */
/* ------------------------------------------------------------------ */
/* Accounts stacked its own 18px gap on top of the workspace's 20px, and the header's margin on top of that, so the
   title sat 58px above the first row and the rows 38px apart. One rhythm: 24px between everything. */
html body .z-workspace.hx-acc { gap: 4px; }
html body .z-workspace.hx-acc > .z-page-header + * { margin-top: 0; }
/* Timesheets: the status filters start on the same left edge as the search above them */
html body .hyrer-ts-filterbar.tsj-tabs { padding-inline: 0; }
/* A page header's status line ("No bookings this week") reads before the controls, not trailing after the
   primary button. Where it introduces a button of its own ("3 timesheets will be raised Monday · Create now")
   it stays beside that button. */
html body .z-page-header__actions span[role="status"]:not(:has(+ button)) { order: -1; }
/* Placements, Contracts and Rebates kept their tabs and search in a white box of their own above the list. Every
   other list has them on the page, so these do too. */
html body .placement-controls:not(#\#):not(#\#) { padding: 0; margin-bottom: 12px; border: 0; background: none; box-shadow: none; }
/* Emails: the empty state sits in the list's card and had a second shadow of its own */
html body .hap-list .hcm-empty { box-shadow: none; }
/* Reports: the detailed-report cards fill their row (four cards used to stop three-quarters of the way across) */
html body .hrp-detail-links ul { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Tables that sit inside a padded card (Reports' "By consultant", Settings' Targets) take the same column band as
   the lists. In Reports it is rounded at both ends because it stops short of the card's edge; in Targets it runs
   edge to edge and takes the card's top corners. */
html body :is(.hrp-table, .hs-targets__table) thead th:not(#\#):not(#\#):not(#\#) { border-top: 0 !important; border-bottom: 0 !important; background: var(--h-nav-wash) !important; color: var(--h-accent-hover) !important; font-weight: 500 !important; }
html body .hrp-table thead th:first-child:not(#\#):not(#\#):not(#\#) { border-radius: var(--h-r-ctl) 0 0 var(--h-r-ctl); }
html body .hrp-table thead th:last-child:not(#\#):not(#\#):not(#\#) { border-radius: 0 var(--h-r-ctl) var(--h-r-ctl) 0; }
html body .hs-targets__table thead th:first-child:not(#\#):not(#\#):not(#\#) { border-top-left-radius: var(--h-r-panel); }
html body .hs-targets__table thead th:last-child:not(#\#):not(#\#):not(#\#) { border-top-right-radius: var(--h-r-panel); }
/* A report row's name sits on the same line and at the same size as its figures (it was 12px, top-aligned) */
html body .hrp-table tbody th:not(#\#):not(#\#):not(#\#) { padding-block: 14px; vertical-align: middle; font-size: var(--h-fs-14); line-height: 20px; }
html body .hrp-table tbody th > button { font-size: inherit; line-height: inherit; }

/* ------------------------------------------------------------------ */
/* 25. Settings (23 November 2026)                                     */
/* ------------------------------------------------------------------ */
/* Connections: every card's own action (Set up, Connect, Manage) is the same supporting button, white with a fine
   ring, 32 tall and 13/600, taking the violet wash when pointed at; a page of cards has no violet buttons of its own. */
html body .hcx-card__foot .hrb:not(#\#):not(#\#) { height: var(--h-ctl-sm); padding-inline: 12px; border-color: transparent; background: var(--h-panel); color: var(--h-ink); box-shadow: 0 0 0 1px rgb(var(--h-ink-rgb) / .09), 0 1px 2px rgb(var(--h-ink-rgb) / .06); transition: background-color var(--h-quick) var(--h-ease), box-shadow var(--h-quick) var(--h-ease), color var(--h-quick) var(--h-ease); }
html body .hcx-card__foot .hrb:not(#\#):not(#\#):hover { background: var(--h-tint); color: var(--h-ink); }
/* Choosing a file: the control is a field like any other, and its "Choose file" is a small white button inside it */
html body input[type="file"].z-input:not(#\#):not(#\#):not(#\#) {
  height: auto;
  padding: 6px;
  border-color: transparent !important;
  border-radius: var(--h-r-ctl) !important;
  background-color: rgb(var(--h-ink-rgb) / .035) !important;
  box-shadow: inset 0 0 0 1px rgb(var(--h-ink-rgb) / .07) !important;
  color: var(--h-ink-2);
  font-size: var(--h-fs-13);
}
html body input[type="file"].z-input::file-selector-button {
  margin: 0 10px 0 0;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--h-r-sm);
  background: var(--h-panel);
  box-shadow: 0 0 0 1px rgb(var(--h-ink-rgb) / .09), 0 1px 2px rgb(var(--h-ink-rgb) / .06);
  color: var(--h-ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* 26. Assistant page (23 November 2026)                               */
/* ------------------------------------------------------------------ */
/* The conversation panel was sized for an older, shorter top bar, so the page was about 120px taller than the
   screen (about 195px with a notice above it). Assistant scrolls to the end of the conversation when it opens,
   which pushed the greeting and any note up underneath the top bar. The panel now fits the space that is left:
   the frame and top bar, the page's own padding and, when there is one, the notice. */
@media (min-width: 768px) {
  html body .hco--page .hco-main { min-height: calc(100dvh - 272px); }
  html body .z-content:has(> .h-note) .hco--page .hco-main { min-height: calc(100dvh - 348px); }
}

/* A record keeps its one solid violet button in its header (Add to a job, Add job). A tab's own heading action
   (Add to pipeline and Add referee on a candidate; Add job and Log sales note on a company or a sales lead) is a
   supporting button, white with a fine ring that takes the violet wash when pointed at, so the page has one primary. */
html body :is(.hxh-head, .h-refs__actions, .hsn-history-head, .hr60-tabs ~ * .hx-lf-actions) > .z-btn-primary:not(#\#):not(#\#):not(#\#) { border-color: transparent !important; background: var(--h-panel) !important; color: var(--h-ink) !important; box-shadow: 0 0 0 1px rgb(var(--h-ink-rgb) / .09), 0 1px 2px rgb(var(--h-ink-rgb) / .06) !important; }
html body :is(.hxh-head, .h-refs__actions, .hsn-history-head, .hr60-tabs ~ * .hx-lf-actions) > .z-btn-primary:not(#\#):not(#\#):not(#\#):hover:not(:disabled) { background: var(--h-tint) !important; color: var(--h-ink) !important; }

/* A pipeline card's actions (Advance, withdraw, open) stay on one line. On a laptop the Home board's cards are
   narrow enough that the open-record arrow wrapped to a second line and showed as a clipped sliver. */
html body .hpb .hpb-tray:not(#\#):not(#\#) { flex-wrap: nowrap; gap: 4px; }
html body .hpb .hpb-tray > .hpb-adv:not(#\#):not(#\#) { flex: 0 1 auto; min-width: 0; padding-inline: 8px; white-space: nowrap; overflow: hidden; }
html body .hpb .hpb-tray > .hpb-ic:not(#\#):not(#\#) { flex: 0 0 auto; }
/* The row of views above a board scrolls sideways when it must, which clipped the ring and shadow of a button at
   its right end (Review queue). The row keeps 2px of room for them without moving anything. */
html body .hw-nav:not(.hw-workspace > .hw-nav):not(#\#):not(#\#):not(#\#) { margin-inline: -2px !important; padding-inline: 2px !important; }

/* ------------------------------------------------------------------ */
/* 27. Automations review queue (24 November 2026)                     */
/* ------------------------------------------------------------------ */
/* /automations/reviews was the one page still in an older look: a narrow centred column, a small label above the
   title, black pill tabs and a list with no surface. It takes the page width, the title style, the segmented
   control and the list card every other page has. Nothing is moved; the "Your workflow" label above the title is
   hidden because no other page has one. */
html body .hw-workspace:not(#\#) { max-width: none; margin-inline: 0; }
html body .hw-workspace > .hw-header:not(#\#) { align-items: flex-start; padding: 0 0 20px; border: 0; }
html body .hw-workspace > .hw-header .hw-kicker:not(#\#) { display: none; }
html body .hw-workspace > .hw-header h1:not(#\#) { margin: 0 0 4px; letter-spacing: -.36px; }
html body .hw-workspace > .hw-header h1::after { content: "."; color: var(--h-accent); }
html body .hw-workspace > .hw-header p:not(#\#) { color: var(--h-ink-2); font-size: var(--h-fs-14); }
html body .hw-workspace > .hw-nav:not(#\#):not(#\#) { display: inline-flex; gap: 2px; width: fit-content; max-width: 100%; margin: 0 0 16px; padding: 2px; border: 0; border-radius: var(--h-r-ctl); background: rgb(var(--h-ink-rgb) / .043); }
html body .hw-workspace > .hw-nav > button:not(#\#):not(#\#) { min-height: 34px; padding: 5px 12px; border: 0; border-radius: var(--h-r-sm); background: transparent; box-shadow: none; color: var(--h-ink-2); font-size: var(--h-fs-13); font-weight: 500; }
html body .hw-workspace > .hw-nav > button[aria-pressed="true"]:not(#\#):not(#\#) { background: var(--h-panel); box-shadow: 0 0 0 1px rgb(var(--h-ink-rgb) / .06), 0 1px 2px rgb(var(--h-ink-rgb) / .08); color: var(--h-ink); font-weight: 600; }
html body .hw-workspace > .hw-toolbar:not(#\#) { align-items: center; margin: 0 0 12px; padding: 0; border: 0; color: var(--h-ink-2); }
html body .hw-workspace > .hw-list:not(#\#) { overflow: hidden; border: 0; border-radius: var(--h-r-panel); background: var(--h-panel); box-shadow: var(--h-shadow-card); }
html body .hw-workspace > .hw-list > .hw-row:not(#\#) { padding: 16px 24px; border: 0; border-bottom: 1px solid rgb(var(--h-ink-rgb) / .06); }
html body .hw-workspace > .hw-list > .hw-row:last-child:not(#\#) { border-bottom: 0; }
html body .hw-workspace > .hw-list > .hw-empty:not(#\#) { padding-inline: 24px; }
html body .hw-workspace > p.hw-note:not(#\#) { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--h-subtle); font-size: var(--h-fs-12); }
html body .hw-workspace > .hw-editor:not(#\#) { padding: 20px 24px; border: 0; border-radius: var(--h-r-panel); background: var(--h-panel); box-shadow: var(--h-shadow-card); }
html body .hw-workspace > .hw-editor .hw-actions:not(#\#) { justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ------------------------------------------------------------------ */
/* 28. First-run wizard and Support access (24 November 2026)          */
/* ------------------------------------------------------------------ */
/* The welcome wizard has seven steps in a 440px card. With every label showing they wrapped onto four ragged
   lines, with connector lines left hanging at the start of each. They are one line now: every step keeps its
   numbered dot, and only the step you are on shows its name (the others keep theirs for screen readers). */
html body .z-auth-card .h-steps:not(#\#) { flex-wrap: nowrap; gap: 4px; }
html body .z-auth-card .h-steps > .h-step:not(#\#):not(#\#):not(#\#) { flex: 1 1 auto !important; gap: 4px; min-width: 0; }
html body .z-auth-card .h-steps > .h-step:first-child:not(#\#):not(#\#):not(#\#) { flex: 0 0 auto !important; }
html body .z-auth-card .h-steps > .h-step:not(#\#):not(#\#):not(#\#)::before { flex: 1 1 8px !important; width: auto !important; min-width: 8px; margin-right: 0; }
html body .z-auth-card .h-steps > .h-step:not(.is-on) > .h-step__label:not(#\#) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html body .z-auth-card .h-steps > .h-step.is-on > .h-step__label:not(#\#) { margin-left: 4px; white-space: nowrap; }
/* Support access was in the same older look as the Automations queue: a narrow centred column and a small title.
   It takes the page width and the title style. Its wording, its "You stay in control" line and its consent
   controls are untouched. */
html body .ha-workspace:not(#\#) { max-width: none; margin-inline: 0; }
html body .ha-workspace > .ha-header:not(#\#) { align-items: flex-start; padding: 0 0 20px; }
html body .ha-workspace > .ha-header h1:not(#\#) { margin: 0 0 4px; font-family: var(--h-font-display, "Cal Sans", "Hyrer Sans", ui-sans-serif, system-ui, sans-serif); font-size: var(--h-fs-title); font-weight: 400; line-height: 1.15; letter-spacing: -.36px; }
html body .ha-workspace > .ha-header h1::after { content: "."; color: var(--h-accent); }
html body .ha-workspace > .ha-header p:not(.ha-kicker):not(#\#) { color: var(--h-ink-2); font-size: var(--h-fs-14); }
html body .ha-workspace .ha-panel:not(#\#) { padding: 20px 24px; border: 0; border-radius: var(--h-r-panel); background: var(--h-panel); box-shadow: var(--h-shadow-card); }
html body .ha-workspace .ha-columns h2:not(#\#) { font-size: var(--h-fs-16); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* 29. Menus (24 November 2026)                                        */
/* ------------------------------------------------------------------ */
/* A status menu's "Change status" line starts where its options' text starts. On a candidate it sat 10px to the
   left of them, against the menu's edge; on a job it was right. */
html body .h-menu > .hjp-menu-h:not(#\#):not(#\#) { margin: 4px 10px 3px; }

/* ------------------------------------------------------------------ */
/* 30. Edit forms line up with every other page (24 November 2026)     */
/* ------------------------------------------------------------------ */
/* Edit candidate, Edit company and Edit contact floated in the middle of the page while Edit job, and every other
   page, starts at the left edge. They start at the left edge too, and their title takes the violet full stop. */
html body .z-page-stage > .hx-record-editor:not(#\#), html body .hx-record-editor:not(#\#) { margin-inline: 0; }
html body :is(.hx-record-editor, .hx-compare-page) > .hx-editor-header h1::after { content: "."; color: var(--h-accent); }

/* Mailbox: a long name on a record chip ends in an ellipsis; it was cut off mid-letter at the chip's edge (the
   chip was a flex box, which ignores text-overflow) */
html body .hmb-chip:not(#\#) { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

/* A job's summary facts never leave one on a row of its own. Below the two-column layout they sat five and one
   on most laptops. A job shows six of them, or seven once someone is placed ("Hiring: 1 person · 3 placed"), so
   the layout goes by how many there are: up to six sit on one row when there is room (from 1460px) and three
   and three below that; seven or eight sit four to a row. "All details" opens the full list as before. */
@media (min-width: 1024px) and (max-width: 1459px) { html body .hjp-facts:not(.is-more) .hjp-dl:not(#\#) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1460px) and (max-width: 1659px) { html body .hjp-facts:not(.is-more) .hjp-dl:not(#\#) { grid-auto-flow: column; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.15fr); grid-auto-columns: minmax(0, 1fr); column-gap: 24px; } }
@media (min-width: 1024px) and (max-width: 1659px) { html body .hjp-facts:not(.is-more) .hjp-dl:has(> :nth-child(7 of :not(.hjp-row--extra))):not(#\#) { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Applications on a phone: the three row actions stretched to fill, which left Reject alone and centred on a
   full-width line of its own. They keep their natural widths and sit in a row from the left. */
@media (max-width: 767px) { html body .hap-actions > .hap-btn:not(#\#) { flex: 0 0 auto; } }

/* Mailbox, when Outlook's connection has expired: the "Folder counts and your folders are unavailable" line was
   loose grey text jammed against the top of the list. It is a quiet lavender note with room around it. */
html body .hmb-folder-note:not(#\#) { margin: 12px 12px 0; padding: 8px 12px; border-radius: var(--h-r-ctl); background: var(--h-wash); color: var(--h-ink-2); font-size: var(--h-fs-12); line-height: 1.5; }

/* ------------------------------------------------------------------ */
/* 31. Reports (24 November 2026)                                      */
/*     Measured on real staging figures. Panels stop leaving one card  */
/*     alone on a row, and empty panels read as an empty chart.        */
/* ------------------------------------------------------------------ */

/* An empty panel's line takes the panel's remaining height, so the panel keeps the height of its neighbour. */
html body .hrp-panel > .hrp-empty:not(#\#) { flex: 1 1 auto; }

/* Pipeline now: the five stages share one row when the panel has room (Placement was left alone on a second row).
   Where a label has to wrap, the figures still line up along the bottom. */
html body .hrp-panel:has(> .hrp-stages):not(#\#) { container-type: inline-size; }
html body .hrp-stages > li:not(#\#) { grid-template-rows: 1fr auto; align-items: start; }
html body .hrp-stages > li > .hrp-stage-key:not(#\#) { margin-top: 4px; }
html body .hrp-stages > li > strong:not(#\#) { align-self: end; }
@container (min-width: 420px) {
  html body .hrp-stages:not(#\#) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: auto; justify-content: space-between; }
}

/* Four panels in a row of thirds (the Pipeline report's interviews, withdrawn, cancelled and rebates) sit as two
   pairs, or four across on a wide screen, instead of three and one. */
@media (min-width: 901px) { html body .hrp-grid--thirds:has(> :nth-child(4):last-child):not(#\#) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1440px) { html body .hrp-grid--thirds:has(> :nth-child(4):last-child):not(#\#) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Detailed reports: four links sit in one row or two pairs, six in two rows of three, five as three and two. */
@media (min-width: 768px) { html body .hrp-detail-links ul:has(> :nth-child(4):last-child):not(#\#) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { html body .hrp-detail-links ul:has(> :nth-child(4):last-child):not(#\#) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { html body .hrp-detail-links ul:has(> :nth-child(6):last-child):not(#\#) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Five links: three and two, the pair sharing the second row in halves of the same width as the three above */
@media (min-width: 1024px) { html body .hrp-detail-links ul:has(> :nth-child(5):last-child):not(#\#) { grid-template-columns: repeat(6, minmax(0, 1fr)); } html body .hrp-detail-links ul:has(> :nth-child(5):last-child) > .hrp-detail-links__item:not(#\#) { grid-column: span 2; } html body .hrp-detail-links ul:has(> :nth-child(5):last-child) > .hrp-detail-links__item:nth-child(n+4):not(#\#) { grid-column: span 3; } }

/* ------------------------------------------------------------------ */
/* 32. Settings (24 November 2026)                                     */
/* ------------------------------------------------------------------ */

/* All settings: the six "Your account" links sit in two rows of three, in line with the three groups below,
   instead of five and one. */
@media (min-width: 768px) { html body .hs-account__links:has(> :nth-child(6):last-child):not(#\#) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* All settings: 60px stood between the title and the first card (the title's own margin, plus a gap either side
   of the setup strip when it has nothing to show). It is 20px, as on every other page. */
html body .hs-home > .z-page-header:not(#\#) { margin-bottom: 0; }
html body .hs-home > .hsu-wrap:not(:has(*)):not(#\#) { display: none; }

/* ------------------------------------------------------------------ */
/* 33. Record tabs (24 November 2026)                                  */
/* ------------------------------------------------------------------ */

/* Emails tab, when a mailbox has stopped syncing: the amber dot was squeezed to nothing by the long line beside it
   (only its halo showed, as a thin bar), and the line ran wider than the empty state above it. The dot keeps its
   size, and on the empty state the line wraps within the same width, centred. */
html body .hxmail-dot:not(#\#) { flex: none; }
html body .hxmail-sync--center:not(#\#) { display: block; max-width: 440px; margin-inline: auto; white-space: normal; text-align: center; text-wrap: balance; }
html body .hxmail-sync--center > .hxmail-dot:not(#\#) { display: inline-block; margin-right: 7px; vertical-align: middle; }

/* Company and contact records: where the tab's panel is itself a card (Contacts, Notes, Activity, a contact's Jobs)
   it stretched to the height kept for every tab, so a short list sat in a tall empty white card. The card is as tall
   as what is in it, as on candidates and jobs; the space below is kept, so the page doesn't jump between tabs. */
html body :is(.hcp-workspace, .z-record-layout) > .min-w-0:has(> [data-profile-tabs-shell] + :is(.hr62-workspace, .hx-notes-card, .z-card)):not(#\#) { min-block-size: calc(max(360px, 100dvh - 340px) + 64px); }
html body [data-profile-tabs-shell] + :is(.hr62-workspace, .hx-notes-card, .z-card):not(#\#) { min-block-size: 0; }

/* Call list and Visit planner: the first card kept its own 20px margins inside a column that already spaces its
   cards 16px apart, so 56px stood under the title (20px on every other page) and 36px or 56px between cards. */
html body .hbd > .z-page-header:not(#\#) { margin-bottom: 4px; }

/* ------------------------------------------------------------------ */
/* 34. Accounts, page menu and table empty rows (24 November 2026)     */
/* ------------------------------------------------------------------ */

/* Page menu: the current page's label is set a weight heavier, which made "Permanent placements" 0.4px too wide for
   its line, so it broke onto two and pushed the rest of the menu down whenever you opened it. The heavier label is
   tightened by the width the weight adds, so every label takes the same room whether current or not. */
html body .hx-page-links a[aria-current="page"] > span:not(#\#) { letter-spacing: -0.014em; }

/* Tables: a row that says the table is empty ("No submitted placements match this view", "No holiday requests yet")
   is the empty state of a table: one row with no plate, its title in ink and its line in subtle, read from the left
   like the rows it stands in for. It is the only row in its body; a one-cell group heading keeps the row padding. */
html body .z-table tbody > tr:only-child > td[colspan]:only-child:not(#\#):not(#\#) { padding: 20px 16px !important; color: var(--h-subtle); font-size: var(--h-fs-13); line-height: 20px; text-align: left !important; }
html body .z-table td[colspan] > p.font-medium:not(#\#):not(#\#) { color: var(--h-ink); font-size: var(--h-fs-14); font-weight: 500; }

/* Welcome wizard: the card was centred on the screen like the sign-in page (UI-1), so it moved up and down by as much
   as 150px every time a step was taller or shorter than the last. It now starts at the same place on every step: where
   the tallest step (Your agency) sits when centred, so the first step still looks as UI-1 intended. */
html body.z-crm-auth .z-auth-main:has(.z-auth-card .z-wiz-steps):not(#\#):not(#\#) { justify-content: flex-start !important; padding-top: max(clamp(28px, 6vh, 72px), calc(50vh - 400px)) !important; }
/* Wizard choices (Your team, Your data, You're in): a tile with a shorter description had its two lines spread apart to
   fill the height of the tile beside it, so the descriptions in a row didn't line up. Both now sit at the top. */
html body .z-wiz-tile:not(#\#) { align-content: start; }
/* 621: Your data asks how long data consent lasts under the agency's policy, as a row of choices above the tiles. */
.z-wiz-consent { margin: 0 0 18px; padding: 0; border: 0; }
.z-wiz-consent legend { margin-bottom: 10px; font-size: var(--h-fs-14); font-weight: 600; line-height: 20px; color: var(--h-ink); }
.z-wiz-consent__choice { cursor: pointer; }   /* drawn as the shared segmented control (section 2) */
.z-wiz-consent__choice:focus-within { outline: 2px solid var(--h-focus); outline-offset: 2px; }
.z-wiz-consent p { margin: 8px 0 0; font-size: var(--h-fs-12-5); line-height: 18px; color: var(--h-ink-2); }

/* Calendar: the header put the title, the colour key and the controls on one line while they fitted. A week or day
   title is longer, so on your screen the controls dropped to a second line there but not in Month, and the calendar
   moved 40px every time you switched view. Title and controls now share the first line and the key sits under the
   title in every view (as on a phone), so the header is the same height in Month, Week and Day. */
@media (min-width: 768px) {
  html body .hcal-bar > .hcal-title:not(#\#) { order: 1; }
  html body .hcal-bar > .hcal-tools:not(#\#) { order: 2; }
  html body .hcal-bar > .hcal-key:not(#\#) { order: 3; flex-basis: 100%; }
}

/* One list card (JP, 25 November: pages looked different from each other). On the record lists (Candidates, Jobs,
   Companies, Contacts), Sales desk, Lead finder, Bookings and Competitor jobs, the search and filters are the top of
   the list's white card. Placements, Tasks, Timesheets and Email campaigns had them on the page background above the
   card, and Applications in a card of its own; now each toolbar is the top of the card it filters, divided from the
   list by a hairline, and the card below joins it (its own top corners and top shadow go). */
html body :is(.placement-controls, .htk-controls, .hx-em__toolbar, .hxi-toolbar, .tsj-toolbar):not(#\#):not(#\#):not(#\#) {
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--h-line) !important;
  border-radius: var(--h-r-panel) var(--h-r-panel) 0 0 !important;
  background: var(--h-panel) !important;
  box-shadow: var(--h-shadow-card) !important;
  clip-path: inset(-40px -40px 0 -40px);
}
/* Timesheets has its filters on a second line under the search: the middle of the same card. */
html body .tsj-toolbar + .tsj-tabs:not(#\#):not(#\#):not(#\#) {
  margin: 0 !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--h-line) !important;
  background: var(--h-panel) !important;
  box-shadow: var(--h-shadow-card) !important;
  clip-path: inset(0 -40px);
}
html body .tsj-toolbar:has(+ .tsj-tabs):not(#\#):not(#\#):not(#\#) { border-bottom: 0 !important; padding-bottom: 0 !important; }
html body :is(.placement-controls, .htk-controls, .hx-em__toolbar, .tsj-tabs) + *:not(#\#):not(#\#):not(#\#),
html body .hxi-toolbar + * > .hap-list:first-child:not(#\#):not(#\#):not(#\#) {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  clip-path: inset(0 -40px -40px -40px);
}
html body .hxi-toolbar + * > .hap-list > .hap-cols:first-child:not(#\#):not(#\#):not(#\#) { border-radius: 0 !important; }
/* Applications' "Showing 1-2 of 2" bar is the foot of the same card too; with no bar (an empty list) the list keeps
   its own rounded foot. */
html body .hxi-toolbar + *:has(+ nav) > .hap-list:only-child:not(#\#):not(#\#):not(#\#),
html body .hap-list:has(+ nav):not(#\#):not(#\#):not(#\#) {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  clip-path: inset(0 -40px);
}
html body :is(.hxi-toolbar + * + nav, .hap-list + nav):not(#\#):not(#\#):not(#\#) {
  margin-top: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--h-line) !important;
  border-radius: 0 0 var(--h-r-panel) var(--h-r-panel) !important;
  background: var(--h-panel) !important;
  box-shadow: var(--h-shadow-card) !important;
  clip-path: inset(0 -40px -40px -40px);
}
/* Placements' "Showing 1-68 of 68" sits at the foot of the same card, as on the record lists, and so does "Showing 0
   of 0" under an empty view. */
html body :is(.placement-table-wrap, .placement-empty):has(+ .placement-results-footer):not(#\#):not(#\#):not(#\#) {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  clip-path: inset(0 -40px);
}
html body :is(.placement-table-wrap, .placement-empty) + .placement-results-footer:not(#\#):not(#\#):not(#\#) {
  margin-top: 0 !important;
  padding: 10px 16px !important;
  border-top: 1px solid var(--h-line) !important;
  border-radius: 0 0 var(--h-r-panel) var(--h-r-panel) !important;
  background: var(--h-panel) !important;
  box-shadow: var(--h-shadow-card) !important;
  clip-path: inset(0 -40px -40px -40px);
}

/* ------------------------------------------------------------------ */
/* 35. Bank details only Accounts, Owners and Admins see (557)         */
/* ------------------------------------------------------------------ */
/* The page has no real number to blur: these dots stand in for it, softened so they read as hidden, not as data. */
.h-payhide { display: inline-flex; align-items: center; max-width: 100%; vertical-align: middle; user-select: none; }
.h-payhide__blur { padding: 0 4px; border-radius: var(--h-r-sm); background: rgb(var(--h-subtle-rgb) / .14); color: var(--h-ink-2); font-weight: 600; letter-spacing: .12em; filter: blur(3.5px); }
.h-payhide-note { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: var(--h-fs-12); line-height: 18px; color: var(--h-ink-2); }
.h-payhide-note svg { flex: none; color: var(--h-subtle); }

/* Shared record action menus */
.z-action-menu-panel.h-menu{scrollbar-width:thin;scrollbar-color:var(--h-line-strong) transparent}
.h-menu .hx-menu-h:not(:first-child){padding-top:8px;border-top:1px solid var(--h-line)}
.h-menu .z-action-menu-item{text-align:left}
.h-menu .hx-mi-ic{flex:0 0 22px}

.h-notebox__quick-label{font-size:var(--h-fs-12);color:var(--h-ink-2);margin-inline-end:5px}
