.nx-fd-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nx-fd-bar .nx-fd-saved {
  color: var(--ny-text-muted);
  font-size: var(--ny-text-sm);
}

.nx-fd-bar .nx-fd-saved[data-nx-tone="yellow"] {
  color: var(--ny-warning-ink);
}

.nx-fd-bar .nx-fd-saved[data-nx-tone="red"] {
  color: var(--ny-danger-ink);
  font-weight: var(--ny-weight-semibold);
}

.nx-fd {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 372px;
  height: calc(100dvh - var(--ny-topbar-height) - 140px);
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius-lg);
  background: var(--ny-surface);
}

.nx-fd .nx-fd-phone {
  display: none;
}

.nx-fd .nx-fd-palette {
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 12px;
  border-right: 1px solid var(--ny-border);
}

.nx-fd .nx-fd-find {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ny-border-soft);
  background: var(--ny-surface);
  color: var(--ny-text-muted);
}

.nx-fd .nx-fd-find i.icon {
  margin: 0;
}

.nx-fd .nx-fd-find input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ny-text);
  font: inherit;
}

.nx-fd .nx-fd-group[hidden] {
  display: none;
}

.nx-fd .nx-fd-group h5 {
  margin: 12px 12px 6px;
  color: var(--ny-text-muted);
  font-size: var(--ny-text-xs);
  font-weight: var(--ny-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nx-fd .nx-fd-kind {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 16px);
  margin: 0 8px 4px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: var(--ny-radius);
  background: none;
  color: var(--ny-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nx-fd .nx-fd-kind[hidden] {
  display: none;
}

.nx-fd .nx-fd-kind:hover {
  border-color: var(--ny-border-soft);
  background: var(--ny-hover);
}

.nx-fd .nx-fd-kind .nx-flow-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nx-fd .nx-fd-kind b {
  display: block;
  font-size: 13px;
  font-weight: var(--ny-weight-medium);
  line-height: 1.2;
}

.nx-fd .nx-fd-kind small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ny-text-muted);
  font-size: 11.5px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nx-fd .nx-fd-stage {
  position: relative;
  min-width: 0;
}

.nx-fd .nx-fd-stage > .nx-flow {
  height: 100%;
  border: 0;
  border-radius: 0;
}

.nx-fd .nx-fd-tools {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.nx-fd .nx-fd-tools .ui.button {
  margin: 0;
  box-shadow: var(--ny-shadow-sm);
}

.nx-fd .nx-fd-tools .ui.button i.icon {
  margin: 0 6px 0 0;
}

.nx-fd .nx-fd-tools .ui.icon.button i.icon {
  margin: 0;
}

.nx-fd .nx-fd-mini {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  width: 150px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius);
  background: var(--ny-surface);
  box-shadow: var(--ny-shadow-sm);
}

.nx-fd .nx-fd-mini > span {
  position: absolute;
  top: var(--nx-y);
  left: var(--nx-x);
  width: var(--nx-w);
  height: var(--nx-h);
  border-radius: 2px;
  background: var(--ny-border);
}

.nx-fd .nx-fd-mini > span.nx-fd-mini-on {
  background: var(--ny-primary);
}

.nx-fd .nx-fd-mini > span.nx-fd-mini-view {
  border: 1.5px solid var(--ny-primary);
  border-radius: 3px;
  background: transparent;
}

@media (max-width: 1024px) {
  .nx-fd .nx-fd-mini {
    display: none;
  }
}

.nx-fd .nx-fd-issues {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border: 0;
  border-radius: var(--ny-radius);
  background: var(--ny-warning-soft);
  color: var(--ny-warning-ink);
  font: inherit;
  font-size: var(--ny-text-sm);
  text-align: left;
  box-shadow: var(--ny-shadow-sm);
  cursor: pointer;
}

.nx-fd .nx-fd-issues[hidden] {
  display: none;
}

.nx-fd .nx-fd-issues i.icon {
  margin: 0;
}

.nx-fd .nx-fd-issues span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-fd .nx-fd-issues b {
  color: var(--ny-primary);
}

.nx-fd .nx-fd-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--ny-border);
}

.nx-fd .nx-fd-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--ny-border);
}

.nx-fd .nx-fd-tabs button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  border: 0;
  border-radius: var(--ny-radius);
  background: transparent;
  color: var(--ny-text-muted);
  font: inherit;
  font-weight: var(--ny-weight-medium);
  cursor: pointer;
}

.nx-fd .nx-fd-tabs button[aria-pressed="true"] {
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
}

.nx-fd .nx-fd-tabs i.icon {
  margin: 0;
}

.nx-fd .nx-fd-pane {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.nx-fd .nx-fd-pane[hidden] {
  display: none;
}

.nx-fd .nx-fd-pane[data-nx-flow-pane="step"] {
  padding: 14px;
}

.nx-fd .nx-fd-hint {
  color: var(--ny-text-muted);
  font-size: var(--ny-text-sm);
}

.nx-fd .nx-fd-try .nx-wa-phone {
  margin: 14px auto 10px;
}

.nx-fd .nx-fd-try .nx-wa-screen {
  height: 540px;
}

.nx-fd .nx-fd-try .nx-wa-wall [data-nx-flow-go] {
  cursor: pointer;
}

.nx-fd .nx-fd-said {
  white-space: pre-wrap;
}

.nx-fd .nx-fd-try input.nx-wa-input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--nx-wa-ink);
  font: inherit;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
}

.nx-fd .nx-fd-try button.nx-wa-send {
  border: 0;
  cursor: pointer;
}

.nx-fd .nx-fd-try-note {
  margin: 0;
  padding: 0 14px 8px;
  color: var(--ny-text-muted);
  font-size: 12px;
  text-align: center;
}

.nx-fd .nx-fd-try-foot {
  display: flex;
  justify-content: center;
  padding: 0 14px 14px;
}

@media (max-width: 1279px) {
  .nx-fd {
    grid-template-columns: 190px minmax(0, 1fr) 340px;
  }
}

@media (max-width: 960px) {
  .nx-fd {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    border: 0;
    background: none;
  }

  .nx-fd .nx-fd-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid var(--ny-border);
    border-radius: var(--ny-radius-lg);
    background: var(--ny-surface);
    color: var(--ny-text-muted);
    font-size: var(--ny-text-sm);
  }

  .nx-fd .nx-fd-phone i.icon {
    margin: 0;
  }

  .nx-fd .nx-fd-palette,
  .nx-fd .nx-fd-stage,
  .nx-fd .nx-fd-tabs {
    display: none;
  }

  .nx-fd .nx-fd-side {
    border: 1px solid var(--ny-border);
    border-radius: var(--ny-radius-lg);
    background: var(--ny-surface);
  }

  .nx-fd .nx-fd-pane[data-nx-flow-pane="step"] {
    display: none;
  }

  .nx-fd .nx-fd-pane[data-nx-flow-pane="try"] {
    display: block;
  }
}

.nx-fd-facts {
  padding: 4px 0 12px;
}

.nx-fd-facts h5 {
  margin: 12px 12px 2px;
  color: var(--ny-text-muted);
  font-size: var(--ny-text-xs);
  font-weight: var(--ny-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nx-fd-facts p {
  margin: 0 12px;
  font-size: var(--ny-text-sm);
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .nx-fd .nx-fd-palette.nx-fd-facts {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--ny-border);
    border-radius: var(--ny-radius-lg);
    background: var(--ny-surface);
  }
}

.nx-runs-range {
  margin: 0;
}

.nx-runs-range .nx-range-presets {
  margin: 0 0 6px;
}

.nx-runs-story {
  max-height: 520px;
  overflow: auto;
  border-radius: 0 0 var(--ny-radius-lg) var(--ny-radius-lg);
}

.nx-runs-open {
  margin-left: auto;
  font-size: var(--ny-text-sm);
}

.nx-runs-steps {
  margin-top: 16px;
}

.nx-runs-range .nx-range-fields {
  width: 280px;
}

.nx-tpl-header-text {
  grid-column: 1 / -1;
}

.nx-tpl-kinds .nx-choice-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nx-tpl-body .nx-editor .cm-editor {
  min-height: 120px;
}

.nx-tpl-count {
  float: right;
  margin-top: -18px;
  color: var(--ny-text-muted);
  font-size: 11.5px;
}

.nx-tpl-buttons .nx-builder-step {
  grid-template-columns: 16px minmax(0, 1fr) auto;
}

.nx-tpl-buttons .nx-builder-step + .nx-builder-step {
  margin-top: 8px;
}

.nx-tpl-buttons .nx-builder-step + .nx-builder-step::before {
  display: none;
}

.nx-tpl-buttons .nx-builder-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px;
}

.nx-tpl-wall {
  min-height: 360px;
}

.nx-tpl-missing {
  margin: 0;
  padding: 8px 16px;
  background: var(--ny-warning-soft);
  color: var(--ny-warning-ink);
  border-bottom: 1px solid var(--ny-border-soft);
}

@media (max-width: 640px) {
  .nx-tpl-kinds .nx-choice-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nx-tpl-buttons .nx-builder-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nx-panel-body > .nx-facts,
.nx-cstep-box > .nx-facts {
    margin: 0;
    padding: 0;
}

.nx-msg-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: var(--ny-space-4);
    align-items: start;
}

.nx-msg-wall {
    padding: var(--ny-space-4) var(--ny-space-4) var(--ny-space-4) 24px;
    border-radius: var(--ny-radius);
}

.nx-msg-note {
    margin: var(--ny-space-2) 0;
    font-size: var(--ny-text-sm);
}

.nx-msg-head {
    margin: 0 0 var(--ny-space-2);
    font-size: var(--ny-text-sm);
    font-weight: var(--ny-weight-semibold);
}

.nx-msg-inner .nx-facts {
    padding: 0;
}

.nx-msg-inner .nx-timeline + .nx-msg-head {
    margin-top: var(--ny-space-4);
}

@media (max-width: 960px) {
    .nx-msg-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

.nx-msg-wall .nx-wa-time {
    display: none;
}

.nx-split-main > form.ui.form {
    display: flex;
    flex-direction: column;
    gap: var(--ny-space-4);
}

.nx-seq-plan {
    margin: 0;
    padding: var(--ny-space-3) var(--ny-space-4);
    list-style: none;
}

.nx-seq-plan > li + li {
    margin-top: var(--ny-space-4);
}

.nx-seq-plan-head {
    display: flex;
    justify-content: space-between;
    gap: var(--ny-space-2);
    margin-bottom: var(--ny-space-1);
    font-size: var(--ny-text-sm);
}

.nx-cstep {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
    position: relative;
    padding-bottom: 18px;
}

.nx-cstep-last {
    padding-bottom: 0;
}

.nx-cstep::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 0;
    width: 2px;
    background: var(--ny-border-soft);
}

.nx-cstep-last::before {
    display: none;
}

.nx-cstep-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--ny-radius-pill);
    border: 2px solid var(--ny-border);
    background: var(--ny-surface-sunken);
    color: var(--ny-text-muted);
    font-size: var(--ny-text-sm);
    font-weight: var(--ny-weight-semibold);
    z-index: 1;
}

.nx-cstep-mark > i.icon {
    margin: 0;
    width: auto;
    height: auto;
}

.nx-cstep-done .nx-cstep-mark {
    background: var(--ny-success);
    border-color: var(--ny-success);
    color: var(--ny-text-inverse);
}

.nx-cstep-now .nx-cstep-mark {
    background: var(--ny-primary);
    border-color: var(--ny-primary);
    color: var(--ny-text-inverse);
}

.nx-cstep h4 {
    display: flex;
    align-items: center;
    gap: var(--ny-space-2);
    margin: 5px 0 2px;
    font-size: var(--ny-text-base);
    font-weight: var(--ny-weight-semibold);
}

.nx-cstep-sub {
    margin: 0 0 10px;
    color: var(--ny-text-muted);
    font-size: var(--ny-text-sm);
}

.nx-cstep-box {
    padding: 14px;
    border: 1px solid var(--ny-border);
    border-radius: var(--ny-radius);
    background: var(--ny-surface);
}

.nx-cstep-done .nx-cstep-box {
    background: var(--ny-surface-sunken);
}

.nx-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ny-primary-soft);
  border-bottom: 1px solid var(--ny-border-soft);
}

.nx-bulk[hidden] {
  display: none;
}

.nx-bulk b {
  margin-right: 6px;
  color: var(--ny-primary);
}

.nx-bulk-end {
  margin-left: auto;
}

.nx-tick {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ny-primary);
}

.nx-ccards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.nx-ccard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius);
  background: var(--ny-surface);
}

.nx-ccard-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.nx-ccard-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-weight: 600;
}

.nx-ccard-who small {
  font-weight: 400;
  color: var(--ny-text-muted);
}

.nx-ccard-mid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 12px 10px 52px;
  font-size: var(--ny-text-sm);
  color: var(--ny-text-muted);
}

.nx-ccard-mid.nx-ccard-flat {
  padding-left: 12px;
}

.nx-ccard-mid i.icon {
  margin-right: 6px;
  color: var(--ny-text-disabled);
}

.nx-ccard-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 12px;
  border-top: 1px solid var(--ny-border-soft);
  font-size: var(--ny-text-sm);
  color: var(--ny-text-muted);
}

.nx-ccard-line {
  flex: 1;
  min-width: 0;
}

body.nx-admin .nx-page-actions .nx-search-wide > input {
  width: 240px;
  max-width: none;
}

.nx-avatar-xs {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--nx-tone);
  color: var(--ny-surface);
  font-size: 9px;
  font-weight: 600;
}

body.nx-admin details.nx-filter-pop > summary {
  display: inline-flex;
  width: auto;
}

body.nx-admin details.nx-filter-pop > summary::before {
  display: none;
}

body.nx-admin details.nx-filter-pop > summary + * {
  margin: 0;
}

.nx-chn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nx-chn i.icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  font-size: 11px;
}

.nx-chn .nx-chn-wa {
  background: var(--ny-success-soft);
  color: var(--ny-success-ink);
}

.nx-chn .nx-chn-em {
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
}

.nx-chn .nx-chn-off {
  background: var(--ny-surface-sunken);
  color: var(--ny-text-disabled);
}

.nx-small-link {
  margin-left: auto;
  font-size: var(--ny-text-sm);
}

body.nx-admin .nx-span-grid > .field.nx-w-rest {
  grid-column: span 12;
}

@media (min-width: 768px) {
  body.nx-admin .nx-span-grid > .field.nx-w-rest {
    grid-column: span 8;
  }
}

.nx-seg-count {
  padding: 16px 16px 6px;
}

.nx-seg-count b {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.nx-seg-count > span:not(.nx-seg-bar) {
  margin-left: 6px;
  color: var(--ny-text-muted);
}

.nx-seg-bar {
  display: block;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ny-surface-sunken);
}

.nx-seg-bar span {
  display: block;
  width: var(--nx-share);
  height: 100%;
  background: var(--ny-primary);
}

.nx-seg-reach,
.nx-seg-people,
.nx-seg-lines {
  margin: 0;
  padding: 4px 16px 12px;
  list-style: none;
}

.nx-seg-reach li,
.nx-seg-lines li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ny-border-soft);
  font-size: var(--ny-text-sm);
}

.nx-seg-reach li:last-child,
.nx-seg-lines li:last-child {
  border-bottom: 0;
}

.nx-seg-lines {
  padding: 0;
}

.nx-seg-lines i.icon {
  color: var(--ny-success);
}

.nx-seg-reach b,
.nx-seg-lines b {
  font-weight: 600;
}

.nx-seg-people {
  border-top: 1px solid var(--ny-border-soft);
}

.nx-seg-people li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.nx-seg-people a {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1200px) {
  .nx-ccards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nx-ccards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nx-stagebar {
  display: flex;
  gap: 2px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.nx-stagebar li {
  flex: 1;
  min-width: 0;
}

.nx-stagebar form {
  display: block;
}

.nx-stagebar button {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  overflow: hidden;
  border: 0;
  background: var(--ny-surface-sunken);
  color: var(--ny-text-muted);
  font: inherit;
  font-size: var(--ny-text-sm);
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.nx-stagebar li:first-child button {
  border-radius: var(--ny-radius) 0 0 var(--ny-radius);
}

.nx-stagebar li:last-child button {
  border-radius: 0 var(--ny-radius) var(--ny-radius) 0;
}

.nx-stagebar [data-nx-state="done"] button {
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
}

.nx-stagebar [data-nx-state="now"] button {
  background: var(--ny-primary);
  color: var(--ny-surface);
  font-weight: 600;
}

.nx-compose {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ny-border-soft);
}

.nx-compose input {
  flex: 1;
  min-width: 0;
}

.nx-tl {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-tl-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ny-border-soft);
}

.nx-tl-item:last-child {
  border-bottom: 0;
}

.nx-tl-empty {
  padding: 24px 16px;
  color: var(--ny-text-muted);
  text-align: center;
}

.nx-tl-more {
  padding: 12px;
  text-align: center;
}

.nx-tl-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ny-surface-sunken);
  color: var(--ny-text-muted);
}

.nx-tl-icon i.icon {
  margin: 0;
}

[data-nx-kind="conversation"] .nx-tl-icon {
  background: var(--ny-success-soft);
  color: var(--ny-success-ink);
}

[data-nx-kind="deal"] .nx-tl-icon {
  background: var(--ny-warning-soft);
  color: var(--ny-warning-ink);
}

[data-nx-kind="campaign"] .nx-tl-icon,
[data-nx-kind="created"] .nx-tl-icon {
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
}

[data-nx-kind="consent"] .nx-tl-icon {
  background: var(--ny-success-soft);
  color: var(--ny-success-ink);
}

.nx-tl-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nx-tl-title {
  font-weight: 500;
}

.nx-tl-text small {
  color: var(--ny-text-muted);
  font-size: var(--ny-text-sm);
}

.nx-tl-body {
  margin-top: 4px;
  white-space: pre-wrap;
}

.nx-tl-wall {
  display: block;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: var(--ny-radius);
}

.nx-tl-when {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: var(--ny-text-muted);
  font-size: var(--ny-text-xs);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .nx-stagebar {
    overflow-x: auto;
  }

  .nx-stagebar li {
    flex: none;
  }

  .nx-tl-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .nx-tl-when {
    grid-column: 2;
  }
}

.nx-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.nx-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius-lg);
  background: var(--ny-surface);
  box-shadow: var(--ny-shadow-sm);
  color: var(--ny-text);
}

a.nx-tile:hover {
  border-color: var(--ny-text-disabled);
  color: var(--ny-text);
}

.nx-tile[data-nx-quiet="true"] {
  background: var(--ny-surface-sunken);
  box-shadow: none;
}

.nx-tile p {
  flex: 1;
  margin: 0;
  color: var(--ny-text-muted);
  font-size: var(--ny-text-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.nx-tile-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nx-tile-top b {
  min-width: 0;
  font-size: var(--ny-text-lg);
  font-weight: 600;
}

.nx-tile-end {
  flex: none;
  margin-left: auto;
}

.nx-tile-soon {
  color: var(--ny-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.nx-tile-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  background: var(--ny-info-soft);
  color: var(--ny-info-ink);
}

.nx-tile-mark i.icon {
  margin: 0;
}

.nx-tile-mark[data-nx-channel="whatsapp"] {
  background: var(--ny-success-soft);
  color: var(--ny-success-ink);
}

.nx-tile-mark[data-nx-channel="email"] {
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
}

.nx-tile-mark[data-nx-channel="api"] {
  background: var(--ny-purple-soft);
  color: var(--ny-purple-ink);
}

.nx-tile-mark[data-nx-channel="instagram"] {
  background: var(--ny-danger-soft);
  color: var(--ny-danger-ink);
}

.nx-tile-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 12.5px;
}

.nx-tile-facts > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nx-tile-facts i.icon {
  margin: 0;
  color: var(--ny-text-disabled);
}

.nx-seg {
  display: inline-flex;
  width: max-content;
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius);
  overflow: hidden;
}

.nx-seg label,
body.nx-admin .ui.form .nx-seg label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 7px 12px;
  border-left: 1px solid var(--ny-border);
  color: var(--ny-text);
  font-size: var(--ny-text-sm);
  font-weight: 500;
  cursor: pointer;
}

.nx-seg label:first-child,
body.nx-admin .ui.form .nx-seg label:first-child {
  border-left: 0;
}

.nx-seg label:has(input:checked),
body.nx-admin .ui.form .nx-seg label:has(input:checked) {
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
  font-weight: 600;
}

.nx-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

fieldset[disabled] .nx-seg label {
  cursor: default;
}

.nx-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nx-step;
}

.nx-steps-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 8px;
  counter-increment: nx-step;
}

.nx-steps-list li::before {
  content: counter(nx-step);
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
  font-size: var(--ny-text-xs);
  font-weight: 700;
}

.nx-steps-list b {
  font-weight: 600;
}

.nx-steps-list span {
  color: var(--ny-text-muted);
  font-size: 12.5px;
}

#nx-flyout .actions:has(.nx-drawer-aside) {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.nx-admin #nx-flyout .actions .ui.button.nx-drawer-aside {
  margin-right: auto;
}

body.nx-admin .ui.dropdown .menu > .item .nx-option-face {
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0 8px 0 0;
  padding: 0;
  font-size: 9.5px;
}

body.nx-admin .ui.dropdown .menu > .item .nx-option-note {
  margin-left: 8px;
  color: var(--ny-text-muted);
  font-size: 12px;
}

.nx-cond-builder .nx-seg-match {
  display: inline-flex;
  margin-left: 8px;
  overflow: hidden;
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius);
}

.nx-cond-builder .nx-seg-match input {
  position: absolute;
  opacity: 0;
}

.nx-cond-builder .nx-seg-match label {
  margin: 0;
  padding: 0 12px;
  line-height: 30px;
  font-size: var(--ny-text-sm);
  font-weight: 400;
  cursor: pointer;
}

.nx-cond-builder .nx-seg-match label + input + label {
  border-left: 1px solid var(--ny-border);
}

.nx-cond-builder .nx-seg-match input:checked + label {
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
  font-weight: 600;
}

.nx-cond-builder .nx-builder:not(.nx-acts) .nx-builder-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
}

.nx-cond-builder .nx-builder:not(.nx-acts) .nx-builder-step::before {
  display: none;
}

body.nx-admin .nx-cond-builder form.ui.form .nx-panel-body > .field,
body.nx-admin .nx-cond-builder form.ui.form .nx-span-grid > .field {
  max-width: none;
}

.nx-cond-builder .nx-seg-join {
  line-height: 36px;
  font-size: var(--ny-text-sm);
  color: var(--ny-text-muted);
}

.nx-cond-builder .nx-builder:not(.nx-acts) .nx-builder-step + .nx-builder-step .nx-seg-join::before {
  content: "and";
}

.nx-cond-builder .ui.segment:has(#match-any:checked) .nx-builder-step + .nx-builder-step .nx-seg-join::before {
  content: "or";
}

.nx-cond-builder .nx-seg-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.nx-cond-builder .nx-seg-days {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nx-cond-builder .nx-seg-days input {
  min-width: 0;
}

@media (max-width: 640px) {
  .nx-cond-builder .nx-seg-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nx-cond-builder .nx-seg-match.nx-seg-first {
  flex-wrap: wrap;
  margin-left: 0;
}

.nx-rule label:empty {
  display: none;
}

#rule-side {
  display: contents;
}

.nx-field-choices .nx-builder-step {
  grid-template-columns: minmax(0, 1fr) auto;
}

.nx-tools {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.nx-toolnav {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nx-toolnav > span {
  margin: 10px 10px 4px;
  font-size: var(--ny-text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ny-text-muted);
}

.nx-toolnav > span:first-child {
  margin-top: 0;
}

.nx-toolnav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--ny-radius);
  color: var(--ny-text);
  font-weight: 500;
}

.nx-toolnav a:hover {
  background: var(--ny-hover);
}

.nx-toolnav a i.icon {
  margin: 0;
  color: var(--ny-text-muted);
}

.nx-toolnav a b {
  margin-left: auto;
  font-size: var(--ny-text-xs);
  font-weight: 500;
  color: var(--ny-text-muted);
}

.nx-toolnav a[aria-current="page"],
.nx-toolnav a[aria-current="page"] i.icon {
  color: var(--ny-primary);
}

.nx-toolnav a[aria-current="page"] {
  background: var(--ny-primary-soft);
}

.nx-tools-body {
  min-width: 0;
}

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

.nx-tool-cards.nx-three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nx-tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius-lg);
  background: var(--ny-surface);
  box-shadow: var(--ny-shadow-sm);
  color: var(--ny-text);
}

a.nx-tool-card:hover {
  border-color: var(--ny-primary);
  color: var(--ny-text);
}

.nx-tool-card[data-nx-quiet="true"] {
  background: var(--ny-surface-sunken);
  box-shadow: none;
}

.nx-tool-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-tool-top > :last-child:not(:first-child) {
  margin-left: auto;
}

.nx-tool-top a {
  color: var(--ny-text);
}

.nx-tool-switch {
  margin: 0;
}

.nx-tool-meta {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--ny-border-soft);
  font-size: var(--ny-text-xs);
  color: var(--ny-text-muted);
}

.nx-tool-meta i.icon {
  margin: 0 4px 0 0;
}

.nx-tool-sub {
  display: block;
  color: var(--ny-text-muted);
}

.nx-sentence {
  margin: 0;
  font-size: var(--ny-text-sm);
  line-height: 1.75;
  color: var(--ny-text-muted);
}

.nx-sentence em {
  padding: 2px 6px;
  border-radius: 6px;
  font-style: normal;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.nx-sentence em[data-nx-part="w"] {
  background: var(--ny-info-soft);
  color: var(--ny-info-ink);
}

.nx-sentence em[data-nx-part="i"] {
  background: var(--ny-warning-soft);
  color: var(--ny-warning-ink);
}

.nx-sentence em[data-nx-part="t"] {
  background: var(--ny-success-soft);
  color: var(--ny-success-ink);
}

.nx-sentence-large .nx-sentence {
  font-size: var(--ny-text-base);
  line-height: 1.9;
}

body.nx-admin .ui.segment.nx-panel.nx-blk {
  border-left-width: 3px;
}

body.nx-admin .ui.segment.nx-panel.nx-blk[data-nx-blk="w"] {
  border-left-color: var(--ny-info);
}

body.nx-admin .ui.segment.nx-panel.nx-blk[data-nx-blk="i"] {
  border-left-color: var(--ny-warning);
}

body.nx-admin .ui.segment.nx-panel.nx-blk[data-nx-blk="t"] {
  border-left-color: var(--ny-success);
}

.nx-panel-end {
  margin-left: auto;
  font-size: var(--ny-text-xs);
  color: var(--ny-text-muted);
}

.nx-rule-wait {
  display: none;
}

.nx-rule form:has(input[name="Input.Event"][value="conversation_waiting"]:checked) .nx-rule-wait {
  display: block;
}

.nx-rule-post,
.nx-rule-feed,
.nx-rule .nx-act-add [data-nx-builder-add^="social_"] {
  display: none;
}

.nx-rule form:has(input[name="Input.Event"][value="social_post_reached"]:checked) .nx-rule-post,
.nx-rule form:has(input[name="Input.Event"][value="feed_item"]:checked) .nx-rule-feed {
  display: block;
}

.nx-rule form:has(input[name="Input.Event"][value="social_post_reached"]:checked) .nx-act-add [data-nx-builder-add="social_repost"],
.nx-rule form:has(input[name="Input.Event"][value="feed_item"]:checked) .nx-act-add [data-nx-builder-add="social_draft"] {
  display: inline-flex;
}

.nx-rule form:has(input[name="Input.Event"][value="social_post_reached"]:checked, input[name="Input.Event"][value="feed_item"]:checked) :is(.nx-rule-channel, .nx-blk[data-nx-blk="i"], .nx-act-add [data-nx-builder-add]:not([data-nx-builder-add^="social_"])) {
  display: none;
}

.nx-act-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
}

.nx-act-icon i.icon {
  margin: 0;
}

.nx-acts .nx-builder-step + .nx-builder-step {
  margin-top: 8px;
}

.nx-acts .nx-builder-step + .nx-builder-step::before {
  display: none;
}

.nx-act-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.nx-act-row b {
  font-size: var(--ny-text-sm);
  font-weight: 600;
}

.nx-act-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.nx-acts:has(.nx-builder-steps input[value="start_flow"]) [data-nx-builder-add="start_flow"],
.nx-acts:has(.nx-builder-steps input[value="send_reply"]) [data-nx-builder-add="send_reply"] {
    display: none;
}

.nx-act-add {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

body.nx-admin .nx-act-add .ui.button {
  margin: 0;
  border-style: dashed;
  color: var(--ny-primary);
}

.nx-act-add i.icon {
  margin: 0 4px 0 0;
}

.nx-run-sum p {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}

.nx-run-sum p:last-child {
  margin: 0;
}

.nx-run-sum i.icon {
  margin: 0;
  color: var(--ny-text-muted);
}

.nx-run-sum p:first-child i.icon {
  color: var(--ny-success);
}

.nx-label-chip {
  display: inline-block;
  padding: 2px 10px;
  line-height: 16px;
  border-radius: var(--ny-radius-pill);
  background: color-mix(in srgb, var(--nx-tone, var(--ny-text-muted)) 14%, transparent);
  color: var(--nx-tone, var(--ny-text-muted));
  font-size: var(--ny-text-sm);
  font-weight: 500;
}

.nx-reply-key {
  font-family: var(--ny-font-mono);
  font-size: var(--ny-text-sm);
  font-weight: 600;
  color: var(--ny-primary);
}

.nx-reply-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: var(--ny-text-sm);
  line-height: 1.5;
  color: var(--ny-text-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.nx-reply-text var {
  padding: 0 3px;
  border-radius: 3px;
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
  font-style: normal;
}

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

body.nx-admin .ui.form .nx-drawer-pair > .field {
  margin: 0;
}

.nx-insert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: -6px 0 14px;
}

body.nx-admin .nx-insert-chips .ui.button {
  margin: 0;
  font-family: var(--ny-font-mono);
  font-weight: 400;
}

.nx-reply-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nx-reply-pair > div {
  overflow: hidden;
  border: 1px solid var(--ny-border-soft);
  border-radius: var(--ny-radius);
}

.nx-reply-pair h5 {
  margin: 0;
  padding: 6px 10px;
  background: var(--ny-surface-sunken);
  font-size: var(--ny-text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ny-text-muted);
}

.nx-reply-pair .nx-wa-wall {
  min-height: 110px;
  padding: 10px 10px 10px 18px;
}

.nx-reply-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.nx-web-wall {
  min-height: 110px;
  padding: 10px;
  background: var(--ny-surface);
}

.nx-web-bubble {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0 auto;
  padding: 8px 10px;
  border-radius: 12px 12px 2px 12px;
  background: var(--ny-primary-soft);
  color: var(--ny-text);
  font-size: var(--ny-text-sm);
}

.nx-locked {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ny-text-muted);
}

.nx-locked i.icon {
  margin: 0;
}

.nx-field-choices {
  display: none;
}

.nx-field-drawer:has(input[name="Input.Kind"][value="list"]:checked) .nx-field-choices {
  display: block;
}

.nx-bot-flow {
  display: none;
}

.nx-bot-drawer:has(input[name="bot-kind"][value="flow"]:checked) .nx-bot-flow {
  display: block;
}

.nx-bot-drawer:has(input[name="bot-kind"][value="flow"]:checked) .nx-bot-service {
  display: none;
}

@media (max-width: 960px) {
  .nx-tools {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .nx-toolnav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nx-toolnav > span,
  .nx-toolnav a b {
    display: none;
  }

  .nx-toolnav a {
    white-space: nowrap;
  }

  .nx-tool-cards,
  .nx-tool-cards.nx-three-up {
    grid-template-columns: minmax(0, 1fr);
  }

  .nx-act-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .nx-hide-phone {
    display: none;
  }
}

@media (max-width: 640px) {
  .nx-drawer-pair,
  .nx-reply-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.nx-admin .ui.form.nx-tool-switch .field,
body.nx-admin .ui.form.nx-tool-switch .ui.checkbox {
  margin: 0;
}

.nx-tool-switch {
  display: flex;
}

.nx-macro .nx-plain-fieldset > .nx-panel + .nx-panel {
  margin-top: 16px;
}

body.nx-admin .ui.form .nx-act-row .field,
body.nx-admin .ui.form .nx-act-row .ui.dropdown {
  margin: 0;
}

body.nx-admin .ui.form .nx-act-row.nx-builder-body {
  margin: 0;
}

.nx-label-chip {
  white-space: nowrap;
}

.nx-use {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.nx-use-rows {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.nx-use-rows .nx-copy-row {
    width: 100%;
    margin: 0;
}

.nx-use-rows code.nx-copy-value {
    overflow: hidden;
    min-width: 0;
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nx-use-qr {
    width: 132px;
    padding: 6px;
    border: 1px solid var(--ny-border);
    border-radius: var(--ny-radius);
    background: #fff;
}

.nx-use-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 720px) {
    .nx-use {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }
}

body.nx-admin .nx-days a.ui.button {
    background: var(--ny-surface);
    color: var(--ny-text-muted);
}

body.nx-admin .nx-days a.ui.button.active {
    color: var(--ny-text);
}

.nx-ktiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.nx-ktile {
  padding: 14px;
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius-lg);
  background: var(--ny-surface);
  min-width: 0;
}

.nx-ktile > small {
  color: var(--ny-text-muted);
  font-size: 12px;
}

.nx-ktile-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  min-height: 32px;
}

.nx-ktile-row > b {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.nx-ktile-row > b[data-nx-muted="true"] {
  font-size: 16px;
  font-weight: 600;
  color: var(--ny-text-muted);
}

.nx-ktile-spark {
  width: 110px;
  height: 32px;
  flex: none;
  overflow: visible;
}

.nx-ktile-spark polyline {
  fill: none;
  stroke: var(--ny-primary);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.nx-ktile-spark[data-nx-line="success"] polyline {
  stroke: var(--ny-success);
}

.nx-ktile-spark[data-nx-line="warning"] polyline {
  stroke: var(--ny-warning);
}

.nx-ktile-delta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ny-text-muted);
}

.nx-ktile-delta[data-nx-trend="up"] {
  color: var(--ny-success-ink);
  font-weight: 600;
}

.nx-ktile-delta[data-nx-trend="down"] {
  color: var(--ny-danger-ink);
  font-weight: 600;
}

.nx-ktile-delta a {
  font-weight: 600;
}

.nx-bars {
  position: relative;
  height: 200px;
  padding: 12px 16px 0 44px;
}

.nx-bars-grid {
  position: absolute;
  left: 44px;
  right: 16px;
  top: 12px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nx-bars-grid > div {
  position: relative;
  border-top: 1px dashed var(--ny-border);
}

.nx-bars-grid span {
  position: absolute;
  left: -34px;
  top: -8px;
  width: 28px;
  text-align: right;
  font-size: 11px;
  color: var(--ny-text-muted);
}

.nx-bars-cols {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.nx-bars-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column-reverse;
  gap: 1px;
}

.nx-bars-cols[data-nx-paired="true"] .nx-bars-col {
  flex-direction: row;
  align-items: flex-end;
  gap: 2px;
}

.nx-bars-col > i {
  display: block;
  height: var(--nx-share);
  border-radius: 3px 3px 0 0;
  background: var(--ny-primary);
}

.nx-bars-cols[data-nx-paired="true"] .nx-bars-col > i {
  flex: 1;
}

.nx-bars-col > i[data-nx-series="second"] {
  background: var(--ny-success);
}

.nx-bars-col:hover > i {
  opacity: .8;
}

.nx-bars-x {
  display: flex;
  gap: 4px;
  padding: 6px 16px 12px 44px;
  font-size: 11px;
  color: var(--ny-text-muted);
}

.nx-bars-x > span {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.nx-chart-key {
  display: flex;
  gap: 14px;
  margin-left: auto;
  font-size: 12px;
  color: var(--ny-text-muted);
}

.nx-chart-key > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nx-chart-key > span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--ny-primary);
}

.nx-chart-key > span[data-nx-series="second"]::before {
  background: var(--ny-success);
}

.nx-hbars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
}

.nx-hbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 4px 10px;
  font-size: var(--ny-text-sm);
}

.nx-hbar > b {
  font-weight: 500;
  text-align: right;
}

.nx-hbar-track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 6px;
  background: var(--ny-surface-sunken);
  overflow: hidden;
}

.nx-hbar-track > span {
  display: block;
  height: 100%;
  width: var(--nx-share);
  border-radius: 6px;
  background: var(--ny-primary);
}

.nx-hbar[data-nx-tone="danger"] .nx-hbar-track > span {
  background: var(--ny-danger);
}

.nx-hbar[data-nx-tone="muted"] .nx-hbar-track > span {
  background: var(--ny-text-disabled);
}

.nx-hbar > small {
  grid-column: 1 / -1;
  color: var(--ny-text-muted);
  font-size: 12px;
}

.nx-panel-note {
  padding: 10px 16px;
  border-top: 1px solid var(--ny-border-soft);
  background: var(--ny-surface-sunken);
  font-size: var(--ny-text-sm);
  color: var(--ny-text-muted);
}

.nx-quiet {
  padding: 20px 16px;
  text-align: center;
  color: var(--ny-text-muted);
  font-size: var(--ny-text-sm);
}

.nx-quiet > i.icon {
  display: block;
  margin: 0 auto 8px;
  font-size: 22px;
  color: var(--ny-text-disabled);
}

.nx-quiet > b {
  display: block;
  margin-bottom: 2px;
  color: var(--ny-text);
  font-weight: 600;
}

.nx-ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
}

.nx-ic > i.icon {
  margin: 0;
}

.nx-ic[data-nx-tone="message"] {
  background: var(--ny-success-soft);
  color: var(--ny-success-ink);
}

.nx-ic[data-nx-tone="success"] {
  background: var(--ny-success-soft);
  color: var(--ny-success-ink);
}

.nx-ic[data-nx-tone="danger"] {
  background: var(--ny-danger-soft);
  color: var(--ny-danger-ink);
}

.nx-ic[data-nx-tone="warning"] {
  background: var(--ny-warning-soft);
  color: var(--ny-warning-ink);
}

.nx-ic[data-nx-tone="muted"] {
  background: var(--ny-surface-sunken);
  color: var(--ny-text-muted);
}

@media (max-width: 960px) {
  .nx-ktiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nx-ktiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .nx-bars {
    height: 160px;
  }

  .nx-chart-key {
    margin-left: 0;
  }

  .nx-bars-x > span[data-nx-few="false"] {
    font-size: 0;
  }

  .nx-bars-x > span {
    overflow: visible;
  }
}

.nx-setup-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.nx-setup-chip[aria-expanded="true"] {
  outline: 2px solid var(--ny-focus);
}

.nx-setup-bar {
  width: 80px;
  height: 6px;
  border-radius: 6px;
  background: var(--ny-border);
  overflow: hidden;
}

.nx-setup-bar > span {
  display: block;
  height: 100%;
  width: var(--nx-share);
  background: var(--ny-primary);
}

.nx-tell-cols,
.nx-tell-head,
.nx-tell-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 56px;
  gap: 8px;
  align-items: center;
}

.nx-tell-cols {
  padding: 0 12px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ny-text-muted);
}

.nx-tell-cols > span:not(:first-child) {
  text-align: center;
}

.nx-tell-group {
  margin-bottom: 14px;
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius-lg);
}

.nx-tell-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ny-border-soft);
  border-radius: var(--ny-radius-lg) var(--ny-radius-lg) 0 0;
  background: var(--ny-surface-sunken);
  font-weight: 600;
}

.nx-tell-row {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ny-border-soft);
  font-size: var(--ny-text-sm);
}

.nx-tell-row:last-child {
  border-bottom: 0;
}

.nx-tell-row small {
  display: block;
  color: var(--ny-text-muted);
  font-size: 12px;
}

body.nx-admin .ui.form .nx-tell-head > .ui.checkbox,
body.nx-admin .ui.form .nx-tell-row > .ui.checkbox {
  justify-self: center;
  margin: 0;
}

.nx-tell-row small > i.icon {
  margin: 0 0 0 2px;
}

.nx-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px;
}

.nx-funnel-step {
  width: var(--nx-share);
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 6px;
  background: var(--nx-tone, var(--ny-primary));
  color: var(--ny-on-tone);
  font-weight: 600;
  box-sizing: border-box;
  white-space: nowrap;
}

.nx-funnel-step > small {
  font-weight: 500;
  opacity: .9;
}

.nx-funnel-drop {
  font-size: 11.5px;
  color: var(--ny-danger-ink);
}

.nx-campaign-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ny-border-soft);
  font-size: var(--ny-text-sm);
  color: var(--ny-text);
}

.nx-campaign-line:last-child {
  border-bottom: 0;
}

.nx-campaign-line > small {
  color: var(--ny-text-muted);
  font-size: 12px;
}

.nx-campaign-line > .nx-right {
  text-align: right;
}

.nx-sub {
  display: block;
  color: var(--ny-text-muted);
  font-size: 12px;
}

.nx-push {
  margin-left: auto;
}

@media (max-width: 640px) {
  .nx-funnel-step {
    width: 100%;
  }

  .nx-wide-only {
    display: none;
  }
}

.nx-funnel-drop[data-nx-none="true"] {
  color: var(--ny-text-muted);
}

.nx-keyrow {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: var(--ny-space-3);
  align-items: center;
  padding: var(--ny-space-3) var(--ny-space-4);
  border-bottom: 1px solid var(--ny-border-soft);
}

.nx-keyrow:last-child {
  border-bottom: 0;
}

.nx-keyrow > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nx-keyrow small {
  display: block;
  color: var(--ny-text-muted);
  font-size: var(--ny-text-sm);
}

.nx-keyrow-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--ny-radius);
  background: var(--ny-surface-sunken);
  color: var(--ny-text-muted);
}

.nx-keyrow-icon .icon {
  margin: 0;
}

.nx-keyrow-actions {
  display: flex;
  gap: var(--ny-space-2);
  align-items: center;
}

.nx-chipgroup-head {
  display: flex;
  gap: var(--ny-space-2);
  align-items: center;
  margin: var(--ny-space-3) 0 var(--ny-space-2);
  color: var(--ny-text-muted);
  font-size: var(--ny-text-sm);
  font-weight: var(--ny-weight-semibold);
}

.nx-chipgroup-head:first-child {
  margin-top: 0;
}

.nx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ny-space-2);
}

.nx-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--ny-space-3);
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius-pill);
  background: var(--ny-surface);
  color: var(--ny-text-muted);
  font-family: var(--ny-font-mono);
  font-size: var(--ny-text-sm);
}

.nx-chip[data-nx-on="true"],
label.nx-chip:has(input:checked) {
  border-color: var(--ny-primary);
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
}

label.nx-chip {
  cursor: pointer;
}

label.nx-chip input,
label.nx-chip-all input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

label.nx-chip:has(input:focus-visible) {
  outline: 2px solid var(--ny-primary);
  outline-offset: 2px;
}

label.nx-chip-all {
  color: var(--ny-primary);
  font-weight: var(--ny-weight-normal);
  cursor: pointer;
}

label.nx-chip-all:has(input:checked)::after {
  content: " ✓";
}


.nx-chip.nx-chip-word {
  font-family: var(--ny-font);
}

.nx-keyrow.nx-keyrow-off {
  color: var(--ny-text-muted);
}

.nx-devs-range.ui.buttons .ui.button[aria-current="page"] {
  background: var(--ny-primary-soft);
  color: var(--ny-primary);
}

a.nx-keyrow.nx-keyrow-link {
  color: var(--ny-text);
}

a.nx-keyrow.nx-keyrow-link:hover {
  background: var(--ny-hover);
}

.nx-cap-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 120px;
    padding: 14px 16px 6px;
    border-bottom: 1px solid var(--ny-border-soft);
}

.nx-cap-chart i {
    flex: 1;
    height: var(--nx-share);
    border-radius: 3px 3px 0 0;
    background: var(--ny-primary);
    opacity: 0.85;
}

.nx-cap-chart i[data-nx-quiet="true"] {
    height: 3px;
    background: var(--ny-border-soft);
}

.nx-cap-chart-x {
    display: flex;
    justify-content: space-between;
    padding: 4px 16px 12px;
    color: var(--ny-text-muted);
    font-size: 11px;
}

.nx-cmp-map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: var(--ny-space-2);
    align-items: center;
    margin-bottom: var(--ny-space-2);
}

.nx-cmp-map > code {
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .nx-cmp-map {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 960px) {
    body:has(.nx-inbox:not([data-nx-pane="list"])) .nx-page-header {
        display: none;
    }
}

.nx-post-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.nx-post-files button {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ny-border);
  border-radius: var(--ny-radius);
  background: var(--ny-surface-sunken);
  color: var(--ny-text-muted);
  cursor: pointer;
}

.nx-post-files button:hover,
.nx-post-files button:focus-visible {
  border-color: var(--ny-primary);
}

.nx-post-files img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
