/**
 * Hubly Operate layout tokens + shared page primitives.
 * Inbox (.jos-ibx-*) stays exempt — it is the visual rhythm reference.
 */
:root,
#p-app.jos-pixel {
  /* Spacing scale */
  --hub-space-4: 4px;
  --hub-space-8: 8px;
  --hub-space-12: 12px;
  --hub-space-16: 16px;
  --hub-space-20: 20px;
  --hub-space-24: 24px;
  --hub-space-32: 32px;
  --hub-space-40: 40px;
  --hub-space-48: 48px;
  --hub-space-64: 64px;

  /* Typography */
  /* Matched to .jos-ld-title (Leads' page title) — the explicit,
     confirmed-live reference size for every page header app-wide, not
     just Jobs. Was 32px/700/-0.03em, visibly bigger than Leads' 19px/
     800/-0.02em; every page sharing this token (Marketing, Revenue,
     Memberships, Pipeline, Customers, Settings, Ask Hubly, Storefront,
     Public Profile) inherits the fix from here in one place. */
  --hub-title: 19px;
  --hub-title-weight: 800;
  --hub-title-lh: 1.2;
  --hub-title-tracking: -0.02em;
  --hub-section: 22px;
  --hub-card-title: 16px;
  --hub-body: 15px;
  --hub-secondary: 14px;
  --hub-label: 12px;
  --hub-sub: 16px;
  --hub-sub-color: var(--jos-ink-2, #4A5160);

  /* Controls */
  --hub-btn-h: 44px;
  --hub-icon-btn: 40px;
  --hub-input-h: 48px;
  --hub-filter-h: 44px;
  --hub-chip-h: 36px;
  --hub-search-radius: 14px;
  --hub-search-pad-x: 16px;

  /* Surfaces */
  --hub-radius: 14px;
  --hub-radius-sm: 10px;
  --hub-radius-lg: 16px;
  --hub-border: var(--jos-border, #E6E8EC);
  --hub-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  --hub-card-pad: 20px;
  --hub-kpi-h: 92px;
  --hub-kpi-metric: 42px;
  --hub-page-max: 1400px;
  --hub-section-gap: var(--hub-space-24);
  --hub-header-to-content: var(--hub-space-24);
  --hub-title-to-sub: 6px;

  /* Icons */
  --hub-icon-nav: 20px;
  --hub-icon-card: 18px;
  --hub-icon-btn-size: 16px;
  --hub-icon-status: 14px;
}

/* ── Shared page layout primitives ── */
.hub-page,
.jos-page.hub-page {
  max-width: var(--hub-page-max);
  margin: 0 auto;
  padding: var(--hub-space-20) var(--hub-space-24) var(--hub-space-40);
  box-sizing: border-box;
}

.hub-page-header,
.jos-page-head.hub-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--hub-space-16);
  flex-wrap: wrap;
  margin: 0 0 var(--hub-header-to-content);
}

.hub-page-header h1,
.jos-page-head.hub-page-header h1,
.hub-page-title {
  margin: 0;
  font-size: var(--hub-title);
  font-weight: var(--hub-title-weight);
  line-height: var(--hub-title-lh);
  letter-spacing: var(--hub-title-tracking);
  color: var(--jos-navy, #141B2B);
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
}

.hub-page-header p,
.jos-page-head.hub-page-header p,
.hub-page-sub {
  margin: var(--hub-title-to-sub) 0 0;
  font-size: var(--hub-sub);
  line-height: 1.5;
  font-weight: 500;
  color: var(--hub-sub-color);
  max-width: 56ch;
}

.hub-page-actions,
.jos-page-actions {
  display: flex;
  align-items: center;
  gap: var(--hub-space-12);
  flex-wrap: wrap;
}

.hub-page-search,
.jos-ds-search.hub-page-search {
  display: flex;
  align-items: center;
  height: var(--hub-input-h);
  border-radius: var(--hub-search-radius);
  border: 1px solid var(--hub-border);
  background: #fff;
  padding: 0 var(--hub-search-pad-x);
  gap: var(--hub-space-12);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.hub-page-search input,
.jos-ds-search.hub-page-search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font: inherit;
  font-size: var(--hub-secondary);
  color: var(--jos-navy, #141B2B);
}

.hub-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--hub-space-12);
  flex-wrap: wrap;
  margin: 0 0 var(--hub-space-16);
}

.hub-filter-bar select,
.hub-filter-bar .hub-filter-dd {
  height: var(--hub-filter-h);
  border-radius: var(--hub-radius-sm);
  border: 1px solid var(--hub-border);
  background: #fff;
  padding: 0 var(--hub-space-12);
  font: inherit;
  font-size: var(--hub-secondary);
  font-weight: 650;
  color: var(--jos-navy, #141B2B);
}

.hub-filter-chip {
  height: var(--hub-chip-h);
  display: inline-flex;
  align-items: center;
  gap: var(--hub-space-8);
  padding: 0 var(--hub-space-12);
  border-radius: 999px;
  border: 1px solid var(--hub-border);
  background: #fff;
  font-size: var(--hub-secondary);
  font-weight: 650;
}

.hub-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--hub-space-12);
  margin: 0 0 var(--hub-space-16);
}

.hub-kpi-card,
.jos-kpi.hub-kpi-card {
  min-height: var(--hub-kpi-h);
  height: var(--hub-kpi-h);
  padding: var(--hub-card-pad);
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  background: #fff;
  box-shadow: var(--hub-shadow);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--hub-space-4);
}

.hub-kpi-card .lbl,
.hub-kpi-card .hub-kpi-lbl {
  font-size: var(--hub-label);
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jos-ink-3, #8A909C);
}

.hub-kpi-card .v,
.hub-kpi-card .hub-kpi-v {
  font-size: var(--hub-kpi-metric);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--jos-navy, #141B2B);
}

.hub-kpi-card .trend,
.hub-kpi-card .hub-kpi-trend {
  font-size: var(--hub-secondary);
  font-weight: 650;
  color: var(--jos-ink-2, #4A5160);
}

.hub-content-area {
  margin-top: 0;
}

.hub-section-title {
  margin: 0 0 var(--hub-space-12);
  font-size: var(--hub-section);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--jos-navy, #141B2B);
}

.hub-empty,
.jos-empty.hub-empty {
  max-height: 300px;
  padding: var(--hub-space-32) var(--hub-space-24);
  text-align: center;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  background: #fff;
  box-shadow: var(--hub-shadow);
}

.hub-empty h3 {
  margin: 0 0 var(--hub-space-8);
  font-size: var(--hub-card-title);
  font-weight: 750;
}

.hub-empty p {
  margin: 0 0 var(--hub-space-16);
  font-size: var(--hub-secondary);
  color: var(--hub-sub-color);
}

/* Standardize Operate page heroes (Inbox exempt). Jobs and Leads are
   deliberately NOT in this list — both moved to their own compact,
   purpose-built page-title styles (.jos-ld-title on Leads; .jos-jobs-header
   h1 below, matched to it) and a shared !important rule here would just
   force them back to the old generic 32px hero size, which is exactly the
   "Jobs font is way bigger than Leads" bug: Leads' redesign escaped this
   rule by no longer using .jos-ld-header h1 at all, but Jobs never got the
   same redesign and was still being caught by it. */
#p-app.jos-pixel .jos-page-head h1,
#p-app.jos-pixel .jos-mkt-mc-header h1,
#p-app.jos-pixel .jos-mkt-mc-subhead h1,
#p-app.jos-pixel .jos-rev-mc-title h1,
#p-app.jos-pixel .jos-mem-mc-header h1,
#p-app.jos-pixel .jos-rve-mc-header h1,
#p-app.jos-pixel .jos-rpt-mc-header h1,
#p-app.jos-pixel .jos-pipe-page > .jos-page-head h1,
#p-app.jos-pixel .jos-cust-page > .jos-page-head h1,
#p-app.jos-pixel .jos-leads-page > .jos-page-head h1,
#p-app.jos-pixel .jos-ah-mc-header h1,
#p-app.jos-pixel .jos-set-mc-header h1,
#p-app.jos-pixel .pp-mc-header h1,
#p-app.jos-pixel .jos-store-header h1 {
  font-size: var(--hub-title) !important;
  font-weight: var(--hub-title-weight) !important;
  line-height: var(--hub-title-lh) !important;
  letter-spacing: var(--hub-title-tracking) !important;
}

#p-app.jos-pixel .jos-page-head p,
#p-app.jos-pixel .jos-mkt-mc-header p,
#p-app.jos-pixel .jos-mkt-mc-subhead p,
#p-app.jos-pixel .jos-rev-mc-title p,
#p-app.jos-pixel .jos-mem-mc-header p,
#p-app.jos-pixel .jos-rve-mc-header p,
#p-app.jos-pixel .jos-rpt-mc-header p,
#p-app.jos-pixel .jos-store-header p {
  margin-top: var(--hub-title-to-sub) !important;
  font-size: var(--hub-sub) !important;
  line-height: 1.5 !important;
}

#p-app.jos-pixel .jos-page-head,
#p-app.jos-pixel .jos-mkt-mc-header,
#p-app.jos-pixel .jos-rev-mc-header,
#p-app.jos-pixel .jos-mem-mc-header,
#p-app.jos-pixel .jos-rve-mc-header,
#p-app.jos-pixel .jos-rpt-mc-header,
#p-app.jos-pixel .jos-store-header {
  margin-bottom: var(--hub-header-to-content) !important;
  min-height: 0 !important;
}

/* Compress oversized KPI / CTA heroes */
#p-app.jos-pixel .jos-mkt-mc-new,
#p-app.jos-pixel .jos-btn.hub-btn,
#p-app.jos-pixel .jos-jobs-new,
#p-app.jos-pixel .jos-jobs-export,
#p-app.jos-pixel .jos-ld-new,
#p-app.jos-pixel .jos-ld-export,
#p-app.jos-pixel .jos-ld-bulk,
#p-app.jos-pixel .jos-store-new,
#p-app.jos-pixel .jos-store-export {
  height: var(--hub-btn-h) !important;
}

#p-app.jos-pixel .jos-mkt-mc-kpi,
#p-app.jos-pixel .jos-kpi:not(.jos-ibx-kpi) {
  min-height: var(--hub-kpi-h);
  padding: var(--hub-card-pad);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow);
  border-color: var(--hub-border);
}

#p-app.jos-pixel .jos-empty:not(.jos-ibx-empty) {
  max-height: 300px;
  padding: var(--hub-space-32) var(--hub-space-24);
}

/* Jobs / Calendar denser workspace */
#p-app.jos-pixel.jos-jobs-mode .jos-jobs-main {
  padding: var(--hub-space-24) var(--hub-space-24) var(--hub-space-32);
}

#p-app.jos-pixel.jos-jobs-mode .jos-jobs-toolbar .jos-jobs-search,
#p-app.jos-pixel.jos-jobs-mode .jos-jobs-search {
  height: var(--hub-input-h);
  border-radius: var(--hub-search-radius);
  padding: 0 var(--hub-search-pad-x);
  background: #fff;
}

#p-app.jos-pixel.jos-jobs-mode .jos-jobs-dd {
  height: var(--hub-filter-h);
  border-radius: var(--hub-radius-sm);
}

#p-app.jos-pixel.jos-jobs-mode .jos-jobs-table-card,
#p-app.jos-pixel.jos-jobs-mode .jos-jobs-rail-card {
  border-radius: var(--hub-radius-lg);
  border-color: var(--hub-border);
  box-shadow: var(--hub-shadow);
}

/* Job summary sidebar (list tab) — a tight grid of small stat tiles, not
   six 84px-tall cards stacked three rows deep next to the table. */
.jos-jobs-sum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: var(--hub-space-12);
}

.jos-jobs-sum-kpi {
  min-height: 0;
  padding: 8px 6px;
  border: 1px solid var(--hub-border);
  border-radius: 10px;
  background: #F8F9FB;
  display: flex;
  flex-direction: column;
  gap: 2px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  min-width: 0;
}

.jos-jobs-sum-kpi:hover {
  border-color: rgba(217, 99, 45, 0.35);
  background: #FFF8F3;
}

.jos-jobs-sum-kpi .lbl {
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--jos-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jos-jobs-sum-kpi strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--jos-navy);
  line-height: 1.15;
}

.jos-jobs-donut-wrap {
  display: flex;
  align-items: center;
  gap: var(--hub-space-16);
  margin-top: var(--hub-space-12);
}

.jos-jobs-donut {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(
    #22c55e 0 var(--jos-donut-sched, 33%),
    #3b82f6 var(--jos-donut-sched, 33%) var(--jos-donut-prog, 58%),
    #f59e0b var(--jos-donut-prog, 58%) var(--jos-donut-pend, 70%),
    #94a3b8 var(--jos-donut-pend, 70%) var(--jos-donut-done, 95%),
    #ef4444 var(--jos-donut-done, 95%) 100%
  );
  mask: radial-gradient(circle 34px at center, transparent 98%, #000 100%);
  -webkit-mask: radial-gradient(circle 34px at center, transparent 98%, #000 100%);
}

.jos-jobs-donut-legend {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--jos-ink-2);
}

.jos-jobs-donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.jos-jobs-donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.jos-jobs-insight {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--jos-navy);
  margin-top: 8px;
  background: #fff;
}

.jos-jobs-insight.warn { background: #FFF7ED; border-color: #FED7AA; color: #9A3412; }
.jos-jobs-insight.alert { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.jos-jobs-insight.info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.jos-jobs-insight .jos-linkish { font-size: 12px; font-weight: 700; }

.jos-jobs-help-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--jos-ink-2);
  line-height: 1.45;
}

.jos-jobs-help-card a {
  color: var(--jos-brand);
  font-weight: 700;
  text-decoration: none;
}

/* Calendar-specific chrome */
.jos-jobs-shell.is-calendar .jos-jobs-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.jos-jobs-cal-views {
  display: inline-flex;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.jos-jobs-cal-views button {
  appearance: none;
  border: 0;
  background: transparent;
  height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--jos-ink-2);
  cursor: pointer;
}

.jos-jobs-cal-views button.on {
  background: var(--jos-brand);
  color: #fff;
}

.jos-jobs-travel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--jos-ink-2);
}

.jos-jobs-travel-toggle input {
  accent-color: var(--jos-brand);
  width: 18px;
  height: 18px;
}

.jos-cal-ai-card {
  background: linear-gradient(135deg, #F5F3FF, #EEF2FF);
  border: 1px solid #E0E7FF;
  border-radius: var(--hub-radius);
  padding: var(--hub-space-16);
  margin-top: var(--hub-space-12);
}

.jos-cal-ai-card p {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  color: #3730A3;
  line-height: 1.45;
}

.jos-cal-today-sum {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.jos-cal-today-sum .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--jos-ink-2);
}

.jos-cal-today-sum strong {
  color: var(--jos-navy);
  font-weight: 800;
}

.jos-jobs-agenda {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.jos-jobs-agenda-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  appearance: none;
  border: 1px solid var(--hub-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.jos-jobs-agenda-item:hover {
  border-color: rgba(217, 99, 45, 0.35);
  background: #FFF8F3;
}

.jos-jobs-agenda-item .meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jos-jobs-agenda-item strong {
  font-size: 13px;
  font-weight: 750;
  color: var(--jos-navy);
}

.jos-jobs-agenda-item span {
  font-size: 12px;
  color: var(--jos-ink-3);
}

/* Editor v2 — always-editable when Website editor is open (no Edit Mode toggle) */
body.ed-editor-open #ed-ws-preview .ws-pe-target {
  cursor: text;
}

body.ed-editor-open #ed-ws-preview .ws-pe-target:hover {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

body.ed-editor-open #ed-ws-preview .ws-pe-target.is-pe-selected {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="cta"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="cta-secondary"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="hero-bg"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="logo"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="hours"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="contact"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="social"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="promo"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="trust-stats"] {
  cursor: pointer;
}

#ws-pe-context-bar {
  /* Floating Edit / Style / AI chrome retired — keep node inert if present. */
  display: none !important;
  position: absolute;
  z-index: 14000;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(15, 20, 31, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

#ws-pe-context-bar.is-open {
  display: none !important;
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
}

#ws-pe-context-bar button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

#ws-pe-context-bar button:hover {
  background: rgba(255, 255, 255, 0.12);
}

#ws-pe-context-bar button[data-pe-ai] {
  color: #FDBA74;
}

.ed-edit-mode-btn {
  display: none !important;
}

/* Website-first: keep canvas dominant when inspector closed */
body.ed-editor-open .ed-shell.ed-canvas-mode:not(.ed-sheet-open) {
  grid-template-columns: auto minmax(0, 1fr) !important;
}

/* Keep 44px stub so collapsed Website menu can reopen on desktop */
body.ed-editor-open .ed-shell.ed-canvas-mode.ed-settings-collapsed:not(.ed-sheet-open) {
  grid-template-columns: 44px minmax(0, 1fr) !important;
}
@media (max-width: 900px) {
  body.ed-editor-open .ed-shell.ed-canvas-mode:not(.ed-sheet-open),
  body.ed-editor-open .ed-shell.ed-canvas-mode.ed-settings-collapsed:not(.ed-sheet-open) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* iPhone: inspector is a bottom sheet — never a full-height right panel */
  body.ed-editor-open .ed-shell.ed-canvas-mode.ed-sheet-open .ed-ctrl {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: min(58dvh, 520px) !important;
    z-index: 5100 !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  body.ed-editor-open #v-editor,
  body.ed-editor-open .ed-shell.ed-canvas-mode {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
}

body.ed-editor-open .ed-shell.ed-canvas-mode .ed-prev {
  min-width: 0;
}

@media (max-width: 900px) {
  .jos-jobs-sum-grid {
    grid-template-columns: 1fr;
  }
}

/* ── True inline editing ── */
#ed-ws-preview .ws-pe-inline-editing{
  outline:2px solid #2563EB !important;
  outline-offset:3px;
  box-shadow:0 0 0 4px rgba(37,99,235,.14);
  cursor:text;
  min-width:1ch;
  background:rgba(37,99,235,.08);
  border-radius:4px;
  -webkit-user-select:text;
  user-select:text;
}
#ed-ws-preview .ws-svc-price.ws-pe-target,
#ed-ws-preview .ws-svc-dur.ws-pe-target,
#ed-ws-preview h3.ws-pe-target[data-pe="svc-name"]{
  cursor:text;
}
#ed-ws-preview .ws-svc-price.ws-pe-target:hover,
#ed-ws-preview .ws-svc-dur.ws-pe-target:hover,
#ed-ws-preview h3.ws-pe-target[data-pe="svc-name"]:hover{
  outline:2px dashed rgba(37,99,235,.45);
  outline-offset:2px;
}
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="headline"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="tagline"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="cta"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="cta-secondary"],
body.ed-editor-open #ed-ws-preview .ws-pe-target[data-pe="biz-name"]{
  cursor:text;
}

/* Contextual toolbar — website first */
#ws-pe-context-bar button[data-pe-act="style"]{color:#93C5FD}
#ws-pe-context-bar button[data-pe-act="delete"]{color:#FCA5A5}
#ws-pe-context-bar button[data-pe-act="photo"]{color:#FDBA74}

/* Inspector only when Style opens sheet */
body.ed-editor-open .ed-shell.ed-canvas-mode:not(.ed-sheet-open) .ed-ctrl{
  pointer-events:none;
  opacity:0;
  transform:translateX(24px);
}
body.ed-editor-open .ed-shell.ed-canvas-mode.ed-sheet-open .ed-ctrl{
  opacity:1;
  transform:none;
  transition:opacity .2s ease, transform .22s ease;
}

/* ── Business Pulse ── */
.jos-business-pulse{
  appearance:none;border:1px solid var(--hub-border,#E6E8EC);background:#fff;
  height:38px;padding:0 12px;border-radius:10px;cursor:pointer;font:inherit;
  display:inline-flex;align-items:center;gap:8px;color:var(--jos-navy,#141B2B);
}
.jos-business-pulse:hover{border-color:rgba(217,99,45,.4);background:#FFF8F3}
.jos-business-pulse .pulse-dot{
  width:8px;height:8px;border-radius:50%;background:#22c55e;
  box-shadow:0 0 0 0 rgba(34,197,94,.5);animation:hubPulseBeat 1.8s ease infinite;
}
@keyframes hubPulseBeat{
  0%{box-shadow:0 0 0 0 rgba(34,197,94,.45)}
  70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}
  100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}
}
.jos-business-pulse .pulse-stars{font-size:11px;letter-spacing:.02em;color:#D97706;font-weight:800}
.jos-business-pulse .pulse-lbl{font-size:12px;font-weight:750;color:var(--jos-ink-2,#4A5160)}
.jos-pulse-pop{
  position:fixed;z-index:12600;width:min(340px,92vw);background:#fff;
  border:1px solid var(--hub-border,#E6E8EC);border-radius:16px;
  box-shadow:0 18px 48px rgba(15,23,42,.16);padding:16px;display:none;
}
.jos-pulse-pop.open{display:block;animation:josHomeIn .2s ease both}
.jos-pulse-pop h3{margin:0;font-size:15px;font-weight:800;color:var(--jos-navy,#141B2B)}
.jos-pulse-pop .stars{margin:6px 0 12px;color:#D97706;font-weight:800;letter-spacing:.04em}
.jos-pulse-metrics{display:grid;gap:8px;margin:0 0 12px}
.jos-pulse-metrics .row{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--jos-ink-2)}
.jos-pulse-metrics strong{color:var(--jos-navy);font-weight:800}
.jos-pulse-metrics .up{color:#15803d}
.jos-pulse-alert{
  font-size:13px;font-weight:650;color:#9A3412;background:#FFF7ED;
  border:1px solid #FED7AA;border-radius:12px;padding:10px 12px;margin-bottom:10px;
}
.jos-pulse-opp{
  font-size:13px;font-weight:650;color:#3730A3;background:#EEF2FF;
  border:1px solid #C7D2FE;border-radius:12px;padding:10px 12px;
}
.jos-pulse-opp .kicker{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;margin-bottom:4px;opacity:.8}

/* ── Delight toasts ── */
#toast.is-delight{
  background:linear-gradient(135deg,#141B2B,#1f2937);
  font-weight:700;padding:14px 22px;border-radius:16px;
  box-shadow:0 16px 40px rgba(15,23,42,.35);
}
#toast.is-delight.is-ok{background:linear-gradient(135deg,#15803d,#166534)}

/* Page AI FAB label */
#jos-ask-fab .jos-ask-fab-lbl{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ed-editor-open .jos-business-pulse,
#p-app.jos-pixel.jos-ask-mode .jos-business-pulse{display:none!important}
#p-app.jos-pixel.jos-jobs-mode .jos-business-pulse,
#p-app.jos-pixel.jos-inbox-mode .jos-business-pulse{
  /* still available on jobs/inbox when app-bar hidden — pulse lives in page chrome later */
}
#p-app.jos-pixel.jos-jobs-mode .app-bar,
#p-app.jos-pixel.jos-inbox-mode .app-bar{/* unchanged */}

/* Keep Business Pulse reachable when Operate pages hide the app bar */
#p-app.jos-pixel.jos-jobs-mode .jos-business-pulse,
#p-app.jos-pixel.jos-inbox-mode .jos-business-pulse,
#p-app.jos-pixel.jos-marketing-mode .jos-business-pulse,
#p-app.jos-pixel.jos-reviews-mode .jos-business-pulse,
#p-app.jos-pixel.jos-memberships-mode .jos-business-pulse,
#p-app.jos-pixel.jos-revenue-mode .jos-business-pulse,
#p-app.jos-pixel.jos-reports-mode .jos-business-pulse{
  position:fixed;top:14px;right:18px;z-index:12450;
  display:inline-flex!important;
  box-shadow:0 8px 24px rgba(15,23,42,.12);
}
@media(max-width:800px){
  #p-app.jos-pixel.jos-jobs-mode .jos-business-pulse,
  #p-app.jos-pixel.jos-inbox-mode .jos-business-pulse{
    top:10px;right:10px;padding:0 10px;height:34px;
  }
  #p-app.jos-pixel.jos-jobs-mode .jos-business-pulse .pulse-lbl{display:none}
}
