/* Nexus 2027: graphite workspace with existing CRM workflows. */
html body.enterprise-home.crm27 {
  font-family: "Plus Jakarta Sans", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}
html body.enterprise-home.crm27 > header {
  background: #191b20 !important;
  border-bottom: 1px solid #34363e !important;
  color: #f6f3fb !important;
  box-shadow: none !important;
  gap: 10px;
}
html body.enterprise-home.crm27 .brand h1 {
  background: none !important;
  -webkit-text-fill-color: #f8f7fb !important;
  color: #f8f7fb !important;
  animation: none !important;
  font-size: 19px;
}
html body.enterprise-home.crm27 .brand .tag {color: #aeb0bb !important; font-size: 10px;}
html body.enterprise-home.crm27 .logo {background: #825cdd !important; box-shadow: none !important;}
html body.enterprise-home.crm27 > header .ghost,
html body.enterprise-home.crm27 > header .iconbtn {
  color: #edeaf3 !important;
  background: #25272d !important;
  border: 1px solid #3b3e46 !important;
  box-shadow: none !important;
}
html body.enterprise-home.crm27 > header .ghost:hover,
html body.enterprise-home.crm27 > header .iconbtn:hover {background: #333640 !important;}
html body.enterprise-home.crm27 > header .hsearch {
  background: #25272d !important;
  border: 1px solid #3b3e46 !important;
  border-radius: 10px;
  color: #d8d4df;
}
html body.enterprise-home.crm27 > header .hsearch input,
html body.enterprise-home.crm27 > header .hsearch input::placeholder {color: #b4b1bd !important;}
html body.enterprise-home.crm27 > header .hsearch input {color: #fff !important;}
html body.enterprise-home.crm27>.layout>.sidebar {
  background: #1d1f25 !important;
  border-right: 1px solid #34363e !important;
  color: #d9d6e1 !important;
  width: 224px !important;
  min-width: 224px !important;
}
html body.enterprise-home.crm27 .sidebar .sbtab {color: #c5c2cd !important; font-size: 13px !important;}
html body.enterprise-home.crm27 .sidebar .sbtab:hover {background: #2b2d35 !important; color: #fff !important;}
html body.enterprise-home.crm27 .sidebar .sbtab.active {
  background: #392e51 !important;
  color: #e8ddff !important;
  box-shadow: inset 3px 0 #a981f5 !important;
}
html body.enterprise-home.crm27 .sidebar .sbadd,
html body.enterprise-home.crm27 button.primary {background: #8b67e5 !important; color: #fff !important;}
html body.enterprise-home.crm27 .sidebar .sbadd {border-radius: 9px !important;}
html body.enterprise-home.crm27:has(.ent-dashboard) .main {background: #181a1f !important; padding: 22px 26px !important;}
html body.enterprise-home.crm27 .ent-dashboard {max-width: 1540px; color: #f2eff6 !important; gap: 17px !important;}
html body.enterprise-home.crm27 .ent-dashboard>.ent-greeting {
  padding: 4px 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f2eff6 !important;
  border-radius: 0 !important;
}
html body.enterprise-home.crm27 .ent-greeting h1 {font-size: 30px !important; font-weight: 740; letter-spacing: -.045em;}
html body.enterprise-home.crm27 .ent-greeting p {color: #a5a4b0 !important; font-size: 13px;}
html body.enterprise-home.crm27 .ent-greeting-actions button:not(.primary) {background: #25272d !important; border-color: #41434b !important; color: #f2eff6 !important;}
html body.enterprise-home.crm27 .ent-dashboard>.ent-pulse {grid-template-columns: repeat(6,minmax(0,1fr)) !important; gap: 10px !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-pulse button {
  background: #24262c !important;
  border: 1px solid #383a43 !important;
  border-radius: 11px !important;
  color: #f2eff6 !important;
  padding: 15px 13px !important;
  min-height: 105px;
}
html body.enterprise-home.crm27 .ent-dashboard .ent-pulse button:hover {border-color: #8b67e5 !important; background: #2b2d34 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-pulse span {font-size: 11px; color: #adaab8 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-pulse b {font-size: 26px; color: #faf8fc;}
html body.enterprise-home.crm27 .ent-dashboard .ent-pulse small {font-size: 11px; color: #a5a2af !important;}
html body.enterprise-home.crm27 .ent-dashboard>.ent-layout {order: -3 !important; grid-template-columns: minmax(0,1fr) 334px; gap: 14px !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-rail {display: grid !important; grid-template-columns: 1fr !important; gap: 14px !important; min-width: 0;}
html body.enterprise-home.crm27 .ent-dashboard .ent-queue-head,
html body.enterprise-home.crm27 .ent-dashboard .ent-work-row {grid-template-columns: 34px minmax(148px,1.5fr) 82px 72px 56px minmax(105px,.85fr) !important; gap: 8px !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-queue-head span:nth-child(4),
html body.enterprise-home.crm27 .ent-dashboard .ent-work-row .ent-reason {display: none !important;}
html body.enterprise-home.crm27 .ent-dashboard>.communication-productivity {order: -2 !important; margin: 0 !important;}
html body.enterprise-home.crm27 .ent-dashboard>.ent-health-section {order: -1 !important; margin: 0 !important;}
html body.enterprise-home.crm27 .ent-dashboard>.owner-control-strip {order: 1 !important; margin: 0 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-panel,
html body.enterprise-home.crm27 .ent-dashboard .owner-control-strip,
html body.enterprise-home.crm27 .ent-dashboard .communication-productivity article {
  background: #24262c !important;
  color: #f2eff6 !important;
  border: 1px solid #383a43 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
html body.enterprise-home.crm27 .ent-dashboard .ent-panel-head {border-bottom: 1px solid #3a3c45 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-panel-actions {width: auto !important; display: flex !important; gap: 7px !important; margin: 0 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-panel-actions select {width: 145px; min-width: 0 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-panel-actions .primary {min-width: 105px !important; white-space: nowrap;}
html body.enterprise-home.crm27 .ent-dashboard .ent-panel-head h2 {color: #f4f1f7 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-panel-head small,
html body.enterprise-home.crm27 .ent-dashboard .ent-customer small,
html body.enterprise-home.crm27 .ent-dashboard .ent-reason small,
html body.enterprise-home.crm27 .ent-dashboard .ent-alert small {color: #aaa8b4 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-queue-head {background: #292b32 !important; color: #c3bfcd !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-work-row {background: transparent !important; color: #f0edf6 !important; border-top: 1px solid #383a43 !important; cursor: pointer;}
html body.enterprise-home.crm27 .ent-dashboard .ent-work-row:hover,
html body.enterprise-home.crm27 .ent-dashboard .ent-work-row.crm27-selected {background: #302b3d !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-work-row.crm27-selected {box-shadow: inset 3px 0 #a981f5 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-work-row:focus-visible {outline: 2px solid #a981f5; outline-offset: -2px;}
html body.enterprise-home.crm27 .ent-dashboard .ent-work-row .ent-customer b {font-size: 14px; font-weight: 690;}
html body.enterprise-home.crm27 .ent-dashboard .ent-task,
html body.enterprise-home.crm27 .ent-dashboard .ent-reason,
html body.enterprise-home.crm27 .ent-dashboard .ent-due {color: #e4e0e9 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-due.overdue {color: #ff918b !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-next,
html body.enterprise-home.crm27 .ent-dashboard .ent-panel-head button,
html body.enterprise-home.crm27 .ent-dashboard .ent-panel-actions button:not(.primary),
html body.enterprise-home.crm27 .ent-dashboard .ent-panel-actions select {
  background: #30323a !important; color: #eae4fa !important; border-color: #4b4b58 !important;
}
html body.enterprise-home.crm27 .ent-dashboard .ent-health {background: #33343b !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-ai-row,
html body.enterprise-home.crm27 .ent-dashboard .ent-alert,
html body.enterprise-home.crm27 .ent-dashboard .ent-health-card {border-color: #3b3d45 !important; color: #f2eff6 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-ai-row p,
html body.enterprise-home.crm27 .ent-dashboard .ent-health-card small {color: #aaa8b4 !important;}
html body.enterprise-home.crm27 .ent-dashboard .ent-health-card b {color: #f2eff6;}
html body.enterprise-home.crm27 .ent-dashboard .ent-health-card {background: transparent !important;}
html body.enterprise-home.crm27 .ent-dashboard .owner-control-strip p {color: #aaa8b4 !important;}
html body.enterprise-home.crm27 .ent-dashboard .owner-control-actions button {background: #30323a !important; color: #eee9f8 !important; border-color: #4b4d56 !important;}
html body.enterprise-home.crm27 .ent-dashboard .communication-productivity .outcome-productivity span {color: #cbc7d2; margin-left: 8px;}
html body.enterprise-home.crm27 .ent-dashboard .communication-productivity .outcome-productivity b {color: #f2eff6;}

/* The selected customer sits beside the live work queue. */
.crm27-context {padding: 19px; min-width: 0;}
.crm27-person {display: flex; align-items: center; gap: 12px; min-width: 0;}
.crm27-avatar {width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: #6046a5; color: #fff; border-radius: 13px; font-weight: 800;}
.crm27-person h2 {font-size: 17px; line-height: 1.25; margin: 3px 0; overflow-wrap: anywhere;}
.crm27-person p {font-size: 12px; color: #aaa8b4; margin: 0; overflow-wrap: anywhere;}
.crm27-eyebrow,.crm27-context-block>span,.crm27-next>span,.crm27-context-grid small {display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #aaa8b4;}
.crm27-chips {display: flex; gap: 5px; flex-wrap: wrap; margin: 15px 0;}
.crm27-chips span {padding: 5px 8px; background: #36303f; border: 1px solid #51445d; border-radius: 99px; color: #dfd1f4; font-size: 10px; font-weight: 700;}
.crm27-context-grid {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0 0 15px;}
.crm27-context-grid>div {min-width: 0; padding: 11px; border: 1px solid #41434b; border-radius: 9px;}
.crm27-context-grid strong {display: block; margin: 5px 0 2px; font-size: 20px; overflow-wrap: anywhere;}
.crm27-context-grid span {font-size: 10px; color: #aaa8b4;}
.crm27-contact {display: grid; gap: 8px; padding-bottom: 15px; border-bottom: 1px solid #3b3d45;}
.crm27-contact div {display: flex; gap: 9px; min-width: 0; color: #dfdce5; font-size: 12px;}
.crm27-contact i {color: #b997f5;}
.crm27-contact span {overflow-wrap: anywhere;}
.crm27-context-block {padding: 13px 0; border-bottom: 1px solid #3b3d45;}
.crm27-context-block p {color: #e5e2ea; font-size: 12px; line-height: 1.5; margin: 5px 0 0;}
.crm27-next {display: grid; gap: 7px; padding: 12px; margin-top: 15px; background: #342d43; border: 1px solid #514461; border-radius: 9px;}
.crm27-next>span {color: #c5a7fc;}
.crm27-next strong {font-size: 13px; line-height: 1.45;}
.crm27-next small {color: #bcb2cc; font-size: 11px;}
.crm27-context-actions {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 14px;}
.crm27-context-actions button {min-width: 0; font-size: 11px; background: #33353d; border: 1px solid #4b4d56; color: #f0ebf8;}
.crm27-context-actions button:first-child {grid-column: 1/-1; background: #8b67e5; border-color: #8b67e5; color: #fff;}
.crm27-context-actions button:disabled {opacity: .45; cursor: not-allowed;}
.crm27-context-empty {padding: 20px; color: #aaa8b4; line-height: 1.5;}

@media (max-width: 1280px) {
  html body.enterprise-home.crm27 .ent-dashboard>.ent-pulse {grid-template-columns: repeat(3,minmax(0,1fr)) !important;}
  html body.enterprise-home.crm27 .ent-dashboard>.ent-layout {grid-template-columns: minmax(0,1fr) 310px;}
}
@media (max-width: 1080px) {
  html body.enterprise-home.crm27 .ent-dashboard>.ent-layout {grid-template-columns: 1fr;}
  html body.enterprise-home.crm27 .ent-dashboard .ent-rail {grid-template-columns: repeat(2,minmax(0,1fr)) !important; align-items: start;}
  html body.enterprise-home.crm27 .ent-rail>.crm27-context {grid-column: 1/-1;}
}
@media (max-width: 760px) {
  html body.enterprise-home.crm27:has(.ent-dashboard) .main {padding: 14px 10px !important;}
  html body.enterprise-home.crm27 .ent-dashboard>.ent-pulse {grid-template-columns: repeat(2,minmax(0,1fr)) !important;}
  html body.enterprise-home.crm27 .ent-dashboard .ent-pulse button {min-height: 91px; padding: 12px !important;}
  html body.enterprise-home.crm27 .ent-dashboard .ent-pulse b {font-size: 23px;}
  html body.enterprise-home.crm27 .ent-dashboard .ent-rail {display: block !important;}
  html body.enterprise-home.crm27 .ent-dashboard .ent-work-row {display: flex !important; flex-wrap: wrap; gap: 9px !important;}
  html body.enterprise-home.crm27 .ent-dashboard .ent-work-row .ent-reason {display: block !important;}
  html body.enterprise-home.crm27 .ent-dashboard .ent-panel-actions {width: 100% !important;}
  html body.enterprise-home.crm27 .ent-rail>.ent-panel {margin-top: 12px;}
  html body.enterprise-home.crm27>.layout>.sidebar {width: 100% !important; min-width: 0 !important;}
  html body.enterprise-home.crm27.mobile-navigation-open>.layout>.sidebar {background: #1d1f25 !important; top: var(--mobile-header-height,224px) !important;}
}

/* A restrained, consistent type system across the owner workspace. */
html body,
html body.enterprise-home.crm27,
html body .cmd27-dashboard,
html body .revenue-workspace {
  font-family: "Plus Jakarta Sans", "Segoe UI Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
html body :is(button, input, select, textarea, table) {
  font-family: "Plus Jakarta Sans", "Segoe UI Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html body :is(h1, h2, h3, .brand h1, .profile-identity h1, .suite-head h1, .cmd27-header h1, .rev-head h1, .cmd-top h1) {
  font-family: "Sora", "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.18;
}
html body :is(.cust .nm, .auto-inbox-copy b, .cmd27-queue b, .profile-identity h1) {
  letter-spacing: -.018em;
  font-weight: 750;
}
html body :is(.kpi b, .cmd27-scorecard b, .cmd27-currency strong, .suite-stat, .healthchip, .crm27-metric b) {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}
html body :is(.muted, .small, .auto-inbox-copy span) {line-height: 1.5;}
@media (max-width: 760px) {
  html body :is(.cmd27-header h1, .suite-head h1, .rev-head h1) {font-size: clamp(24px, 6vw, 30px) !important;}
  html body :is(.cust .nm, .auto-inbox-copy b) {font-size: 14px;}
}
