@import url('/css/v2.css?v=20261118z29');

/* ==========================================================================
   SETTINGS TWO-COLUMN LAYOUT (ULTRAOFFICE LEFT RAIL + SUB-TABS)
   ========================================================================== */
.hcp-settings-layout {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: calc(100vh - 58px);
  margin: -16px -20px -44px;
  background: var(--bg);
}

.hcp-settings-sidebar {
  position: sticky;
  top: 56px;
  align-self: start;
  height: calc(100vh - 56px);
  overflow-y: auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 14px 10px 24px;
}

.hcp-settings-sidebar .hcp-settings-search,
.hcp-settings-sidebar #v2-settings-search {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 999px;
  font-size: 12px;
  padding: 6px 12px;
}

.hcp-settings-group-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 16px 10px 6px;
}

.hcp-settings-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 10px 8px 12px;
  margin-bottom: 1px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--tx-sec);
  font: 600 13px 'Inter', sans-serif;
  cursor: pointer;
  transition: 0.13s;
}

.hcp-settings-nav-item:hover {
  background: var(--panel2);
  color: var(--text);
}

.hcp-settings-nav-item.active {
  background: rgba(34, 211, 238, 0.1);
  border-left-color: var(--acc2);
  color: var(--acc2);
  font-weight: 700;
}

body.hcp-light-body .hcp-settings-nav-item.active {
  background: #eff6ff;
  border-left-color: #006aff;
  color: #006aff;
}

.hcp-settings-main {
  padding: 20px 26px 48px;
  min-width: 0;
}

.hcp-settings-main > h2,
.hcp-settings-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.hcp-settings-subtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 12px 0 16px;
  overflow-x: auto;
}

.hcp-settings-subtab {
  padding: 9px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--mut);
  font: 700 13px 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.hcp-settings-subtab:hover {
  color: var(--text);
}

.hcp-settings-subtab.active,
.hcp-settings-subtab.on {
  color: var(--acc2);
  border-bottom-color: var(--acc2);
}

body.hcp-light-body .hcp-settings-subtab.active,
body.hcp-light-body .hcp-settings-subtab.on {
  color: #006aff;
  border-bottom-color: #006aff;
}

/* ==========================================================================
   APPS 9-DOT POPOVER & APP STORE GRID
   ========================================================================== */
.hcp-apps-menu .hcp-more-dropdown,
.hcp-apps-popover-card {
  position: absolute;
  top: 48px;
  right: 0;
  left: auto;
  width: 365px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  z-index: 90;
}

.hcp-ext-stack-strip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.hcp-ext-stack-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mut);
  margin-bottom: 6px;
}

.hcp-ext-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.hcp-ext-stack-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.12s;
}

.hcp-ext-stack-link:hover {
  border-color: var(--acc2);
  color: var(--acc2);
}

body.hcp-light-body .hcp-ext-stack-link:hover {
  border-color: #006aff;
  color: #006aff;
  background: #eff6ff;
}

body.hcp-light-body .hcp-apps-popover-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.hcp-apps-menu > summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
}

.hcp-apps-menu > summary::-webkit-details-marker {
  display: none;
}

.hcp-goto-appstore-btn {
  display: block;
  margin: 0 auto 12px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--acc);
  color: #ffffff !important;
  font: 700 13px 'Inter', sans-serif;
  cursor: pointer;
}

body.hcp-light-body .hcp-goto-appstore-btn {
  background: #111827;
}

.hcp-apps-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hcp-app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: 0.13s;
}

.hcp-app-tile span {
  font-size: 22px;
}

.hcp-app-tile small {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: var(--tx-sec);
}

.hcp-app-tile:hover {
  background: var(--panel2);
  border-color: var(--line);
}

.hcp-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hcp-app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

.hcp-app-card:hover {
  border-color: var(--acc2);
}

.hcp-app-active-dot {
  color: var(--ok);
  font-size: 11.5px;
  font-weight: 700;
}

.hcp-app-pill {
  display: inline-flex;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--mut);
}

/* ==========================================================================
   NOTIFICATIONS BELL DRAWER
   ========================================================================== */
.hcp-notif-drawer {
  position: fixed;
  top: 56px;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.4);
  z-index: 85;
  display: flex;
  flex-direction: column;
  color: var(--text);
  animation: hcpSlideIn 0.16s ease-out;
}

@keyframes hcpSlideIn {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hcp-notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.hcp-notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.hcp-notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 12.5px;
}

.hcp-notif-item:hover {
  background: var(--panel2);
  border-color: var(--line);
}

.hcp-notif-item.unread {
  background: rgba(34, 211, 238, 0.07);
}

/* ==========================================================================
   MOBILE / TABLET RESPONSIVE (APP OPENED ON PHONE OR PAD)
   ========================================================================== */
@media (max-width: 900px) {
  .hcp-topnav {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 6px;
    position: sticky;
  }

  .hcp-topnav-left {
    flex: 1 1 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hcp-topnav-left::-webkit-scrollbar {
    display: none;
  }

  .hcp-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .hcp-nav-link,
  .v2-nav-btn.hcp-nav-link {
    height: 44px;
  }

  .hcp-more-menu {
    height: 44px;
  }

  .hcp-more-dropdown {
    position: fixed;
    top: 100px;
    left: 8px;
    right: 8px;
    min-width: 0;
  }

  .hcp-topnav-right {
    flex: 1 1 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .hcp-top-search,
  #v2-search {
    width: 130px;
  }

  .hcp-top-search:focus,
  #v2-search:focus {
    width: 160px;
  }

  .v2-content,
  .hcp-full-content {
    padding: 12px 10px 40px;
  }

  .hcp-sched-toolbar {
    margin: -12px -10px 12px;
    padding: 8px 10px;
  }

  .hcp-layout,
  .hcp-settings-layout,
  .hcp-home-status-split,
  .hcp-map-split,
  .grid-2,
  .grid-3,
  .hcp-dash-grid,
  .hcp-apps-grid {
    grid-template-columns: 1fr;
  }

  .hcp-settings-layout {
    margin: -12px -10px -40px;
  }

  .hcp-settings-sidebar {
    position: static;
    height: auto;
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hcp-settings-main {
    padding: 14px 12px 40px;
  }

  .hcp-map-split {
    height: auto;
  }

  .hcp-map-canvas,
  #v2-hcp-dispatch-map {
    height: 420px;
  }

  .kpi-grid,
  .hcp-home-pipe-grid,
  .hcp-mtd-cols,
  .morning-buckets,
  .preset-grid,
  .win-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hcp-dash-widget-grid {
    grid-template-columns: 1fr;
  }

  .hcp-dash-widget-grid > * {
    grid-column: span 1 !important;
  }

  .hcp-line-item-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hcp-field-row {
    grid-template-columns: 1fr;
  }

  .modal-bg {
    padding: 0;
    place-items: stretch;
  }

  .modal {
    max-width: 100vw;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .drawer,
  .hcp-notif-drawer {
    max-width: 100vw;
    width: 100vw;
  }

  .hcp-notif-drawer {
    top: 0;
    z-index: 95;
  }

  .data-table,
  .hcp-customers-table,
  .hcp-leaderboard-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
/* ==========================================================================
   TOP-NAV FIT: NEVER OVERLAP (More ▾ vs search) AT 1024 / 1280 / 1366 / 1440
   Search always sits in a fixed-width slot; focus expands it as an overlay.
   ========================================================================== */
.hcp-search-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  height: 36px;
  display: flex;
  align-items: center;
}

.hcp-search-wrap .hcp-top-search,
.hcp-search-wrap #v2-search {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 36px;
  padding: 0 13px;
  z-index: 5;
  transition: width 0.15s ease;
}

.hcp-search-wrap .hcp-top-search:focus,
.hcp-search-wrap #v2-search:focus {
  width: 290px;
}

.hcp-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 380px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 9999;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  color: var(--text);
}

body.hcp-light-body .hcp-search-dropdown {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.hcp-search-group-hdr {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  padding: 6px 10px 3px;
}

.hcp-search-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: 500 12.5px 'Inter', sans-serif;
  cursor: pointer;
  transition: 0.12s;
}

.hcp-search-result-row:hover {
  background: var(--panel2);
  color: var(--acc2);
}

body.hcp-light-body .hcp-search-result-row:hover {
  background: #eff6ff;
  color: #006aff;
}

.hcp-operator-pill {
  position: relative;
}

.hcp-topnav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hcp-topnav-right > * {
  flex-shrink: 0;
  align-self: center;
}

.hcp-topnav-right .hcp-new-btn,
.hcp-topnav-right .hcp-jarvis-pill {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.hcp-topnav-icon-cluster {
  display: inline-flex;
  align-items: center;
  height: 36px;
  gap: 4px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: visible;
}

body.hcp-light-body .hcp-topnav-icon-cluster {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.hcp-topnav-icon-cluster .hcp-icon-btn {
  width: 30px;
  height: 30px;
  color: #cbd5e1;
  transition: all 0.15s ease;
  overflow: visible;
}

.hcp-topnav-icon-cluster .hcp-icon-badge {
  top: -6px;
  right: -5px;
  min-width: 19px;
  height: 18px;
  padding: 0 5px;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  border: 2px solid #090d16;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

body.hcp-light-body .hcp-topnav-icon-cluster .hcp-icon-badge {
  border-color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.hcp-nav-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums;
}

body.hcp-light-body .hcp-topnav-icon-cluster .hcp-icon-btn {
  color: #334155;
}

.hcp-topnav-icon-cluster .hcp-icon-btn:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: transparent;
}

.hcp-avatar-menu {
  position: relative;
  height: auto !important;
  display: block !important;
  align-self: center;
  margin: 0;
}

.hcp-avatar-menu > summary.hcp-operator-pill {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  gap: 8px;
  padding: 0 11px 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  transition: all 0.16s ease;
  box-sizing: border-box;
}

.hcp-avatar-menu > summary.hcp-operator-pill::-webkit-details-marker {
  display: none;
}

.hcp-avatar-menu > summary.hcp-operator-pill::marker {
  content: '';
  display: none;
}

.hcp-avatar-menu > summary.hcp-operator-pill:hover,
.hcp-avatar-menu[open] > summary.hcp-operator-pill {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

body.hcp-light-body .hcp-avatar-menu > summary.hcp-operator-pill {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.hcp-operator-name {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
}

body.hcp-light-body .hcp-operator-name {
  color: #0f172a;
}

.hcp-operator-caret {
  color: #94a3b8;
  transition: transform 0.16s ease;
}

.hcp-avatar-menu[open] .hcp-operator-caret {
  transform: rotate(180deg);
  color: #38bdf8;
}

.hcp-operator-avatar.lg {
  width: 38px;
  height: 38px;
  font-size: 13.5px;
  flex-shrink: 0;
}

.hcp-avatar-popover-card {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 318px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(11, 16, 27, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
  z-index: 1200;
  backdrop-filter: blur(18px);
}

body.hcp-light-body .hcp-avatar-popover-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.hcp-avatar-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hcp-avatar-sig-box {
  margin-top: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.hcp-avatar-section-label {
  margin-top: 11px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.hcp-avatar-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 6px;
}

body.hcp-light-body .hcp-avatar-pref-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.hcp-avatar-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hcp-avatar-link-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #f1f5f9;
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}

body.hcp-light-body .hcp-avatar-link-item {
  color: #0f172a;
}

.hcp-avatar-link-item:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.hcp-avatar-link-item > span {
  font-size: 15px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.hcp-avatar-link-item b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}

.hcp-avatar-link-item small {
  display: block;
  font-size: 10.5px;
  color: #94a3b8;
}

.hcp-testing-persona-drawer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

.hcp-testing-persona-drawer > summary {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 2px;
}

.hcp-testing-persona-drawer > summary:hover {
  color: #38bdf8;
}

.hcp-testing-persona-drawer .hcp-operator-select {
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  max-width: 100% !important;
}

/* Tier 1: laptops <= 1560px — compact search */
@media (max-width: 1560px) {
  .hcp-search-wrap { width: 165px; }
}

/* Tier 2: <= 1400px — logo badge only, tighter nav */
@media (max-width: 1400px) {
  .hcp-brand-text { display: none; }
  .hcp-brand-btn { padding: 3px; }
  .hcp-nav-link,
  .v2-nav-btn.hcp-nav-link { padding: 0 7px; font-size: 12.5px; }
  .hcp-search-wrap { width: 155px; }
}

/* Tier 3: <= 1200px — search becomes an icon-sized slot, phone icon hides */
@media (max-width: 1200px) {
  .hcp-search-wrap { width: 36px; }
  .hcp-search-wrap .hcp-top-search,
  .hcp-search-wrap #v2-search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0;
    cursor: pointer;
  }
  .hcp-search-wrap .hcp-top-search:focus,
  .hcp-search-wrap #v2-search:focus {
    background-image: none;
    width: 260px;
    font-size: 12px;
    cursor: text;
  }
  .hcp-nav-link,
  .v2-nav-btn.hcp-nav-link { padding: 0 6px; font-size: 12px; }
  .hcp-new-btn { padding: 6px 11px; }
}

/* Tier 4: <= 1040px — two-row bar: nav on its own row so nothing can collide */
@media (max-width: 1040px) {
  .hcp-topnav {
    height: auto;
    flex-wrap: wrap;
    padding: 4px 10px;
    row-gap: 2px;
  }
  .hcp-topnav-left { flex: 1 1 100%; order: 2; overflow: visible; }
  .hcp-topnav-right { flex: 1 1 100%; order: 1; justify-content: flex-end; }
  .hcp-brand-btn { margin-right: auto; }
  .hcp-nav { overflow: visible; flex-wrap: wrap; }
  .hcp-nav-link,
  .v2-nav-btn.hcp-nav-link { height: 40px; }
  .hcp-more-menu { height: 40px; }
  .hcp-more-dropdown { top: 38px; }
}

/* ==========================================================================
   VISUAL PRICE BOOK & QUICK-ADD LINE-ITEM SYSTEM (1-TO-1 HOUSECALL PRO)
   ========================================================================== */
.hcp-pb-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 58px);
  margin: -16px -20px -44px;
  background: var(--bg);
}

.hcp-settings-main .hcp-pb-shell {
  margin: 0;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.hcp-pb-sidebar {
  position: sticky;
  top: 56px;
  align-self: start;
  height: calc(100vh - 56px);
  overflow-y: auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 16px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hcp-settings-main .hcp-pb-sidebar {
  position: static;
  height: auto;
}

.hcp-pb-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--tx-sec);
  font: 600 13px 'Inter', sans-serif;
  cursor: pointer;
  transition: 0.13s;
}

.hcp-pb-nav-item:hover {
  background: var(--panel2);
  color: var(--text);
}

.hcp-pb-nav-item.active {
  background: rgba(34, 211, 238, 0.1);
  border-left-color: var(--acc2);
  color: var(--acc2);
  font-weight: 700;
}

body.hcp-light-body .hcp-pb-nav-item.active {
  background: #eff6ff;
  border-left-color: #006aff;
  color: #006aff;
}

.hcp-pb-main {
  padding: 20px 26px 48px;
  min-width: 0;
}

.hcp-pb-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--mut);
  margin-bottom: 10px;
}

.hcp-pb-breadcrumbs a,
.hcp-pb-crumb,
.hcp-pb-breadcrumbs [data-pb-crumb] {
  color: var(--acc2);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 2px 4px;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
}

body.hcp-light-body .hcp-pb-breadcrumbs a,
body.hcp-light-body .hcp-pb-crumb,
body.hcp-light-body .hcp-pb-breadcrumbs [data-pb-crumb] {
  color: #006aff;
}

.hcp-pb-breadcrumbs a:hover,
.hcp-pb-crumb:hover,
.hcp-pb-breadcrumbs [data-pb-crumb]:hover {
  text-decoration: underline;
  background: var(--panel2);
}

.hcp-pb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.hcp-pb-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.hcp-pb-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

body.hcp-light-body .hcp-pb-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.hcp-pb-card:hover {
  transform: translateY(-2px);
  border-color: var(--acc2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.hcp-light-body .hcp-pb-card:hover {
  border-color: #006aff;
  box-shadow: 0 8px 20px rgba(0, 106, 255, 0.14);
}

.hcp-pb-card-thumb {
  height: 150px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(124, 92, 255, 0.22));
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

body.hcp-light-body .hcp-pb-card-thumb {
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
  border-bottom-color: #e2e8f0;
  color: #0f172a;
}

.hcp-pb-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hcp-pb-card-body,
.hcp-pb-card-foot {
  padding: 11px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}

body.hcp-light-body .hcp-pb-card-body,
body.hcp-light-body .hcp-pb-card-foot {
  background: #ffffff;
  color: #0f172a;
}

.hcp-pb-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 12.5px;
}

.hcp-pb-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
}

.hcp-pb-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text);
}

.hcp-pb-table tr:hover td {
  background: var(--panel2);
}

.hcp-pb-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--panel2);
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hcp-pb-desc-text {
  white-space: pre-line;
  line-height: 1.45;
  color: var(--tx-sec);
  font-size: 12px;
}

.hcp-pb-desc-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* QUICK-ADD VISUAL PRICE BOOK PICKER MODAL & QUANTITY STEPPER */
.hcp-pb-picker-modal {
  max-width: 1080px !important;
  width: 96vw !important;
  max-height: 90vh !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden !important;
}

.hcp-pb-picker-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hcp-pb-picker-body {
  padding: 18px 20px 26px;
  overflow-y: auto;
  flex: 1;
}

.hcp-pb-picker-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
  margin-bottom: 10px;
}

body.hcp-light-body .hcp-pb-picker-row {
  background: #ffffff;
  border-color: #e2e8f0;
}

.hcp-pb-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  height: 32px;
}

.hcp-pb-qty-stepper button,
.hcp-pb-qty-btn {
  width: 28px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hcp-pb-qty-stepper button:hover,
.hcp-pb-qty-btn:hover {
  background: var(--panel2);
  color: var(--acc2);
}

.hcp-pb-qty-stepper input,
.hcp-pb-qty-val {
  width: 36px;
  text-align: center;
  border: 0 !important;
  border-left: 1px solid var(--line) !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 0 2px !important;
  font-weight: 700;
  font-size: 12.5px;
  background: transparent !important;
}

.hcp-lineitem-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.hcp-lineitem-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

@media (max-width: 1280px) {
  .hcp-pb-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hcp-pb-shell {
    grid-template-columns: 1fr;
    margin: -12px -10px -40px;
  }
  .hcp-pb-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 10px;
  }
  .hcp-pb-nav-item {
    width: auto;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
  }
  .hcp-pb-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hcp-pb-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   $100,000 EXECUTIVE INBOX, GOOGLE MESSAGES WEB LAYOUT & WISPR FLOW
   ========================================================================== */

.uf-inbox-shell {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 16px;
  align-items: stretch;
  height: calc(100vh - 155px);
  min-height: 560px;
}

.uf-inbox-shell > .card:first-child {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.uf-thread-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.uf-conversation-pane {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: calc(100vh - 155px);
  min-height: 560px;
  max-height: calc(100vh - 155px);
  padding: 0 !important;
  overflow: hidden !important;
}

.gmsg-web-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  z-index: 5;
}

body.hcp-light-body .gmsg-web-header {
  background: #ffffff;
  border-bottom-color: #e2e8f0;
}

.gmsg-intake-drawer {
  flex-shrink: 0;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(22, 32, 51, 0.92);
  max-height: 220px;
  overflow-y: auto;
}

body.hcp-light-body .gmsg-intake-drawer {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

.uf-thread-card,
[data-select-inbox] {
  position: relative;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(22, 32, 51, 0.65) !important;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease !important;
}

body.hcp-light-body .uf-thread-card,
body.hcp-light-body [data-select-inbox] {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.uf-thread-card:hover,
[data-select-inbox]:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.38) !important;
  background: rgba(30, 41, 59, 0.85) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

body.hcp-light-body .uf-thread-card:hover,
body.hcp-light-body [data-select-inbox]:hover {
  background: #f8fafc !important;
  border-color: #93c5fd !important;
}

.uf-thread-card.active,
.uf-thread-card.selected,
[data-select-inbox].active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(124, 92, 255, 0.12)) !important;
  border-color: rgba(34, 211, 238, 0.65) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), inset 3px 0 0 #22d3ee;
}

body.hcp-light-body .uf-thread-card.active,
body.hcp-light-body .uf-thread-card.selected,
body.hcp-light-body [data-select-inbox].active {
  background: #eff6ff !important;
  border-color: #006aff !important;
  box-shadow: inset 3px 0 0 #006aff;
}

.uf-thread-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 12.5px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.28);
}

.uf-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

body.hcp-light-body .uf-email-pill {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #b45309;
}

/* GOOGLE MESSAGES WEB SCROLLABLE CONVERSATION HISTORY & BUBBLES */
.uf-chat-stream,
#v2-inbox-chat-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  padding: 16px 20px;
  scroll-behavior: smooth;
}

.gmsg-thread-starter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 10px 12px 16px;
  color: var(--mut);
  font-size: 11.5px;
}

.uf-chat-bubble {
  max-width: 74%;
  padding: 10px 14px 8px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.46;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  word-break: break-word;
}

.uf-chat-bubble.inbound {
  align-self: flex-start;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
  color: #f8fafc;
}

body.hcp-light-body .uf-chat-bubble.inbound {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

.uf-chat-bubble.outbound {
  align-self: flex-end;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-bottom-right-radius: 4px;
  color: #ffffff;
}

body.hcp-light-body .uf-chat-bubble.outbound {
  background: #0b57d0;
  border-color: #0b57d0;
  color: #ffffff;
}

.uf-bubble-time {
  display: block;
  text-align: right;
  font-size: 10.5px;
  margin-top: 4px;
  opacity: 0.72;
}

/* PINNED BOTTOM GOOGLE MESSAGES COMPOSE BAR */
.uf-composer-shell {
  flex-shrink: 0;
  margin-top: auto;
  padding: 10px 16px 12px;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.hcp-light-body .uf-composer-shell {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.04);
}

.uf-composer-shell:focus-within {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36), 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.uf-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.hcp-light-body .uf-composer-toolbar {
  border-bottom-color: #f1f5f9;
}

.uf-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tx-sec);
  font: 600 11.5px 'Inter', sans-serif;
  cursor: pointer;
  transition: 0.14s ease;
}

body.hcp-light-body .uf-quick-chip {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.uf-quick-chip:hover {
  border-color: var(--acc2);
  background: rgba(34, 211, 238, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

body.hcp-light-body .uf-quick-chip:hover {
  background: #eff6ff;
  border-color: #006aff;
  color: #006aff;
}

.uf-best-tech-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(124, 92, 255, 0.2));
  color: #67e8f9;
  font: 700 11.5px 'Inter', sans-serif;
  cursor: pointer;
  transition: 0.14s ease;
}

body.hcp-light-body .uf-best-tech-btn {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0369a1;
}

.uf-best-tech-btn:hover {
  border-color: #22d3ee;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.25);
}

.uf-composer-input-wrap {
  position: relative;
  margin-bottom: 10px;
}

.uf-composer-shell #v2-inbox-reply-box {
  width: 100%;
  padding: 11px 50px 11px 13px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: 13.5px/1.5 'Inter', system-ui, sans-serif;
  resize: vertical;
  min-height: 74px;
}

body.hcp-light-body .uf-composer-shell #v2-inbox-reply-box {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.uf-composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* LIVE 7-BAR WISPR FLOW VOICE EQUALIZER PILL & INLINE MIC */
.ultraflow-inline-mic {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.ultraflow-inline-mic.recording,
.uf-wispr-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(10, 14, 26, 0.96) !important;
  border: 1px solid rgba(239, 68, 68, 0.65) !important;
  color: #f8fafc !important;
  box-shadow: 0 8px 26px rgba(239, 68, 68, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px);
  font-size: 12px !important;
  font-weight: 700 !important;
  z-index: 25;
}

.uf-wispr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: ufDotBlink 1s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes ufDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.uf-wispr-timer {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 800;
  color: #fca5a5;
}

.uf-wispr-eq {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
  padding: 0 2px;
}

.uf-wispr-bar {
  width: 3px;
  height: 6px;
  min-height: 4px;
  max-height: 18px;
  border-radius: 99px;
  background: linear-gradient(180deg, #22d3ee, #818cf8);
  transition: height 0.06s ease;
}

.uf-wispr-done {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.uf-wispr-cancel {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .uf-inbox-shell {
    grid-template-columns: 1fr;
  }
  .uf-autosms-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   WORKFLOW AUTO-RESPONDERS STUDIO (iOS PILL SWITCHES & STUDIO CARDS)
   ========================================================================== */
.uf-ios-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 28px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(51, 65, 85, 0.92);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.uf-ios-switch.sm {
  width: 44px;
  height: 24px;
}

.uf-ios-switch.on {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.38);
}

.uf-ios-switch-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transform: translateX(0);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.uf-ios-switch.sm .uf-ios-switch-knob {
  width: 18px;
  height: 18px;
}

.uf-ios-switch.on .uf-ios-switch-knob {
  transform: translateX(24px);
}

.uf-ios-switch.sm.on .uf-ios-switch-knob {
  transform: translateX(20px);
}

.uf-autosms-card {
  transition: border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.uf-autosms-card.rule-muted {
  opacity: 0.78;
}

.uf-autosms-card.rule-muted:hover {
  opacity: 0.96;
}

/* ==========================================================================
   NATIVE GEMINI 2.5 EMAIL & VENDOR INVOICE SCANNER STUDIO + 6-SIGNAL MATCHER
   ========================================================================== */
.es-studio-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: hcpFadeIn 0.16s ease-out;
}

.es-cmd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(22, 32, 51, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

body.hcp-light-body .es-cmd-header {
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  border-color: #bae6fd;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.es-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.es-kpi-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

body.hcp-light-body .es-kpi-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.es-kpi-card span {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mut);
}

.es-kpi-card b {
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
}

.es-subtab-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.es-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mut);
  font: 700 12.5px 'Inter', sans-serif;
  cursor: pointer;
  transition: 0.14s ease;
}

.es-subtab-btn:hover {
  background: var(--panel2);
  color: var(--text);
}

.es-subtab-btn.active,
.es-subtab-btn.on {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(124, 92, 255, 0.24));
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.2);
}

body.hcp-light-body .es-subtab-btn.active,
body.hcp-light-body .es-subtab-btn.on {
  background: #006aff;
  border-color: #006aff;
  color: #ffffff;
}

.es-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.es-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--tx-sec);
  font: 700 11.5px 'Inter', sans-serif;
  cursor: pointer;
  transition: 0.14s ease;
}

.es-filter-pill.active,
.es-filter-pill.on {
  background: var(--acc2);
  border-color: var(--acc2);
  color: #04131d !important;
  font-weight: 800;
}

body.hcp-light-body .es-filter-pill.active,
body.hcp-light-body .es-filter-pill.on {
  background: #006aff;
  border-color: #006aff;
  color: #ffffff !important;
}

/* VENDOR INVOICE CARD & BRAND ACCENTS (DAIKIN, ACES, CARRIER, JOHNSON, MADDEN) */
.es-vendor-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid #38bdf8;
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.24);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.hcp-light-body .es-vendor-card {
  background: #ffffff;
  border-color: #e2e8f0;
  border-left: 4px solid #0284c7;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.es-vendor-card[data-vendor*="daikin" i],
.es-vendor-card[data-vendor*="goodman" i],
.es-vendor-card.vendor-daikin {
  border-left-color: #0ea5e9;
}

.es-vendor-card[data-vendor*="aces" i],
.es-vendor-card[data-vendor*="american" i],
.es-vendor-card.vendor-aces {
  border-left-color: #f43f5e;
}

.es-vendor-card[data-vendor*="carrier" i],
.es-vendor-card[data-vendor*="century" i],
.es-vendor-card.vendor-carrier {
  border-left-color: #3b82f6;
}

.es-vendor-card[data-vendor*="johnson" i],
.es-vendor-card[data-vendor*="armstrong" i],
.es-vendor-card.vendor-johnson {
  border-left-color: #f59e0b;
}

.es-vendor-card[data-vendor*="madden" i],
.es-vendor-card.vendor-madden {
  border-left-color: #10b981;
}

.es-vendor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* 6-SIGNAL MATCH BANNER & SIGNAL PILLS */
.es-match-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.34);
  margin-bottom: 12px;
}

body.hcp-light-body .es-match-banner {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.es-signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--mut);
}

.es-signal-pill.matched,
.es-signal-pill.hit,
.es-signal-pill.on {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

body.hcp-light-body .es-signal-pill.matched,
body.hcp-light-body .es-signal-pill.hit,
body.hcp-light-body .es-signal-pill.on {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

/* SIDE-BY-SIDE DISPATCH JOB SPEC vs. EXTRACTED PDF SERIALS */
.es-verify-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.es-verify-col {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
}

body.hcp-light-body .es-verify-col {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.es-equip-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(7, 11, 20, 0.48);
  border: 1px solid var(--line);
  margin-bottom: 6px;
}

body.hcp-light-body .es-equip-row {
  background: #ffffff;
  border-color: #cbd5e1;
}

.es-equip-row:last-child {
  margin-bottom: 0;
}

.es-equip-row input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}

.es-nearmiss-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-left: 4px solid #f59e0b;
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

body.hcp-light-body .es-nearmiss-alert {
  background: #fffbeb;
  border-color: #fcd34d;
  border-left: 4px solid #d97706;
  color: #92400e;
}

/* SA PERMITS, APS SUBCONTRACTOR CARDS & VISION DROPZONE */
.es-permit-card,
.es-aps-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.es-aps-photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.es-aps-photo-grid img,
.es-aps-thumb {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.es-aps-photo-grid img:hover,
.es-aps-thumb:hover {
  transform: scale(1.03);
  border-color: var(--acc2);
}

.es-vision-dropzone {
  border: 2px dashed rgba(56, 189, 248, 0.5);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(124, 92, 255, 0.08));
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

body.hcp-light-body .es-vision-dropzone {
  background: #f0f9ff;
  border-color: #38bdf8;
}

.es-vision-dropzone:hover,
.es-vision-dropzone.drag-over {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.15);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .es-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .es-verify-grid {
    grid-template-columns: 1fr;
  }
  .es-aps-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .es-equip-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   JARVIS BRAIN — NATIVE GEMINI 2.5 FUNCTION-CALLING OFFICE MANAGER UI
   ========================================================================== */
.jb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(124, 92, 255, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.38);
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

body.hcp-light-body .jb-header {
  background: linear-gradient(135deg, #f0f9ff, #ede9fe);
  border-color: #bae6fd;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.jb-memory-panel {
  background: var(--panel2);
  border: 1px solid rgba(167, 139, 250, 0.42);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: hcpFadeIn 0.15s ease-out;
}

body.hcp-light-body .jb-memory-panel {
  background: #f8fafc;
  border-color: #c4b5fd;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.jb-memory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(7, 11, 20, 0.45);
  border: 1px solid var(--line);
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text);
}

body.hcp-light-body .jb-memory-item {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

.jb-chip-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.jb-chip,
[data-jarvis-quick-ask] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.11);
  color: #e0f2fe;
  font: 700 11.5px 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.13s ease, border-color 0.13s ease, background 0.13s ease;
}

body.hcp-light-body .jb-chip,
body.hcp-light-body [data-jarvis-quick-ask] {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0369a1;
}

.jb-chip:hover,
[data-jarvis-quick-ask]:hover {
  transform: translateY(-1px);
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.2);
}

body.hcp-light-body .jb-chip:hover,
body.hcp-light-body [data-jarvis-quick-ask]:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

.jb-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 6px 4px;
  scroll-behavior: smooth;
}

.jb-chat-bubble {
  max-width: 92%;
  padding: 12px 15px;
  border-radius: 15px;
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  word-break: break-word;
}

.jb-chat-bubble.user {
  align-self: flex-end;
  max-width: 82%;
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  border-color: rgba(56, 189, 248, 0.45);
  border-bottom-right-radius: 4px;
  color: #ffffff;
}

.jb-chat-bubble.jarvis,
.jb-chat-bubble.assistant {
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(56, 189, 248, 0.26);
  border-bottom-left-radius: 4px;
}

body.hcp-light-body .jb-chat-bubble.jarvis,
body.hcp-light-body .jb-chat-bubble.assistant {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.jb-tool-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.jb-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
}

body.hcp-light-body .jb-tool-pill {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.jb-draft-card {
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-left: 3px solid #22d3ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.hcp-light-body .jb-draft-card {
  background: #f0f9ff;
  border-color: #7dd3fc;
  border-left: 3px solid #0284c7;
  color: #0f172a;
}

.jb-freshness-tag {
  display: block;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
  font-size: 11px;
  font-style: italic;
  color: var(--mut);
}

/* ==========================================================================
   $100K SUPERHUMAN / LINEAR MASTER-DETAIL EMAIL & INVOICE STUDIO (.es-split-*)
   ========================================================================== */
.es-split-shell {
  height: calc(100vh - 158px);
  min-height: 580px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(9, 13, 22, 0.88);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  animation: hcpFadeIn 0.16s ease-out;
}

body.hcp-light-body .es-split-shell {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.es-top-ribbon {
  flex-shrink: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.92);
}

body.hcp-light-body .es-top-ribbon {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

.es-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

body.hcp-light-body .es-mode-tabs {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.es-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mut);
  font: 700 12px 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.es-mode-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.es-mode-tab.active,
.es-mode-tab.on {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(124, 92, 255, 0.28));
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(14, 165, 233, 0.25);
}

body.hcp-light-body .es-mode-tab.active,
body.hcp-light-body .es-mode-tab.on {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #006aff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.es-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 11px;
  font-weight: 700;
  color: var(--tx-sec);
  white-space: nowrap;
}

body.hcp-light-body .es-stat-pill {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.es-split-body {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 370px 1fr;
  min-height: 0;
  overflow: hidden;
}

/* LEFT MASTER RAIL */
.es-master-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(11, 16, 27, 0.92);
  min-height: 0;
  overflow: hidden;
}

body.hcp-light-body .es-master-pane {
  background: #f8fafc;
  border-right-color: #e2e8f0;
}

.es-master-toolbar {
  flex-shrink: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.hcp-light-body .es-master-toolbar {
  border-bottom-color: #e2e8f0;
}

.es-master-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.es-master-row {
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(22, 32, 51, 0.55);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  transition: all 0.16s ease;
  text-align: left;
  width: 100%;
  color: var(--text);
}

body.hcp-light-body .es-master-row {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

.es-master-row:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.35);
}

body.hcp-light-body .es-master-row:hover {
  background: #f1f5f9;
  border-color: #93c5fd;
}

.es-master-row.active,
.es-master-row.selected {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.13)) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), inset 3px 0 0 #38bdf8;
}

body.hcp-light-body .es-master-row.active,
body.hcp-light-body .es-master-row.selected {
  background: #eff6ff !important;
  border-color: #006aff !important;
  box-shadow: inset 3px 0 0 #006aff;
}

.es-brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.es-brand-avatar.daikin {
  background: linear-gradient(135deg, #e11d48, #be123c);
}

.es-brand-avatar.aces {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.es-brand-avatar.carrier {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.es-brand-avatar.johnson {
  background: linear-gradient(135deg, #10b981, #047857);
}

.es-brand-avatar.madden {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

.es-brand-avatar.permit {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.es-brand-avatar.aps {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

/* RIGHT DETAIL INSPECTOR PANE (3-PART FIXED LAYOUT) */
.es-detail-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
}

body.hcp-light-body .es-detail-pane {
  background: #ffffff;
}

.es-detail-header {
  flex-shrink: 0;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

body.hcp-light-body .es-detail-header {
  background: #ffffff;
  border-bottom-color: #e2e8f0;
}

.es-detail-stream {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.es-scorecard-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(124, 92, 255, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.35);
}

body.hcp-light-body .es-scorecard-bar {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.es-equip-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
}

body.hcp-light-body .es-equip-card {
  background: #ffffff;
  border-color: #cbd5e1;
}

.es-equip-card:last-child {
  margin-bottom: 0;
}

.es-pipeline-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

body.hcp-light-body .es-pipeline-strip {
  background: #f0fdf4;
  border-color: #86efac;
}

.es-detail-footer {
  flex-shrink: 0;
  padding: 12px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(11, 16, 27, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.hcp-light-body .es-detail-footer {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

@media (max-width: 960px) {
  .es-split-shell {
    height: auto;
  }
  .es-split-body {
    grid-template-columns: 1fr;
  }
  .es-master-pane {
    max-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .es-pipeline-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   UNIFIED PICTURE-FIRST JOB FLOW & 3-WAY AI VERIFICATION STUDIO (.jf-*)
   ========================================================================== */
.jf-studio-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: hcpFadeIn 0.16s ease-out;
}

.jf-brief-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(16, 185, 129, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.42);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

body.hcp-light-body .jf-brief-banner {
  background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
  border-color: #7dd3fc;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.jf-phase-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

body.hcp-light-body .jf-phase-block {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.jf-phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.jf-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.jf-photo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

body.hcp-light-body .jf-photo-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.jf-photo-card.pending:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
  background: rgba(22, 32, 51, 0.88);
}

body.hcp-light-body .jf-photo-card.pending:hover {
  background: #f0f9ff;
  border-color: #0284c7;
}

.jf-photo-card.captured {
  border-style: solid;
  border-color: rgba(16, 185, 129, 0.65);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.11), rgba(15, 23, 42, 0.85));
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.12);
}

body.hcp-light-body .jf-photo-card.captured {
  background: #f0fdf4;
  border-color: #34d399;
}

.jf-photo-card.warning,
.jf-photo-card.mismatch {
  border-style: solid;
  border-color: rgba(245, 158, 11, 0.72);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.88));
}

body.hcp-light-body .jf-photo-card.warning,
body.hcp-light-body .jf-photo-card.mismatch {
  background: #fffbeb;
  border-color: #fbbf24;
}

.jf-box-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.jf-box-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--mut);
  transition: all 0.15s ease;
}

.jf-box-pill.lit {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #6ee7b7;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

body.hcp-light-body .jf-box-pill.lit {
  background: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
  box-shadow: none;
}

/* 3-WAY EQUIPMENT CROSS-VERIFICATION MATRIX */
.jf-3way-matrix {
  width: 100%;
  border-collapse: collapse;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.55);
  font-size: 12px;
  margin-top: 8px;
}

body.hcp-light-body .jf-3way-matrix {
  background: #ffffff;
  border-color: #e2e8f0;
}

.jf-3way-matrix th {
  text-align: left;
  padding: 9px 11px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
}

.jf-3way-matrix td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
}

.jf-3way-matrix tr:last-child td {
  border-bottom: 0;
}

.jf-3way-matrix .match {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
}

body.hcp-light-body .jf-3way-matrix .match {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.jf-3way-matrix .mismatch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fde68a;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
}

body.hcp-light-body .jf-3way-matrix .mismatch {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

/* TAP-TO-TOGGLE YES / NO / N/A DECISION PILL ROWS */
.jf-pill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  margin-bottom: 7px;
  font-size: 12.5px;
  color: var(--text);
}

body.hcp-light-body .jf-pill-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.jf-choice-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tx-sec);
  font: 700 11.5px 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.14s ease;
}

body.hcp-light-body .jf-choice-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.jf-choice-btn:hover {
  border-color: var(--acc2);
  color: var(--text);
}

.jf-choice-btn.active.yes,
.jf-choice-btn.on.yes {
  background: #10b981 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.jf-choice-btn.active.warn,
.jf-choice-btn.on.warn {
  background: #f59e0b !important;
  border-color: #d97706 !important;
  color: #0f172a !important;
  font-weight: 800;
}

.jf-choice-btn.active.na,
.jf-choice-btn.on.na {
  background: #475569 !important;
  border-color: #64748b !important;
  color: #ffffff !important;
}

.jf-punch-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  margin-top: 10px;
}

body.hcp-light-body .jf-punch-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

@media (max-width: 760px) {
  .jf-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   $100K VISUAL WORKFLOW TREE & NODE INSPECTOR STUDIO (.wf-*)
   ========================================================================== */
.wf-studio-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: hcpFadeIn 0.16s ease-out;
}

.wf-kpi-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(22, 32, 51, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

body.hcp-light-body .wf-kpi-ribbon {
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  border-color: #bae6fd;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.wf-studio-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 16px;
  align-items: start;
}

.wf-trees-canvas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.wf-tree-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

body.hcp-light-body .wf-tree-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.wf-tree-track,
.wf-flow-track {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  max-width: 100%;
  overflow-x: visible;
  padding: 8px 0 4px;
}

.wf-connector,
.wf-connector-vertical {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  color: rgba(56, 189, 248, 0.8);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  user-select: none;
  padding: 2px 0;
}

body.hcp-light-body .wf-connector,
body.hcp-light-body .wf-connector-vertical {
  color: #0284c7;
}

.wf-node-card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1.5px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.hcp-light-body .wf-node-card {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.wf-node-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.wf-node-card.status-live {
  border-left: 4px solid #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.1);
}

.wf-node-card.status-gated {
  border-left: 4px solid #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.12);
}

.wf-node-card.status-paused {
  border-left: 4px solid #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

.wf-node-card.active,
.wf-node-card.selected {
  border-color: #22d3ee !important;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(124, 92, 255, 0.15)) !important;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35), 0 10px 26px rgba(0, 0, 0, 0.35) !important;
}

body.hcp-light-body .wf-node-card.active,
body.hcp-light-body .wf-node-card.selected {
  background: #eff6ff !important;
  border-color: #006aff !important;
  box-shadow: 0 0 0 2px rgba(0, 106, 255, 0.22), 0 6px 16px rgba(0, 106, 255, 0.12) !important;
}

.wf-inspector-pane {
  position: sticky;
  top: 72px;
  background: var(--panel);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 15px;
  padding: 16px 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.hcp-light-body .wf-inspector-pane {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}

.wf-event-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 230px;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.58);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
}

body.hcp-light-body .wf-event-log {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.wf-ledger-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  font-size: 12.5px;
}

.wf-ledger-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
}

.wf-ledger-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text);
}

.wf-ledger-table tr:hover td {
  background: var(--panel2);
}

@media (max-width: 1100px) {
  .wf-studio-grid {
    grid-template-columns: 1fr;
  }
  .wf-inspector-pane {
    position: static;
  }
}

/* ==========================================================================
   PRINT STYLESHEET (CLEAN CUSTOMER-READY INVOICE, ESTIMATE & JOB SHEET)
   ========================================================================== */
@media print {
  .hcp-topnav,
  .hcp-sched-toolbar,
  .hcp-left-rail,
  .hcp-settings-sidebar,
  .ops-bar,
  button,
  .b,
  #v2-call-bar,
  #v2-toast,
  #v2-notif-drawer-root,
  #v2-drawer-root,
  .hcp-accordion,
  .hcp-jarvis-bar {
    display: none !important;
  }

  body,
  body.hcp-dark-body,
  body.hcp-light-body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 12pt;
  }

  .v2-content,
  .hcp-full-content,
  .hcp-layout,
  .hcp-main-col {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .card,
  .hcp-card,
  .hcp-top-bar {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    break-inside: avoid;
    margin-bottom: 12px !important;
  }

  #v2-floating-softphone-root {
    display: none !important;
  }
}

/* ==========================================================================
   PERSISTENT FLOATING SOFTPHONE DOCK & CALLER-ID COVERAGE BRIEF (#v2-floating-softphone-root)
   ========================================================================== */

.hcp-phone-live-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px #0f172a, 0 0 8px #10b981;
}

.hcp-icon-btn.fp-active {
  border-color: rgba(16, 185, 129, 0.65) !important;
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
}

.fp-softphone-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 374px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 82px);
  z-index: 1450;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 13, 22, 0.99) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.38);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(18px);
  animation: fpPopIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hcp-light-body .fp-softphone-dock {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  color: #0f172a;
}

@keyframes fpPopIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fpRingPulse {
  0%, 100% {
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.68), 0 0 0 2px rgba(16, 185, 129, 0.75), 0 0 26px rgba(16, 185, 129, 0.45);
  }
  50% {
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.68), 0 0 0 5px rgba(34, 211, 238, 0.85), 0 0 38px rgba(34, 211, 238, 0.65);
  }
}

.fp-softphone-dock.fp-state-ringing {
  border-color: #10b981;
  animation: fpPopIn 0.16s ease, fpRingPulse 1.5s infinite;
}

.fp-softphone-dock.fp-state-connected {
  border-color: rgba(16, 185, 129, 0.65);
}

.fp-dock-head {
  padding: 11px 14px;
  background: rgba(30, 41, 59, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.fp-dock-head:active {
  cursor: grabbing;
}

.fp-softphone-dock.fp-dragging {
  transition: none !important;
  animation: none !important;
  user-select: none;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.78), 0 0 0 2px #38bdf8 !important;
}

.fp-drag-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
  letter-spacing: -1px;
  cursor: grab;
  padding-right: 2px;
}

body.fp-popout-window-body {
  margin: 0 !important;
  padding: 0 !important;
  background: #090d16 !important;
  overflow-x: hidden;
}

body.fp-popout-window-body .hcp-topnav,
body.fp-popout-window-body #v2-content,
body.fp-popout-window-body #v2-drawer-root,
body.fp-popout-window-body #v2-notif-drawer-root,
body.fp-popout-window-body #v2-modal-root {
  display: none !important;
}

body.fp-popout-window-body .fp-softphone-dock {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

body.hcp-light-body .fp-dock-head {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
}

.fp-callerid-bar {
  padding: 7px 14px;
  background: rgba(16, 185, 129, 0.1);
  border-bottom: 1px solid rgba(16, 185, 129, 0.24);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.fp-dock-body {
  padding: 12px 14px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fp-coverage-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.hcp-light-body .fp-coverage-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.fp-coverage-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.35;
}

.fp-coverage-row .fp-cov-icon {
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 1px;
}

.fp-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.fp-key-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

body.hcp-light-body .fp-key-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.fp-key-btn:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.55);
}

.fp-key-btn:active {
  transform: scale(0.96);
}

.fp-key-btn small {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 1px;
}

.fp-minimized-pill {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1450;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(15, 23, 42, 0.98));
  border: 1.5px solid #10b981;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 18px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
}

/* ==========================================================================
   $100K TECH STACK, CLOUD SPEND & CIRCUIT-BREAKER COCKPIT (.ts-*)
   ========================================================================== */
.ts-cockpit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: hcpFadeIn 0.16s ease-out;
}

.ts-hero-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(22, 32, 51, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

body.hcp-light-body .ts-hero-banner {
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  border-color: #bae6fd;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.ts-guard-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-left: 4px solid #10b981;
  color: var(--text);
  font-size: 12.5px;
}

body.hcp-light-body .ts-guard-banner {
  background: #f0fdf4;
  border-color: #86efac;
  border-left: 4px solid #16a34a;
  color: #0f172a;
}

.ts-meter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.ts-meter-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

body.hcp-light-body .ts-meter-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.ts-meter-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.ts-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  position: relative;
}

body.hcp-light-body .ts-bar-track {
  background: #e2e8f0;
}

.ts-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #22d3ee);
  transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.ts-bar-fill.warn {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.ts-bar-fill.danger {
  background: linear-gradient(90deg, #ef4444, #e11d48);
}

.ts-readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ts-readiness-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

body.hcp-light-body .ts-readiness-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

.ts-group-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

body.hcp-light-body .ts-group-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.ts-clean-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 12.5px;
}

.ts-clean-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
}

.ts-clean-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--text);
}

.ts-clean-table tr:last-child td {
  border-bottom: 0;
}

.ts-clean-table tr:hover td {
  background: var(--panel2);
}

body.hcp-light-body .ts-clean-table {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.hcp-light-body .ts-clean-table th {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

body.hcp-light-body .ts-clean-table td {
  border-bottom-color: #f1f5f9;
  color: #0f172a;
}

body.hcp-light-body .ts-clean-table tr:hover td {
  background: #f8fafc;
}

@media (max-width: 1150px) {
  .ts-meter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ts-meter-grid,
  .ts-readiness-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   VISUAL TOP-DOWN IVR CALL FLOW BUILDER & LIVE TWIML INSPECTOR (.ivr-*)
   ========================================================================== */
.ivr-studio-grid {
  display: grid;
  grid-template-columns: 1fr 395px;
  gap: 16px;
  align-items: start;
}

.ivr-canvas-wrap {
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.08), transparent 65%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  overflow-x: auto;
}

body.hcp-light-body .ivr-canvas-wrap {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.ivr-flow-node {
  position: relative;
  min-width: 240px;
  max-width: 440px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  text-align: center;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

body.hcp-light-body .ivr-flow-node {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.ivr-flow-node:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.2);
}

body.hcp-light-body .ivr-flow-node:hover {
  border-color: #006aff;
  box-shadow: 0 6px 18px rgba(0, 106, 255, 0.14);
}

.ivr-flow-node.active,
.ivr-flow-node.selected,
.ivr-step-card.active,
.ivr-step-card.selected,
.ivr-ext-header.active {
  border-color: #22d3ee !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(124, 92, 255, 0.16)) !important;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.36), 0 10px 26px rgba(0, 0, 0, 0.32) !important;
}

body.hcp-light-body .ivr-flow-node.active,
body.hcp-light-body .ivr-flow-node.selected,
body.hcp-light-body .ivr-step-card.active,
body.hcp-light-body .ivr-step-card.selected,
body.hcp-light-body .ivr-ext-header.active {
  background: #eff6ff !important;
  border-color: #006aff !important;
  box-shadow: 0 0 0 2px rgba(0, 106, 255, 0.22), 0 6px 18px rgba(0, 106, 255, 0.12) !important;
}

.ivr-node-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--tx-sec);
  font-size: 12px;
  font-weight: 600;
}

body.hcp-light-body .ivr-node-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.ivr-vline {
  width: 2px;
  height: 20px;
  background: rgba(148, 163, 184, 0.45);
  margin: 0 auto;
  position: relative;
}

body.hcp-light-body .ivr-vline {
  background: #94a3b8;
}

.ivr-hline {
  height: 2px;
  background: rgba(148, 163, 184, 0.45);
  width: 100%;
}

body.hcp-light-body .ivr-hline {
  background: #94a3b8;
}

.ivr-branch-Split,
.ivr-branch-split {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  width: 100%;
  align-items: start;
  position: relative;
}

.ivr-branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ivr-ext-grid,
.ivr-extensions-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  width: 100%;
  align-items: start;
  margin-top: 4px;
}

.ivr-ext-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(11, 16, 27, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 13px;
  padding: 11px 10px 14px;
  width: 100%;
}

body.hcp-light-body .ivr-ext-col {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.ivr-ext-header {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--panel2);
  border: 1px solid var(--line);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

body.hcp-light-body .ivr-ext-header {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.ivr-step-card {
  position: relative;
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.13s ease, border-color 0.13s ease, box-shadow 0.13s ease;
}

body.hcp-light-body .ivr-step-card {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.ivr-step-card:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
}

body.hcp-light-body .ivr-step-card:hover {
  border-color: #006aff;
}

.ivr-add-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.92);
  color: #38bdf8;
  font: 700 11px 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.14s ease;
  z-index: 2;
}

body.hcp-light-body .ivr-add-step-pill {
  background: #ffffff;
  border-color: #93c5fd;
  color: #006aff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.ivr-add-step-pill:hover {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  transform: scale(1.04);
}

body.hcp-light-body .ivr-add-step-pill:hover {
  background: #006aff;
  border-color: #006aff;
  color: #ffffff;
}

.ivr-inspector-panel,
.ivr-inspector-card {
  position: sticky;
  top: 72px;
  background: var(--panel);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 15px;
  padding: 16px 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.hcp-light-body .ivr-inspector-panel,
body.hcp-light-body .ivr-inspector-card {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}

.ivr-twiml-box {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #050811;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #67e8f9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  overflow-x: auto;
  max-height: 250px;
  overflow-y: auto;
}

@media (max-width: 1180px) {
  .ivr-studio-grid {
    grid-template-columns: 1fr;
  }
  .ivr-inspector-panel,
  .ivr-inspector-card {
    position: static;
  }
  .ivr-branch-Split,
  .ivr-branch-split {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   EXECUTIVE ESTIMATE & JOB DETAIL POLISH (DARK + LIGHT MODE PARITY)
   ========================================================================== */

.hcp-exec-detail .hcp-top-bar {
  border-radius: 18px;
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.16);
}

.hcp-exec-detail .hcp-card {
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 20px rgba(0, 0, 0, 0.12);
}

.hcp-li-textarea {
  width: 100%;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.hcp-est-approved-banner {
  border-color: rgba(16, 185, 129, 0.48) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.13), var(--panel)) !important;
}

.hcp-sig-thumb {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  background: #ffffff !important;
  border-radius: 9px;
  padding: 5px 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.hcp-est-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.hcp-est-opt-card {
  padding: 16px 17px;
  border-radius: 14px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hcp-est-opt-card.recommended {
  border-color: rgba(56, 189, 248, 0.5);
}

.hcp-est-opt-card.selected {
  border-color: var(--ok);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}

body.hcp-light-body .hcp-exec-detail .hcp-top-bar,
body.hcp-light-body .hcp-exec-detail .hcp-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

body.hcp-light-body .hcp-est-approved-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 70%) !important;
  border-color: #6ee7b7 !important;
}

body.hcp-light-body .hcp-est-opt-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.hcp-light-body .hcp-est-opt-card.recommended {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 55%);
}

body.hcp-light-body .hcp-est-opt-card.selected {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

body.hcp-light-body .hcp-li-textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
