/* Enterprise CRM: the parts only this demonstration needs. Everything else comes from the shared nx kit.
   Logical properties only; every rule is scoped under .nx so the site CSS and Bootstrap stay untouched. */

/* ---- screens and small helpers ------------------------------------------------------------------------------------------- */
.nx .ec-page {
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-4);
  min-width: 0;
}
.nx .ec-gap {
  height: 0.6rem;
}
.nx .ec-stack {
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-3);
  min-width: 0;
}
.nx .ec-block {
  display: block;
}
.nx .ec-h3 {
  font-size: var(--nx-fs-md);
  font-weight: 600;
}
.nx .ec-strong {
  font-weight: 600;
}
.nx .ec-dotsep {
  color: var(--nx-ink-3);
}
.nx .ec-link {
  display: inline-flex;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nx-brand);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.nx .ec-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nx .ec-link.ec-strong {
  color: var(--nx-ink);
  font-weight: 600;
}
.nx .nx-rail > i.warn {
  background: var(--nx-warn);
}
.nx .nx-dialog-icon.pos {
  background: var(--nx-pos-soft);
  color: var(--nx-pos);
}
.nx .nx-chip:disabled {
  opacity: 0.5;
  cursor: default;
}
.nx .nx-chip:disabled:hover {
  background: var(--nx-surface);
}
.nx .nx-banner .nx-btn {
  flex: none;
}

/* ---- people, tags, status ---------------------------------------------------------------------------------------------- */
.nx .ec-owner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-sm);
}
.nx .ec-owner.is-none {
  padding: 0 0.5rem;
  border: 1px dashed var(--nx-line-strong);
  border-radius: 999px;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
  line-height: 1.6;
}
.nx .ec-owner.is-none .nx-i {
  width: 0.8rem;
  height: 0.8rem;
}
.nx .ec-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 0;
}
.nx .ec-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 0.45rem;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-sm);
  background: var(--nx-surface-2);
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-xs);
  line-height: 1.55;
  white-space: nowrap;
}
.nx .ec-tag.accent {
  border-color: color-mix(in srgb, var(--nx-accent) 40%, transparent);
  background: var(--nx-accent-soft);
  color: var(--nx-accent-ink);
}
.nx .ec-tag.pos {
  border-color: color-mix(in srgb, var(--nx-pos) 30%, transparent);
  background: var(--nx-pos-soft);
  color: var(--nx-pos);
}
.nx .ec-tag.info {
  border-color: var(--nx-brand-line);
  background: var(--nx-brand-soft);
  color: var(--nx-brand-ink);
}
.nx .ec-tag.warn {
  border-color: color-mix(in srgb, var(--nx-warn) 35%, transparent);
  background: var(--nx-warn-soft);
  color: var(--nx-warn);
}
.nx .ec-tag.neg {
  border-color: color-mix(in srgb, var(--nx-neg) 30%, transparent);
  background: var(--nx-neg-soft);
  color: var(--nx-neg);
}
.nx .ec-stage {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: var(--nx-fs-sm);
}
.nx .ec-pips {
  display: inline-flex;
  flex: none;
  gap: 2px;
}
.nx .ec-pips i {
  width: 0.45rem;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--nx-surface-3);
  box-shadow: inset 0 0 0 1px var(--nx-line-strong);
}
.nx .ec-pips i.on {
  background: var(--nx-brand);
  box-shadow: none;
}
.nx .ec-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.nx .ec-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--nx-surface-3);
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-xs);
  font-weight: 500;
  white-space: nowrap;
}
.nx .ec-flag .nx-i {
  width: 0.8rem;
  height: 0.8rem;
}
.nx .ec-flag.warn {
  background: var(--nx-warn-soft);
  color: var(--nx-warn);
}
.nx .ec-flag.neg {
  background: var(--nx-neg-soft);
  color: var(--nx-neg);
}
.nx .ec-flag.accent {
  background: var(--nx-accent-soft);
  color: var(--nx-accent-ink);
}

/* ---- app bar ----------------------------------------------------------------------------------------------------------------- */
.nx .ec-searchbtn {
  min-width: 13rem;
  justify-content: flex-start;
  color: var(--nx-ink-3);
  font-weight: 400;
}
.nx .ec-kbd {
  margin-inline-start: auto;
  padding: 0 0.35rem;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-sm);
  background: var(--nx-surface-2);
  color: var(--nx-ink-3);
  font-family: inherit;
  font-size: var(--nx-fs-xs);
  line-height: 1.4;
}
.nx .ec-bell {
  position: relative;
}
.nx .ec-bell-n {
  position: absolute;
  inset-block-start: -0.25rem;
  inset-inline-end: -0.3rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--nx-neg);
  color: var(--nx-ink-inv);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--nx-surface);
}
.nx .ec-role {
  gap: 0.5rem;
  padding-inline: 0.3rem 0.6rem;
}
.nx .ec-role-t {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: start;
}
.nx .ec-role-n {
  color: var(--nx-ink);
  font-size: var(--nx-fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.nx .ec-role-r {
  color: var(--nx-ink-3);
  font-size: 0.6875rem;
  font-weight: 400;
  white-space: nowrap;
}
.nx .ec-pop-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem 0.4rem;
  font-size: var(--nx-fs-sm);
  font-weight: 600;
}
.nx .ec-search {
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-2);
  padding: var(--nx-s-2);
}
.nx .ec-search-r {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 24rem;
  overflow: auto;
}
.nx .ec-search-g {
  padding: 0.5rem 0.5rem 0.2rem;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
  font-weight: 600;
}
.nx .ec-search-i,
.nx .ec-notif-i {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: 0;
  background: none;
  color: var(--nx-ink);
  text-align: start;
  cursor: pointer;
}
.nx .ec-search-i {
  padding: 0.45rem 0.5rem;
  border-radius: var(--nx-r-md);
}
.nx .ec-notif-i {
  padding: 0.6rem 0.75rem;
}
.nx .ec-search-i:hover,
.nx .ec-search-i:focus-visible,
.nx .ec-notif-i:hover,
.nx .ec-notif-i:focus-visible {
  background: var(--nx-surface-3);
}
.nx .ec-search-ic,
.nx .ec-notif-ic {
  display: grid;
  place-content: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: var(--nx-r-md);
  background: var(--nx-surface-3);
  color: var(--nx-ink-2);
}
.nx .ec-notif-ic.neg {
  background: var(--nx-neg-soft);
  color: var(--nx-neg);
}
.nx .ec-notif-ic.warn {
  background: var(--nx-warn-soft);
  color: var(--nx-warn);
}
.nx .ec-notif-ic.accent {
  background: var(--nx-accent-soft);
  color: var(--nx-accent-ink);
}
.nx .ec-search-hint {
  padding: 0.75rem 0.5rem;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-sm);
}
.nx .ec-notif {
  padding-block-end: 0.35rem;
}
.nx .ec-notif .nx-state {
  padding-block: 1.25rem;
}
.nx .ec-taglist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.25rem;
}
.nx .ec-tb-search {
  flex: 0 1 13rem;
}

/* ---- pipeline ----------------------------------------------------------------------------------------------------------------- */
.nx .ec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--nx-s-3);
}
.nx .ec-sv,
.nx .ec-tl-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-s-2);
  min-width: 0;
}
.nx .ec-sv .nx-chip-k,
.nx .ec-tl-bar .nx-chip-k {
  min-width: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--nx-surface-3);
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-xs);
  font-weight: 600;
  text-align: center;
}
.nx .ec-sv .nx-chip.is-active .nx-chip-k,
.nx .ec-tl-bar .nx-chip.is-active .nx-chip-k {
  background: var(--nx-brand);
  color: var(--nx-ink-inv);
}
.nx .ec-tl-bar .nx-chip {
  min-height: var(--nx-ctl-h-sm);
  padding-inline: 0.6rem;
  font-size: var(--nx-fs-xs);
}
.nx .ec-bar-r {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--nx-s-3);
  margin-inline-start: auto;
}
.nx .ec-closed-sw {
  font-size: var(--nx-fs-sm);
  white-space: nowrap;
}
.nx .ec-boardwrap {
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-3);
  min-width: 0;
}
.nx .ec-stagetabs {
  display: none;
}
.nx .ec-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 1fr);
  align-items: start;
  gap: var(--nx-s-3);
  overflow-x: auto;
  padding-block-end: var(--nx-s-2);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.nx .ec-board.with-closed {
  grid-auto-columns: minmax(15rem, 1fr);
}
.nx .ec-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  background: var(--nx-surface-2);
  scroll-snap-align: start;
  transition: border-color var(--nx-d-base) var(--nx-ease), background-color var(--nx-d-base) var(--nx-ease);
}
.nx .ec-col.is-skel {
  gap: var(--nx-s-2);
  padding: var(--nx-s-3);
}
.nx .ec-col-h {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.8rem 0.6rem;
  border-block-end: 1px solid var(--nx-line);
}
.nx .ec-col-t {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nx .ec-col-t h3 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--nx-fs-sm);
  font-weight: 600;
}
.nx .ec-col-n {
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--nx-surface-3);
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-xs);
  font-weight: 600;
}
.nx .ec-col-s {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--nx-fs-xs);
}
.nx .ec-col-list {
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-2);
  min-height: 6rem;
  max-height: 37rem;
  padding: var(--nx-s-2);
  overflow-y: auto;
  scrollbar-width: thin;
}
.nx .ec-col-empty {
  padding: 1.25rem 0.5rem;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-sm);
  text-align: center;
}
.nx .ec-pipeline.is-dragging .ec-col:not(.is-closed) {
  border-style: dashed;
  border-color: var(--nx-line-strong);
}
.nx .ec-pipeline.is-dragging .ec-col.is-over {
  border-style: solid;
  border-color: var(--nx-brand);
  background: var(--nx-brand-soft);
}
.nx .ec-col.is-closed .ec-col-h {
  background: var(--nx-surface);
  border-start-start-radius: inherit;
  border-start-end-radius: inherit;
}
.nx .ec-col.is-closed.won .ec-col-t h3 {
  color: var(--nx-pos);
}
.nx .ec-col.is-closed.lost .ec-col-t h3 {
  color: var(--nx-neg);
}
.nx .ec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem 0.6rem;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-md);
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-panel);
  cursor: pointer;
  transition: border-color var(--nx-d-fast) var(--nx-ease), box-shadow var(--nx-d-fast) var(--nx-ease), opacity var(--nx-d-fast) var(--nx-ease);
}
.nx .ec-card[draggable="true"] {
  cursor: grab;
}
.nx .ec-card:hover {
  border-color: var(--nx-line-strong);
  box-shadow: 0 2px 8px -4px rgb(20 33 63 / 0.18);
}
.nx .ec-card.is-dragging {
  opacity: 0.4;
}
.nx .ec-card.is-stuck {
  border-inline-start: 3px solid var(--nx-warn);
  padding-inline-start: calc(0.7rem - 2px);
}
.nx .ec-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  padding: 0;
  padding-inline-end: 1.6rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.nx .ec-card-co {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: var(--nx-fs-sm);
  font-weight: 600;
  line-height: 1.35;
}
.nx .ec-card-t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
  line-height: 1.45;
}
.nx .ec-card-more {
  position: absolute;
  inset-block-start: 0.35rem;
  inset-inline-end: 0.3rem;
}
.nx .ec-card-v,
.nx .ec-card-f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}
.nx .ec-card-f {
  flex-wrap: wrap;
}
.nx .ec-card-amt {
  font-size: var(--nx-fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.nx .ec-card-age {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
  white-space: nowrap;
}
.nx .ec-card-age.warn {
  color: var(--nx-warn);
  font-weight: 600;
}
.nx .ec-card-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.nx .ec-dock {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nx-s-3);
  width: min(34rem, calc(100vw - 2rem));
  margin-inline: auto;
}
.nx .ec-dock-z {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 1rem;
  border: 2px dashed currentColor;
  border-radius: var(--nx-r-lg);
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-pop);
  font-weight: 600;
  transition: background-color var(--nx-d-fast) var(--nx-ease);
}
.nx .ec-dock-z.won {
  color: var(--nx-pos);
}
.nx .ec-dock-z.lost {
  color: var(--nx-neg);
}
.nx .ec-dock-z.won.is-over {
  border-style: solid;
  background: var(--nx-pos-soft);
}
.nx .ec-dock-z.lost.is-over {
  border-style: solid;
  background: var(--nx-neg-soft);
}

/* ---- deal drawer --------------------------------------------------------------------------------------------------------- */
.nx .ec-dw {
  container: ecdw / inline-size;
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-4);
}
.nx .ec-dw-sum {
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-3);
}
.nx .ec-dw-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.nx .ec-dw-no {
  padding: 0 0.4rem;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-sm);
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
}
.nx .ec-dw-src {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
}
.nx .ec-dw-co {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.nx .ec-figs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
}
.nx .ec-fig {
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-inline-start: 1px solid var(--nx-line);
}
.nx .ec-fig:first-child {
  border-inline-start: 0;
}
.nx .ec-fig .k {
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
}
.nx .ec-fig .v {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nx .ec-dw-owner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.nx .ec-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  list-style: none;
}
.nx .ec-steps li {
  min-width: 0;
}
.nx .ec-steps button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  height: 100%;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: var(--nx-r-sm);
  background: var(--nx-surface-3);
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-xs);
  text-align: start;
  cursor: pointer;
  transition: background-color var(--nx-d-fast) var(--nx-ease);
}
.nx .ec-steps li:first-child button {
  border-start-start-radius: var(--nx-r-md);
  border-end-start-radius: var(--nx-r-md);
}
.nx .ec-steps li:last-child button {
  border-start-end-radius: var(--nx-r-md);
  border-end-end-radius: var(--nx-r-md);
}
.nx .ec-steps li.done button {
  background: var(--nx-brand-soft);
  color: var(--nx-brand-ink);
}
.nx .ec-steps li.cur button {
  background: var(--nx-brand);
  color: #fff;
  cursor: default;
}
.nx[data-theme="dark"] .ec-steps li.cur button {
  color: #06142f;
}
.nx .ec-steps button:hover:not(:disabled) {
  background: var(--nx-brand-line);
  color: var(--nx-brand-ink);
}
.nx .ec-step-n {
  font-weight: 700;
}
.nx .ec-step-t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
}
.nx .ec-closed {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid;
  border-radius: var(--nx-r-lg);
}
.nx .ec-closed.pos {
  border-color: color-mix(in srgb, var(--nx-pos) 30%, transparent);
  background: var(--nx-pos-soft);
  color: var(--nx-pos);
}
.nx .ec-closed.neg {
  border-color: color-mix(in srgb, var(--nx-neg) 30%, transparent);
  background: var(--nx-neg-soft);
  color: var(--nx-neg);
}
.nx .ec-closed .nx-grow {
  color: var(--nx-ink);
}
.nx .ec-dw-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--nx-s-2);
}
.nx .ec-dw-acts-a,
.nx .ec-dw-acts-b {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-s-2);
}
.nx .ec-ro {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--nx-r-md);
  background: var(--nx-surface-2);
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-sm);
}
.nx .ec-dw-tabs {
  position: sticky;
  inset-block-start: calc(-1 * var(--nx-s-5));
  z-index: 1;
  margin-inline: calc(-1 * var(--nx-s-5));
  padding-inline: var(--nx-s-5);
  background: var(--nx-surface);
}
.nx .ec-dw-panel {
  min-height: 12rem;
}
.nx .ec-dw-panel:focus {
  outline: none;
}
.nx .ec-sec {
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-2);
}
.nx .ec-sec + .ec-sec {
  padding-block-start: var(--nx-s-3);
  border-block-start: 1px solid var(--nx-line);
}
.nx .ec-sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-s-2);
}
.nx .ec-sec-h h3 {
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-sm);
  font-weight: 600;
}
.nx .ec-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.nx .ec-lines td,
.nx .ec-lines th {
  font-size: var(--nx-fs-sm);
}
@media (max-width: 520px) {
  .nx .ec-figs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nx .ec-fig:nth-child(3) {
    border-inline-start: 0;
  }
  .nx .ec-fig:nth-child(n + 3) {
    border-block-start: 1px solid var(--nx-line);
  }
  .nx .ec-steps {
    grid-template-columns: repeat(5, minmax(3.2rem, 1fr));
    overflow-x: auto;
  }
}

/* ---- activity timeline -------------------------------------------------------------------------------------------------------- */
.nx .ec-tlp {
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-3);
}
.nx .ec-tl {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-3);
  list-style: none;
}
.nx .ec-tl::before {
  content: "";
  position: absolute;
  inset-block: 0.75rem;
  inset-inline-start: 0.95rem;
  width: 1px;
  background: var(--nx-line);
}
.nx .ec-tl-day {
  position: relative;
  padding-inline-start: 2.65rem;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
  font-weight: 600;
}
.nx .ec-tl-day:not(:first-child) {
  margin-block-start: var(--nx-s-2);
}
.nx .ec-ev {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}
.nx .ec-ev-ic {
  position: relative;
  display: grid;
  place-content: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--nx-surface-3);
  color: var(--nx-ink-2);
  box-shadow: 0 0 0 3px var(--nx-surface);
}
.nx .ec-ev-ic .nx-i {
  width: 0.95rem;
  height: 0.95rem;
}
.nx .ec-ev.k-wa .ec-ev-ic {
  background: color-mix(in srgb, var(--nx-wa) 14%, var(--nx-surface));
  color: var(--nx-wa);
}
.nx .ec-ev.k-call .ec-ev-ic {
  background: var(--nx-brand-soft);
  color: var(--nx-brand);
}
.nx .ec-ev.k-email .ec-ev-ic {
  background: var(--nx-info-soft);
  color: var(--nx-brand-ink);
}
.nx .ec-ev.k-meeting .ec-ev-ic {
  background: var(--nx-accent-soft);
  color: var(--nx-accent-ink);
}
.nx .ec-ev.k-note .ec-ev-ic {
  background: var(--nx-warn-soft);
  color: var(--nx-warn);
}
.nx .ec-ev.k-system.pos .ec-ev-ic {
  background: var(--nx-pos-soft);
  color: var(--nx-pos);
}
.nx .ec-ev.k-system.neg .ec-ev-ic {
  background: var(--nx-neg-soft);
  color: var(--nx-neg);
}
.nx .ec-ev.k-system.accent .ec-ev-ic {
  background: var(--nx-accent-soft);
  color: var(--nx-accent-ink);
}
.nx .ec-ev.k-system.warn .ec-ev-ic {
  background: var(--nx-warn-soft);
  color: var(--nx-warn);
}
.nx .ec-ev-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding-block-start: 0.25rem;
}
.nx .ec-ev-h {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.nx .ec-ev-t {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--nx-fs-sm);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.nx .ec-ev.k-system .ec-ev-t {
  color: var(--nx-ink-2);
  font-weight: 400;
}
.nx .ec-ev-time {
  flex: none;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
}
.nx .ec-ev-m {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
}
.nx .ec-ev-sub {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-block-start: 0.15rem;
  color: var(--nx-ink);
  font-size: var(--nx-fs-sm);
  font-weight: 500;
}
.nx .ec-ev-sub .nx-i {
  flex: none;
  color: var(--nx-ink-3);
}
.nx .ec-ev-b {
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-sm);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.nx .ec-ev-b.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.nx .ec-more {
  font-size: var(--nx-fs-xs);
}
.nx .ec-note {
  padding: 0.55rem 0.7rem;
  border-radius: var(--nx-r-md);
  background: var(--nx-warn-soft);
  color: var(--nx-ink);
  font-size: var(--nx-fs-sm);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.nx .ec-atts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-block-start: 0.2rem;
}
.nx .ec-att {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-md);
  background: var(--nx-surface-2);
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-xs);
  cursor: pointer;
}
.nx .ec-att:hover {
  border-color: var(--nx-line-strong);
}
.nx .ec-bub {
  max-width: min(30rem, 86%);
  padding: 0.45rem 0.65rem 0.35rem;
  border-radius: 0.75rem;
  font-size: var(--nx-fs-sm);
}
.nx .ec-bub.in {
  border: 1px solid var(--nx-line);
  border-start-start-radius: 0.2rem;
  background: var(--nx-surface-2);
}
.nx .ec-bub.out {
  margin-inline-start: auto;
  border: 1px solid color-mix(in srgb, var(--nx-wa) 26%, transparent);
  border-start-end-radius: 0.2rem;
  background: color-mix(in srgb, var(--nx-wa) 11%, var(--nx-surface));
}
.nx .ec-bub-who {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-block-end: 0.1rem;
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-xs);
  font-weight: 600;
}
.nx .ec-bub-t {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.nx .ec-bub-f {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-block-start: 0.1rem;
  color: var(--nx-ink-3);
  font-size: 0.6875rem;
}
.nx .ec-ticks {
  display: inline-flex;
  color: var(--nx-ink-3);
}
.nx .ec-ticks.read {
  color: var(--nx-brand);
}
.nx .ec-ticks .nx-i {
  width: 0.95rem;
  height: 0.95rem;
}
.nx .ec-tl-more,
.nx .ec-tl-empty {
  padding-inline-start: 2.65rem;
}
.nx .ec-tl-empty .nx-state {
  padding-block: 1.5rem;
}

/* ---- tasks ---------------------------------------------------------------------------------------------------------------------- */
.nx .ec-tasks {
  display: flex;
  flex-direction: column;
  list-style: none;
}
.nx .ec-task {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.6rem;
  padding: 0.6rem 0.25rem;
  border-block-end: 1px solid var(--nx-line);
}
.nx .ec-task:last-child {
  border-block-end: 0;
}
.nx .ec-task-cb {
  margin-block-start: 0.2rem;
}
.nx .ec-task-ic {
  display: grid;
  place-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--nx-r-md);
  background: var(--nx-surface-3);
  color: var(--nx-ink-2);
}
.nx .ec-task-ic .nx-i {
  width: 0.85rem;
  height: 0.85rem;
}
.nx .ec-task-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.nx .ec-task-t {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--nx-fs-sm);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.nx .ec-task.done .ec-task-t > span:first-child {
  color: var(--nx-ink-3);
  font-weight: 400;
  text-decoration: line-through;
}
.nx .ec-task-m {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
}
.nx .ec-due {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nx .ec-due.late {
  color: var(--nx-neg);
  font-weight: 600;
}
.nx .ec-due.today {
  color: var(--nx-brand-ink);
  font-weight: 600;
}
.nx .ec-task-a {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nx .ec-remind.is-on {
  color: var(--nx-accent-ink);
}

/* ---- dialogs (the form layout itself is in the shared runtime: .nx-form) --------------------------------------------------------- */
.nx .nx-form > .nx-field:has(> .ec-dupes:empty) {
  display: none;
}
.nx .ec-contact-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--nx-r-md);
  background: var(--nx-surface-2);
  font-size: var(--nx-fs-sm);
}
.nx .ec-contact-line > .nx-muted:last-child {
  margin-inline-start: auto;
}
.nx .ec-dupes {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem;
  border: 1px solid color-mix(in srgb, var(--nx-warn) 35%, transparent);
  border-radius: var(--nx-r-md);
  background: var(--nx-warn-soft);
}
.nx .ec-dupes-h {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--nx-warn);
  font-size: var(--nx-fs-xs);
  font-weight: 600;
}
.nx .ec-dupe,
.nx .ec-accpick {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.nx .ec-dupe {
  padding: 0.4rem 0.5rem;
  border-radius: var(--nx-r-sm);
  background: var(--nx-surface);
}
.nx .ec-accpick {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--nx-brand-line);
  border-radius: var(--nx-r-md);
  background: var(--nx-brand-soft);
}

/* ---- panels with a bar of tabs or filters ------------------------------------------------------------------------------------ */
.nx .ec-panel-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--nx-s-2) var(--nx-s-3);
  padding: var(--nx-s-2) var(--nx-s-4) 0;
  border-block-end: 1px solid var(--nx-line);
}
.nx .ec-panel-bar .nx-tabs {
  border-block-end: 0;
}
.nx .ec-panel-bar > .nx-seg {
  margin-block-end: var(--nx-s-2);
}
.nx .ec-panel-bar .ec-bar-r {
  margin-block-end: var(--nx-s-2);
}
.nx .ec-panel-sub {
  padding: var(--nx-s-3) var(--nx-s-4) 0;
}
.nx .ec-rule {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  background: var(--nx-surface);
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-sm);
}
.nx .ec-rule > .nx-i {
  flex: none;
  margin-block-start: 0.2rem;
  color: var(--nx-brand);
}
.nx .ec-rule strong {
  color: var(--nx-ink);
}
.nx .ec-note-s {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem var(--nx-s-4);
  border-block-start: 1px solid var(--nx-line);
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
}

/* ---- leads ---------------------------------------------------------------------------------------------------------------------- */
.nx .ec-srcic {
  display: grid;
  place-content: center;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: var(--nx-r-md);
  background: var(--nx-surface-3);
  color: var(--nx-ink-2);
}
.nx .ec-srcic .nx-i {
  width: 0.9rem;
  height: 0.9rem;
}
.nx .nx-table tr.ec-row-new > :first-child {
  box-shadow: inset 3px 0 0 var(--nx-accent);
}
.nx[dir="rtl"] .nx-table tr.ec-row-new > :first-child {
  box-shadow: inset -3px 0 0 var(--nx-accent);
}
.nx .nx-table tr.is-selected.ec-row-new > :first-child {
  box-shadow: none;
}
.nx .ec-wait {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--nx-warn);
  font-size: var(--nx-fs-sm);
  white-space: nowrap;
}
.nx .ec-wait.late {
  color: var(--nx-neg);
  font-weight: 600;
}
.nx .ec-rowact {
  white-space: nowrap;
}

/* ---- customers ------------------------------------------------------------------------------------------------------------------- */
.nx .ec-last {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.nx .ec-last i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--nx-ink-3);
}
.nx .ec-last.active i {
  background: var(--nx-pos);
}
.nx .ec-last.cooling i {
  background: var(--nx-warn);
}
.nx .ec-prof {
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-3);
  padding: var(--nx-s-4);
}
.nx .ec-prof-top {
  display: flex;
  align-items: flex-start;
  gap: var(--nx-s-4);
  min-width: 0;
}
.nx .ec-prof-id {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.nx .ec-prof-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}
.nx .ec-prof-name .nx-page-title {
  font-size: var(--nx-fs-xl);
  font-weight: 600;
  line-height: 1.3;
}
.nx .ec-prof-name .nx-page-title:focus {
  outline: none;
}
.nx .ec-prof-sub {
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-sm);
}
.nx .ec-prof-own {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nx .ec-prof-act {
  flex: none;
}
.nx .ec-prof-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-block-start: var(--nx-s-3);
  border-block-start: 1px solid var(--nx-line);
}
.nx .ec-prof-grid {
  align-items: start;
}
.nx .ec-contacts,
.nx .ec-dealrows {
  display: flex;
  flex-direction: column;
  list-style: none;
}
.nx .ec-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding-block: 0.6rem;
  border-block-end: 1px solid var(--nx-line);
}
.nx .ec-contact:first-child {
  padding-block-start: 0;
}
.nx .ec-contact:last-child {
  padding-block-end: 0;
  border-block-end: 0;
}
.nx .ec-contact-n {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.nx .ec-contact-l {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-block: 0.3rem 0.15rem;
  font-size: var(--nx-fs-sm);
}
.nx .ec-contact-l > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.nx .ec-contact-l .nx-i {
  flex: none;
  color: var(--nx-ink-3);
}
.nx .ec-dealrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.35rem 0.75rem;
  width: 100%;
  padding: 0.65rem var(--nx-s-4);
  border: 0;
  border-block-end: 1px solid var(--nx-line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.nx .ec-dealrows > li:last-child .ec-dealrow {
  border-block-end: 0;
}
.nx .ec-dealrow:hover {
  background: var(--nx-surface-2);
}
.nx .ec-dealrow-m {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.nx .ec-dealrow-v {
  font-weight: 600;
  white-space: nowrap;
}
.nx .ec-prof-tl .nx-panel-b {
  max-height: 52rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ---- tasks ------------------------------------------------------------------------------------------------------------------------ */
.nx .ec-taskkpis .nx-kpi.is-on {
  border-color: var(--nx-brand-line);
  box-shadow: inset 0 0 0 1px var(--nx-brand-line);
}
.nx .ec-typechips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-s-2);
}
.nx .ec-typechips .nx-chip {
  min-height: var(--nx-ctl-h-sm);
  padding-inline: 0.6rem;
  font-size: var(--nx-fs-xs);
}
.nx .ec-tasks-wrap {
  padding: var(--nx-s-2) var(--nx-s-4) var(--nx-s-3);
}
.nx .ec-task-g {
  padding: 0.85rem 0.25rem 0.35rem;
  border-block-end: 1px solid var(--nx-line);
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-xs);
  font-weight: 600;
}
.nx .ec-task-g:first-child {
  padding-block-start: 0.35rem;
}
.nx .ec-dealpick {
  position: relative;
}
.nx .ec-pick {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  inset-block-start: calc(100% + 4px);
  display: flex;
  flex-direction: column;
  max-height: 16rem;
  overflow: auto;
  padding: 0.25rem;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-md);
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-pop);
  list-style: none;
}
.nx .ec-pick li[role="option"] {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--nx-r-sm);
  cursor: pointer;
}
.nx .ec-pick li[role="option"]:hover,
.nx .ec-pick li[aria-selected="true"] {
  background: var(--nx-brand-soft);
}
.nx .ec-pick-none {
  padding: 0.6rem;
  color: var(--nx-ink-3);
  font-size: var(--nx-fs-sm);
}
.nx .ec-picked {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--nx-brand-line);
  border-radius: var(--nx-r-md);
  background: var(--nx-brand-soft);
}
.nx .ec-picked > .nx-i {
  flex: none;
  color: var(--nx-brand);
}

/* ---- reports ------------------------------------------------------------------------------------------------------------------------ */
.nx .ec-chart {
  min-width: 0;
  min-height: 17rem;
}
.nx .ec-chart.short {
  min-height: 13rem;
}
.nx .ec-attn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  min-width: 5rem;
}
.nx .ec-attn b {
  font-weight: 600;
}
.nx .ec-attn b.pos {
  color: var(--nx-pos);
}
.nx .ec-attn b.neg {
  color: var(--nx-neg);
}
.nx .ec-attn b.warn {
  color: var(--nx-warn);
}
.nx .ec-attn .nx-rail {
  width: 5rem;
}
.nx .nx-delta.is-na {
  background: transparent;
  color: var(--nx-ink-3);
}

.nx .ec-reports .nx-table tbody td:first-child,
.nx .ec-reports .nx-table thead th:first-child {
  min-width: 9.5rem;
}

/* ---- team ---------------------------------------------------------------------------------------------------------------------------- */
.nx .ec-matrix thead th,
.nx .ec-matrix tbody th,
.nx .ec-matrix td {
  white-space: normal;
}
.nx .ec-matrix tbody th {
  font-weight: 500;
  min-width: 11rem;
}
.nx .ec-matrix .is-me {
  background: var(--nx-brand-soft);
}
.nx .ec-matrix thead .is-me {
  color: var(--nx-brand-ink);
}
.nx .ec-mx-r {
  vertical-align: bottom;
}
.nx .ec-mx-r > span:first-child {
  display: block;
}
.nx .ec-mx-you {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--nx-brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  vertical-align: middle;
}
.nx[data-theme="dark"] .ec-mx-you {
  color: #06142f;
}
.nx .ec-mx-y {
  color: var(--nx-pos);
}
.nx .ec-mx-y .nx-i {
  width: 1.05rem;
  height: 1.05rem;
}
.nx .ec-mx-o {
  display: inline-block;
  padding: 0 0.45rem;
  border-radius: var(--nx-r-sm);
  background: var(--nx-accent-soft);
  color: var(--nx-accent-ink);
  font-size: var(--nx-fs-xs);
  font-weight: 500;
  line-height: 1.6;
}
.nx .ec-mx-n {
  color: var(--nx-ink-3);
}
.nx .ec-members tr.is-self > * {
  background: var(--nx-brand-soft);
}
.nx .ec-members tr.is-invite > * {
  background: var(--nx-surface-2);
}
.nx .ec-av-pending {
  display: inline-grid;
  place-content: center;
  border: 1px dashed var(--nx-line-strong);
  background: var(--nx-surface);
  color: var(--nx-ink-3);
}
.nx .ec-members .ec-attn {
  align-items: flex-end;
}

/* ---- narrow screens ---------------------------------------------------------------------------------------------------------------- */
@container nxapp (max-width: 1100px) {
  .nx .ec-role-t {
    display: none;
  }
}
@container nxapp (max-width: 760px) {
  .nx .ec-searchbtn {
    min-width: 0;
  }
  .nx .ec-searchbtn-t,
  .nx .ec-searchbtn .ec-kbd {
    display: none;
  }
}
@container nxmain (max-width: 760px) {
  .nx .ec-stagetabs {
    display: flex;
  }
  .nx .ec-board {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }
  .nx .ec-board > .ec-col:not(.is-active):not(.is-closed) {
    display: none;
  }
  .nx .ec-col-list {
    max-height: none;
  }
  .nx .ec-bar-r {
    margin-inline-start: 0;
  }
}
@container nxmain (max-width: 720px) {
  .nx .ec-prof-top {
    flex-wrap: wrap;
  }
  .nx .ec-prof-act {
    width: 100%;
  }
  .nx .ec-dealrow {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nx .ec-dealrow-s {
    grid-row: 2;
  }
  .nx .ec-panel-bar {
    padding-inline: var(--nx-s-3);
  }
  .nx .ec-tasks-wrap,
  .nx .ec-panel-sub {
    padding-inline: var(--nx-s-3);
  }
}
@container nxmain (max-width: 560px) {
  /* Chip rows become one swipeable line instead of three or four wrapped rows; the padding keeps focus rings inside the scroller. */
  .nx :is(.ec-sv, .ec-typechips) {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-block: 3px;
    margin-block: -3px;
    scrollbar-width: none;
  }
  .nx .ec-sv {
    margin-inline: calc(-1 * var(--nx-s-3));
    padding-inline: var(--nx-s-3);
  }
  .nx :is(.ec-sv, .ec-typechips)::-webkit-scrollbar {
    display: none;
  }
  .nx :is(.ec-sv, .ec-typechips) > .nx-chip {
    flex: none;
  }
  .nx .ec-members .nx-cell-sub.nx-trunc {
    white-space: normal;
  }
  .nx .ec-page .nx-kpi-v {
    font-size: clamp(1.15rem, 6.6cqi, var(--nx-fs-2xl));
  }
}
/* The permission matrix scrolls inside its frame on a phone; the capability names stay pinned so every row keeps its label. */
@container nxmain (max-width: 560px) {
  .nx .ec-matrix tbody th {
    min-width: 7.5rem;
    z-index: 1;
  }
  .nx .ec-matrix :is(thead th:first-child, tbody th) {
    position: sticky;
    inset-inline-start: 0;
    background: var(--nx-surface);
    border-inline-end: 1px solid var(--nx-line);
  }
  .nx .ec-matrix thead th:first-child {
    z-index: 2;
    background: var(--nx-surface-2);
  }
}
/* Parts of a table cell that swap on a phone (the customer status joins the name cell when its own column is hidden). */
.nx .ec-xs-show {
  display: none;
}
.nx .ec-stdot::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-end: 0.3rem;
  border-radius: 50%;
  background: var(--nx-ink-3);
  vertical-align: 0.05em;
}
.nx .ec-stdot.customer::before {
  background: var(--nx-pos);
}
.nx .ec-stdot.prospect::before {
  background: var(--nx-brand);
}
@container nxmain (max-width: 520px) {
  .nx .ec-xs-show {
    display: inline;
  }
  .nx .ec-xs-hide {
    display: none;
  }
}
/* In a phone-width drawer the stage path keeps every step as a numbered button and spells out only the current one. */
@container ecdw (max-width: 480px) {
  .nx .ec-steps {
    display: flex;
  }
  .nx .ec-steps li {
    flex: 0 0 2.6rem;
  }
  .nx .ec-steps li.cur {
    flex: 1 1 auto;
  }
  .nx .ec-steps li:not(.cur) button {
    align-items: center;
    justify-content: center;
  }
  .nx .ec-steps li:not(.cur) .ec-step-t {
    display: none;
  }
  .nx .ec-steps li.cur button {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
  }
}
