:root {
  --nx-primary: #ff6b00;
  --nx-secondary: #1d7f99;
  --nx-bg: #0f1720;
  --nx-panel: #151f2b;
  --nx-panel-soft: #1b2836;
  --nx-border: rgba(255, 255, 255, 0.08);
  --nx-text: #f4f7fb;
  --nx-muted: #9fb0c3;
  --nx-success: #2fbf71;
  --nx-warning: #f5b942;
  --nx-danger: #e75555;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--nx-bg);
  color: var(--nx-text);
  font-size: 0.92rem;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nx-auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 20% 10%, rgba(29, 127, 153, 0.22), transparent 32%), var(--nx-bg);
}

a {
  color: inherit;
}

.nx-link-strong {
  color: var(--nx-text);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.nx-link-strong:hover {
  color: #ffb07a;
}

.nx-company-name {
  color: #8dd7eb;
  font-weight: 500;
}

a.nx-company-name {
  text-decoration: none;
}

a.nx-company-name:hover {
  color: #b9efff;
}

.nx-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.nx-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--nx-border);
  background: #101a24;
}

.nx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--nx-border);
}

.nx-brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--nx-primary), var(--nx-secondary));
  font-weight: 800;
}

.nx-nav {
  padding: 12px;
}

.nx-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  color: var(--nx-muted);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.nx-nav-link:hover,
.nx-nav-link.is-active {
  background: rgba(255, 107, 0, 0.12);
  color: var(--nx-text);
}

.nx-nav-link.is-active {
  box-shadow: inset 3px 0 0 var(--nx-primary);
}

.nx-main {
  min-width: 0;
  padding: 24px;
}

.nx-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.nx-kicker {
  margin: 0 0 6px;
  color: var(--nx-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nx-page-title {
  margin: 0;
  font-size: clamp(1.35rem, 1.55vw, 1.8rem);
  font-weight: 800;
}

.nx-page-subtitle {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--nx-muted);
  font-size: 0.9rem;
}

.nx-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: var(--nx-panel);
  color: var(--nx-muted);
}

.nx-user-pill a {
  color: #ffb07a;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.nx-auth-shell {
  width: min(100%, 460px);
}

.nx-auth-panel {
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: var(--nx-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.nx-auth-brand {
  border-bottom: 1px solid var(--nx-border);
}

.nx-auth-copy,
.nx-auth-form,
.nx-auth-demo {
  padding: 18px;
}

.nx-auth-form {
  display: grid;
  gap: 14px;
  padding-top: 0;
}

.nx-auth-demo {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--nx-border);
  color: var(--nx-muted);
  font-size: 0.82rem;
}

.nx-auth-demo strong {
  color: var(--nx-text);
}

.nx-grid {
  display: grid;
  gap: 14px;
}

.nx-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.nx-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nx-panel {
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: var(--nx-panel);
}

.nx-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 0;
}

.nx-panel-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
}

.nx-panel-body {
  padding: 14px;
}

.nx-metric {
  min-height: 104px;
  padding: 14px;
}

.nx-metric-label {
  margin: 0;
  color: var(--nx-muted);
  font-size: 0.78rem;
}

.nx-metric-value {
  margin: 8px 0 4px;
  font-size: 1.45rem;
  font-weight: 850;
}

.nx-metric-hint {
  margin: 0;
  color: var(--nx-muted);
  font-size: 0.76rem;
}

.nx-dashboard-metrics {
  gap: 10px;
}

.nx-metric-inline {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
}

.nx-metric-inline-stack {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.nx-metric-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  margin: 0;
  color: var(--nx-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.nx-metric-subline {
  font-size: 0.72rem;
  line-height: 1.2;
}

.nx-metric-subline strong {
  font-size: 0.78rem;
}

.nx-metric-line strong {
  color: var(--nx-text);
  font-size: 0.92rem;
  font-weight: 850;
  white-space: nowrap;
}

.nx-metric-label-inline {
  color: #9edff0;
  white-space: nowrap;
}

.nx-metric-separator,
.nx-metric-hint-inline {
  color: var(--nx-muted);
}

.nx-metric-hint-primary {
  color: #ffb07a;
}

.nx-kpi-card {
  min-height: 210px;
}

.nx-kpi-value {
  font-size: 1.35rem;
  font-weight: 850;
}

.nx-kpi-meta {
  margin-top: 4px;
  color: var(--nx-muted);
  font-size: 0.74rem;
}

.nx-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-list-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: var(--nx-panel-soft);
}

.nx-market-compact-section {
  gap: 12px;
}

.nx-market-compact-section .nx-panel-header {
  padding: 10px 12px 0;
}

.nx-market-compact-section .nx-panel-body {
  padding: 10px 12px 12px;
}

.nx-market-compact-section .nx-list {
  gap: 6px;
}

.nx-market-compact-section .nx-list-item {
  gap: 4px;
  min-height: 0;
  padding: 7px 9px;
  border-radius: 7px;
}

.nx-market-compact-section .nx-row {
  gap: 8px;
}

.nx-market-compact-section .nx-link-strong,
.nx-market-compact-section .nx-list-item strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

.nx-market-compact-section .nx-muted {
  font-size: 0.78rem;
  line-height: 1.25;
}

.nx-market-compact-section .nx-badge {
  min-height: 19px;
  padding: 2px 7px;
  font-size: 0.65rem;
}

.nx-market-compact-section .btn-sm {
  min-height: 27px;
  padding: 3px 8px;
  font-size: 0.72rem;
}

.nx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nx-muted {
  color: var(--nx-muted);
}

.nx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(29, 127, 153, 0.16);
  color: #8dd7eb;
  font-size: 0.7rem;
  font-weight: 700;
}

.nx-badge-primary {
  background: rgba(255, 107, 0, 0.16);
  color: #ffb07a;
}

.nx-score {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--nx-primary);
  border-radius: 50%;
  color: var(--nx-text);
  font-weight: 850;
}

.nx-empty {
  padding: 22px;
  border: 1px dashed var(--nx-border);
  border-radius: 8px;
  color: var(--nx-muted);
  text-align: center;
}

.nx-action {
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: rgba(255, 107, 0, 0.12);
  color: var(--nx-text);
}

.nx-alert {
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: var(--nx-panel);
}

.nx-alert-success {
  border-color: rgba(47, 191, 113, 0.35);
  color: #9de7bd;
}

.nx-alert-error {
  border-color: rgba(231, 85, 85, 0.38);
  color: #ff9d9d;
}

.nx-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.nx-filters {
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  max-width: 760px;
}

.nx-filters-wide {
  max-width: 1120px;
}

.nx-refresh-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-sync-delete {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(231, 85, 85, 0.28);
  border-radius: 8px;
  background: rgba(231, 85, 85, 0.08);
  color: #ffb1b1;
  font-size: 0.78rem;
  white-space: nowrap;
}

.nx-sync-delete input {
  accent-color: #ff6b00;
}

.nx-input {
  border: 1px solid var(--nx-border);
  background: var(--nx-panel-soft);
  color: var(--nx-text);
  font-size: 0.86rem;
}

.nx-input:focus {
  border-color: var(--nx-secondary);
  background: var(--nx-panel-soft);
  color: var(--nx-text);
  box-shadow: 0 0 0 0.2rem rgba(29, 127, 153, 0.16);
}

.nx-input::placeholder {
  color: var(--nx-muted);
}

.nx-btn-primary,
.nx-btn-secondary,
.nx-btn-danger {
  min-height: 36px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.nx-btn-primary {
  border-color: var(--nx-primary);
  background: var(--nx-primary);
  color: #101014;
}

.nx-btn-primary:hover {
  border-color: #ff842e;
  background: #ff842e;
  color: #101014;
}

.nx-btn-secondary {
  border-color: var(--nx-border);
  background: var(--nx-panel);
  color: var(--nx-text);
}

.nx-btn-secondary:hover {
  border-color: rgba(29, 127, 153, 0.55);
  background: var(--nx-panel-soft);
  color: var(--nx-text);
}

.nx-btn-danger {
  border-color: rgba(231, 85, 85, 0.34);
  background: rgba(231, 85, 85, 0.1);
  color: #ffb1b1;
}

.nx-btn-danger:hover {
  border-color: rgba(231, 85, 85, 0.58);
  background: rgba(231, 85, 85, 0.18);
  color: #ffd1d1;
}

.nx-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.nx-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.nx-table-compact {
  min-width: 620px;
}

.nx-table th,
.nx-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--nx-border);
  vertical-align: middle;
}

.nx-table-tight th,
.nx-table-tight td {
  padding: 8px 12px;
}

.nx-table th {
  color: var(--nx-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nx-table-sub {
  display: block;
  margin-top: 3px;
  color: var(--nx-muted);
  font-size: 0.76rem;
}

.nx-table-tight .nx-table-sub {
  margin-top: 2px;
  font-size: 0.72rem;
  line-height: 1.25;
}

.nx-score-small {
  width: 36px;
  height: 36px;
  font-size: 0.82rem;
}

.nx-table-tight .nx-score-small {
  width: 32px;
  height: 32px;
  font-size: 0.78rem;
}

.nx-table-tight .btn-sm {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 0.76rem;
}

.nx-listino-table {
  min-width: 1080px;
  table-layout: fixed;
  font-size: 0.82rem;
  line-height: 1.25;
}

.nx-listino-table th:first-child,
.nx-listino-table td:first-child {
  width: 140px;
  min-width: 140px;
}

.nx-listino-table td:first-child .nx-company-name {
  white-space: nowrap;
}

.nx-listino-table th:nth-child(2),
.nx-listino-table td:nth-child(2) {
  width: 505px;
}

.nx-listino-table th:nth-child(3),
.nx-listino-table td:nth-child(3) {
  width: 115px;
}

.nx-listino-table th:nth-child(4),
.nx-listino-table td:nth-child(4) {
  width: 42px;
  text-align: right;
}

.nx-listino-table th:nth-child(5),
.nx-listino-table td:nth-child(5) {
  width: 112px;
}

.nx-listino-table th:nth-child(6),
.nx-listino-table td:nth-child(6) {
  width: 72px;
}

.nx-listino-table th:nth-child(7),
.nx-listino-table td:nth-child(7) {
  width: 76px;
}

.nx-listino-table th:nth-child(8),
.nx-listino-table td:nth-child(8) {
  width: 82px;
}

.nx-listino-table td:nth-child(3),
.nx-listino-table td:nth-child(5),
.nx-listino-table td:nth-child(6) {
  white-space: nowrap;
}

.nx-listino-table th,
.nx-listino-table td,
.nx-listino-table .nx-company-name {
  font-weight: 400 !important;
}

.nx-listino-table td:nth-child(3) {
  font-weight: 400 !important;
}

.nx-listino-table th {
  font-size: 0.66rem;
}

.nx-listino-table td {
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: 9px;
  padding-right: 9px;
}

.nx-listino-table .nx-table-sub {
  font-size: 0.68rem;
  line-height: 1.2;
}

.nx-listino-extra {
  display: -webkit-box;
  max-width: 760px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  white-space: normal;
}

.nx-section-title {
  margin: 0;
  color: var(--nx-text);
  font-size: 0.94rem;
}

.nx-proposal-builder {
  display: grid;
  gap: 12px;
}

.nx-proposal-detail-stack {
  display: grid;
  gap: 14px;
}

.nx-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.nx-line-description {
  min-height: 54px;
  resize: vertical;
}

.nx-quote-free-text td {
  color: var(--nx-text);
  background: rgba(29, 127, 153, 0.08);
}

.nx-proposal-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: rgba(24, 39, 52, 0.55);
}

.nx-proposal-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.nx-proposal-title {
  margin: 0;
}

.nx-radio-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(29, 127, 153, 0.28);
  border-radius: 8px;
  color: var(--nx-muted);
  font-size: 0.78rem;
}

.nx-radio-line input {
  accent-color: #ff6b00;
}

.nx-proposal-total,
.nx-proposal-detail-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 107, 0, 0.24);
  border-radius: 8px;
  background: rgba(255, 107, 0, 0.08);
  color: #ffb07a;
  font-size: 0.78rem;
}

.nx-proposal-total strong,
.nx-proposal-detail-total strong {
  color: var(--nx-text);
  white-space: nowrap;
}

.nx-quote-lines {
  min-width: 960px;
  font-size: 0.78rem;
}

.nx-quote-lines th,
.nx-quote-lines td {
  padding: 7px 8px;
}

.nx-quote-lines th:nth-child(1),
.nx-quote-lines td:nth-child(1) {
  width: 125px;
}

.nx-quote-lines th:nth-child(2),
.nx-quote-lines td:nth-child(2) {
  min-width: 360px;
}

.nx-quote-lines th:nth-child(3),
.nx-quote-lines td:nth-child(3) {
  width: 58px;
}

.nx-quote-lines th:nth-child(4),
.nx-quote-lines td:nth-child(4) {
  width: 78px;
}

.nx-quote-lines th:nth-child(5),
.nx-quote-lines td:nth-child(5),
.nx-quote-lines th:nth-child(6),
.nx-quote-lines td:nth-child(6) {
  width: 130px;
  white-space: nowrap;
}

.nx-quote-line-extra {
  max-width: 860px;
  white-space: pre-line;
}

.nx-quote-detail-lines {
  min-width: 920px;
  table-layout: fixed;
}

.nx-quote-detail-lines th,
.nx-quote-detail-lines td {
  padding-top: 5px;
  padding-bottom: 5px;
}

.nx-quote-detail-lines th:nth-child(1),
.nx-quote-detail-lines td:nth-child(1) {
  width: 115px;
}

.nx-quote-detail-lines th:nth-child(2),
.nx-quote-detail-lines td:nth-child(2) {
  width: auto;
}

.nx-quote-detail-lines th:nth-child(3),
.nx-quote-detail-lines td:nth-child(3) {
  width: 38px;
  text-align: right;
}

.nx-quote-detail-lines th:nth-child(4),
.nx-quote-detail-lines td:nth-child(4) {
  width: 62px;
}

.nx-quote-detail-lines th:nth-child(5),
.nx-quote-detail-lines td:nth-child(5) {
  width: 112px;
}

.nx-quote-detail-lines th:nth-child(6),
.nx-quote-detail-lines td:nth-child(6) {
  width: 112px;
}

.nx-quote-detail-lines .nx-table-sub {
  margin-top: 2px;
  line-height: 1.15;
}

.nx-quote-detail-lines .nx-quote-line-extra {
  max-width: none;
  white-space: normal;
}

.nx-quote-detail-lines .nx-quote-line-extra br {
  display: none;
}

.nx-quote-lines .nx-input {
  min-height: 31px;
  font-size: 0.76rem;
}

.nx-quote-editor-lines {
  min-width: 1080px;
  table-layout: fixed;
}

.nx-quote-editor-lines th:nth-child(1),
.nx-quote-editor-lines td:nth-child(1) {
  width: 150px;
}

.nx-quote-editor-lines th:nth-child(2),
.nx-quote-editor-lines td:nth-child(2) {
  width: 490px;
}

.nx-quote-editor-lines th:nth-child(3),
.nx-quote-editor-lines td:nth-child(3) {
  width: 70px;
}

.nx-quote-editor-lines th:nth-child(4),
.nx-quote-editor-lines td:nth-child(4) {
  width: 105px;
}

.nx-quote-editor-lines th:nth-child(5),
.nx-quote-editor-lines td:nth-child(5) {
  width: 82px;
}

.nx-quote-editor-lines th:nth-child(6),
.nx-quote-editor-lines td:nth-child(6) {
  width: 115px;
}

.nx-quote-editor-lines th:nth-child(7),
.nx-quote-editor-lines td:nth-child(7) {
  width: 44px;
  text-align: center;
}

.nx-quote-editor-lines th,
.nx-quote-editor-lines td {
  padding-left: 8px;
  padding-right: 8px;
}

.nx-quote-editor-lines select.nx-input {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-quote-editor-lines .nx-input {
  border-color: transparent;
  background: transparent;
  padding-left: 2px;
  padding-right: 2px;
  box-shadow: none;
}

.nx-quote-editor-lines .nx-input:focus {
  border-color: rgba(29, 127, 153, 0.58);
  background: rgba(24, 39, 52, 0.65);
  box-shadow: none;
}

.nx-quote-editor-lines .nx-line-description {
  height: 28px;
  min-height: 28px;
  line-height: 1.25;
  resize: none;
  overflow: hidden;
}

.nx-quote-editor-lines .nx-number-input,
.nx-quote-editor-lines [data-line-total] {
  display: block;
  width: 100%;
  text-align: right;
}

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

.nx-percent-field span {
  color: var(--nx-muted);
  font-size: 0.72rem;
}

.nx-line-remove {
  min-width: 28px;
  width: 28px;
  min-height: 28px;
  padding: 0;
}

.nx-campaign-table {
  font-size: 0.78rem;
  min-width: 980px;
}

.nx-campaign-table th,
.nx-campaign-table td {
  padding: 7px 12px;
}

.nx-campaign-table .nx-company-name,
.nx-campaign-table .nx-table-main {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
}

.nx-campaign-table .nx-campaign-name {
  display: block;
  color: var(--nx-secondary);
  font-size: 0.8rem;
  line-height: 1.25;
}

.nx-campaign-table .nx-campaign-target {
  display: block;
  margin-top: 3px;
  color: var(--nx-text);
  font-size: 0.78rem;
  line-height: 1.3;
}

.nx-campaign-table .nx-table-sub {
  font-size: 0.7rem;
  line-height: 1.25;
}

.nx-campaign-table .nx-badge {
  min-height: 20px;
  padding: 2px 7px;
  font-size: 0.66rem;
}

.nx-campaign-table .nx-campaign-value,
.nx-campaign-table .nx-campaign-type {
  color: var(--nx-text);
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
}

.nx-campaign-table .btn-sm {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 0.72rem;
}

.nx-campaign-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 190px;
}

.nx-campaign-actions form {
  margin: 0;
}

.nx-email-preview {
  padding: 14px;
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: rgba(15, 23, 32, 0.42);
}

.nx-email-preview-box {
  padding: 14px;
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.nx-email-preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--nx-text);
  font-size: 0.82rem;
}

.nx-email-preview-logo {
  display: block;
  width: auto;
  height: 32px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 6px;
}

.nx-email-preview-box p {
  color: var(--nx-text);
  font-size: 0.86rem;
  line-height: 1.55;
}

div.nx-campaign-table {
  display: grid;
  gap: 0;
  min-width: 100%;
  overflow-x: auto;
}

div.nx-campaign-table .nx-campaign-row {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 0.95fr 0.8fr 1.4fr;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--nx-border);
}

div.nx-campaign-table .nx-campaign-head {
  color: var(--nx-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

div.nx-campaign-table .nx-inline-actions {
  justify-content: flex-start;
}

.nx-panel-title.nx-company-name {
  font-weight: 500;
}

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

.nx-field {
  display: grid;
  gap: 7px;
}

.nx-field span {
  color: var(--nx-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.nx-field small {
  color: #ff9d9d;
}

.nx-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.nx-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nx-text);
}

.nx-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--nx-primary);
}

.nx-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nx-permission-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nx-kanban {
  display: grid;
  grid-auto-columns: minmax(260px, 320px);
  grid-auto-flow: column;
  gap: 12px;
  min-height: 380px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.nx-kanban-column {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: var(--nx-panel);
}

.nx-kanban-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--nx-border);
}

.nx-kanban-header span {
  display: block;
  color: var(--nx-muted);
  font-size: 0.76rem;
}

.nx-kanban-cards {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
}

.nx-kanban-empty {
  padding: 18px;
  border: 1px dashed var(--nx-border);
  border-radius: 8px;
  color: var(--nx-muted);
  text-align: center;
}

.nx-deal-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: var(--nx-panel-soft);
  color: var(--nx-text);
  text-decoration: none;
}

.nx-deal-card:hover {
  border-color: rgba(255, 107, 0, 0.38);
  color: var(--nx-text);
}

.nx-code {
  padding: 10px;
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: #0b1118;
  color: #ffb07a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.nx-company-score {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nx-detail-list {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.nx-detail-list dt {
  color: var(--nx-muted);
}

.nx-detail-list dd {
  margin: 0;
}

.nx-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.nx-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nx-secondary), var(--nx-primary));
}

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

@media (max-width: 860px) {
  .nx-shell {
    grid-template-columns: 1fr;
  }

  .nx-sidebar {
    position: static;
    height: auto;
  }

  .nx-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nx-main {
    padding: 18px;
  }

  .nx-topbar {
    flex-direction: column;
  }

  .nx-toolbar,
  .nx-filters,
  .nx-refresh-form {
    align-items: stretch;
    flex-direction: column;
  }

  .nx-sync-delete {
    justify-content: flex-start;
    white-space: normal;
  }

  .nx-proposal-head {
    grid-template-columns: 1fr;
  }

  .nx-proposal-total,
  .nx-proposal-detail-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .nx-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nx-grid-4,
  .nx-grid-3,
  .nx-grid-2,
  .nx-nav {
    grid-template-columns: 1fr;
  }
}

body,
body *:not(i):not(svg):not(path) {
  font-weight: 400 !important;
}
