/*
  NEXBLD premium theme overlay.
  This file intentionally avoids data/script hooks and only reshapes shared UI.
*/
:root {
  --nxp-bg: #eef1eb;
  --nxp-paper: #fbfaf6;
  --nxp-panel: rgba(255, 255, 255, .9);
  --nxp-ink: #101820;
  --nxp-muted: #68717e;
  --nxp-faint: #9aa3af;
  --nxp-line: rgba(16, 24, 32, .09);
  --nxp-navy: #101820;
  --nxp-navy-2: #132335;
  --nxp-gold: #a15c13;
  --nxp-gold-soft: #fff7e6;
  --nxp-green: #12805c;
  --nxp-shadow: 0 22px 70px rgba(16, 24, 32, .12), 0 2px 10px rgba(16, 24, 32, .06);
  --nxp-shadow-sm: 0 10px 28px rgba(16, 24, 32, .08);
}

html {
  background: var(--nxp-bg);
}

body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0)),
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(0,0,0,.022) 48px, rgba(0,0,0,.022) 49px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(0,0,0,.022) 48px, rgba(0,0,0,.022) 49px),
    #f5f4f1 !important;
  color: var(--nxp-ink) !important;
}

.main-content,
.page {
  background: transparent !important;
}

.sidebar {
  background: transparent !important;
  border-right: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.sidebar-logo,
.sidebar-logo-img {
  filter: saturate(.95) contrast(1.04);
}

.brand-wordmark-img {
  width: 58px !important;
  max-width: 58px !important;
  height: auto !important;
}


.mob-bar {
  background: rgba(251, 250, 246, .94) !important;
  border-bottom: 1px solid rgba(16, 24, 32, .08) !important;
  box-shadow: 0 10px 30px rgba(16, 24, 32, .06) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.mob-logo img,
.mob-company-brand img,
.mobile-brand img {
  height: 22px !important;
  max-width: 110px !important;
  object-fit: contain !important;
}

.page-eyebrow,
.eyebrow {
  color: var(--nxp-faint) !important;
  letter-spacing: .16em !important;
}

.page-title,
h1 {
  color: var(--nxp-ink) !important;
  letter-spacing: -.035em !important;
}

.card,
.panel,
.metric,
.hero-stat,
.enterprise-summary,
.project-card,
.team-panel,
.folder-card,
.signature-card,
.doc-card,
.contract-card,
.sheet-card,
.sov-card,
.summary-card,
.info-card,
.module-card {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(251,250,246,.82)) !important;
  border: 1px solid rgba(16, 24, 32, .08) !important;
  border-radius: 6px !important;
  box-shadow: var(--nxp-shadow-sm) !important;
}

.card:hover,
.panel:hover,
.folder-card:hover,
.project-card:hover,
.doc-card:hover,
.module-card:hover {
  box-shadow: var(--nxp-shadow) !important;
}

.card-head,
.panel-head,
.section-head,
.toolbar,
.card-header,
.modal-head {
  background: rgba(255, 255, 255, .78) !important;
  border-bottom: 1px solid rgba(16, 24, 32, .08) !important;
}

.card-head-title,
.card-title,
.panel-title,
.section-title,
.modal-title {
  color: var(--nxp-ink) !important;
  letter-spacing: .06em !important;
}

.hero,
.page-hero,
.project-dashboard-header,
.signature-hero,
.documents-hero,
.financial-hero,
.project-header,
.command-header {
  background:
    radial-gradient(circle at 82% 18%, rgba(6, 182, 212, .28), transparent 24%),
    radial-gradient(circle at 58% 70%, rgba(161, 92, 19, .22), transparent 30%),
    linear-gradient(135deg, var(--nxp-navy) 0%, var(--nxp-navy-2) 56%, #0b1118 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 5px !important;
  box-shadow: 0 22px 70px rgba(16, 24, 32, .18) !important;
}

.hero h1,
.page-hero h1,
.project-dashboard-header .proj-name,
.signature-hero h1,
.documents-hero h1,
.financial-hero h1,
.project-header h1,
.command-header h1 {
  color: #fff !important;
}

.hero p,
.page-hero p,
.signature-hero p,
.documents-hero p,
.financial-hero p,
.project-header p,
.command-header p,
.project-dashboard-header .proj-sub {
  color: rgba(255, 255, 255, .72) !important;
}

/* Final header metric card treatment. This intentionally wins over page inline stat rules. */
body .hero .hero-stat,
body .page-hero .hero-stat,
body .dash-hero .hero-stat,
body .project-hero .hero-stat,
body .hub-hero .hero-stat,
body .main-content > .page > section.hero .hero-stat,
body .main-content > .page > section.financial-hero .hero-stat,
body .main-content > .page > section.hero.financial-hero .hero-stat,
body .header-info-box,
body .header-metric-box,
body .nx-header-metric {
  min-height: 104px !important;
  padding: 18px 20px 16px !important;
  border-radius: 6px !important;
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background:
    linear-gradient(135deg, rgba(28, 55, 67, .96) 0%, rgba(48, 86, 96, .92) 52%, rgba(43, 60, 72, .96) 100%) !important;
  border: 1px solid rgba(214, 229, 236, .24) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 18px 46px rgba(8, 18, 28, .20), 0 5px 16px rgba(0, 0, 0, .12) !important;
  color: #f8fafc !important;
}

body .hero .hero-stat::before,
body .page-hero .hero-stat::before,
body .dash-hero .hero-stat::before,
body .project-hero .hero-stat::before,
body .hub-hero .hero-stat::before,
body .main-content > .page > section.hero .hero-stat::before,
body .main-content > .page > section.financial-hero .hero-stat::before,
body .main-content > .page > section.hero.financial-hero .hero-stat::before,
body .header-info-box::before,
body .header-metric-box::before,
body .nx-header-metric::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 42%),
    radial-gradient(circle at 18% 0%, rgba(87, 196, 205, .16), transparent 40%) !important;
}

body .hero .hero-stat::after,
body .page-hero .hero-stat::after,
body .dash-hero .hero-stat::after,
body .project-hero .hero-stat::after,
body .hub-hero .hero-stat::after,
body .main-content > .page > section.hero .hero-stat::after,
body .main-content > .page > section.financial-hero .hero-stat::after,
body .main-content > .page > section.hero.financial-hero .hero-stat::after,
body .header-info-box::after,
body .header-metric-box::after,
body .nx-header-metric::after {
  content: '' !important;
  display: block !important;
  height: 10px !important;
  width: 100% !important;
  margin: 13px 0 0 !important;
  border-radius: 999px !important;
  background: rgba(226, 238, 243, .23) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .10) inset !important;
}

body .hero .hero-stat span,
body .page-hero .hero-stat span,
body .dash-hero .hero-stat span,
body .project-hero .hero-stat span,
body .hub-hero .hero-stat span,
body .main-content > .page > section.hero .hero-stat span,
body .main-content > .page > section.financial-hero .hero-stat span,
body .main-content > .page > section.hero.financial-hero .hero-stat span,
body .header-info-box .label,
body .header-metric-box .label,
body .nx-header-metric .label {
  display: block !important;
  color: rgba(226, 238, 243, .60) !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  white-space: normal !important;
}

body .hero .hero-stat strong,
body .page-hero .hero-stat strong,
body .dash-hero .hero-stat strong,
body .project-hero .hero-stat strong,
body .hub-hero .hero-stat strong,
body .main-content > .page > section.hero .hero-stat strong,
body .main-content > .page > section.financial-hero .hero-stat strong,
body .main-content > .page > section.hero.financial-hero .hero-stat strong,
body .header-info-box .value,
body .header-metric-box .value,
body .nx-header-metric .value {
  display: block !important;
  margin-top: 10px !important;
  color: #fff !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: clamp(30px, 2.8vw, 46px) !important;
  font-weight: 700 !important;
  line-height: .9 !important;
  letter-spacing: -.02em !important;
}

body .hero .hero-stats,
body .main-content > .page > section.hero .hero-stats,
body .main-content > .page > section.financial-hero .hero-stats,
body .main-content > .page > section.hero.financial-hero .hero-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 10px !important;
  width: min(100%, 780px) !important;
  justify-self: end !important;
}

body.nx-project-command-upgraded .nx-legacy-project-header {
  display: none !important;
}

body.nx-signature-upgraded .nx-legacy-signature-hero {
  display: none !important;
}

body.nx-signature-upgraded .nx-legacy-signature-metrics {
  display: none !important;
}

body .nx-project-command-center {
  margin-top: 0 !important;
}

body .nx-project-menu-wrap {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 4 !important;
}

body .nx-project-menu-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .74) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: rgba(235, 241, 245, .92) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease !important;
}

body .nx-project-menu-dot {
  display: block !important;
  width: 3px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  flex: 0 0 3px !important;
}

body .nx-project-menu-btn:hover {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Mobile project header controls: preserve a touch-safe circular options button. */
@media (max-width: 1024px) {
  body .nx-project-menu-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 44px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
  }
}

body .nx-project-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  min-width: 220px !important;
  padding: 8px 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16) !important;
  display: none !important;
}

body .nx-project-menu.open {
  display: block !important;
}

body .nx-project-menu button {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: #1f2937 !important;
  text-align: left !important;
  padding: 0 14px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 34px !important;
  height: auto !important;
  justify-content: flex-start !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

body .nx-project-menu button:hover {
  background: #eef0f2 !important;
  color: #0f172a !important;
}

body .nx-project-command-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 22px !important;
  align-items: stretch !important;
  padding: 22px 24px 20px !important;
}

body .nx-project-command-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr) 144px !important;
  gap: 24px !important;
  align-items: start !important;
}

body .nx-project-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body .nx-project-title-copy {
  min-width: 0 !important;
}

body .nx-project-command-image {
  display: none !important;
  width: 104px !important;
  height: 104px !important;
  flex: 0 0 104px !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  background: rgba(255, 255, 255, .10) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
}

body .nx-project-title-row.has-project-image .nx-project-command-image {
  display: block !important;
}

body .nx-project-command-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body .nx-project-signal {
  padding-top: 10px !important;
}

body .nx-project-signal-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.76) !important;
}

body .nx-project-signal-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--nx-project-signal-color, var(--nx-project-accent)) !important;
  box-shadow: 0 0 8px color-mix(in srgb, var(--nx-project-signal-color, var(--nx-project-accent)) 55%, transparent) !important;
  flex-shrink: 0 !important;
  animation: nxProjectPulse 2.2s ease-in-out infinite !important;
}

body .nx-project-signal-list {
  margin-top: 8px !important;
  max-width: 260px !important;
  display: grid !important;
  gap: 10px !important;
}

body .nx-project-issue {
  display: grid !important;
  grid-template-columns: 8px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}

body .nx-project-issue-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  margin-top: 5px !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06) !important;
}

body .nx-project-issue-dot.is-green {
  background: #22c55e !important;
}

body .nx-project-issue-dot.is-yellow {
  background: #f5b923 !important;
}

body .nx-project-issue-dot.is-orange {
  background: #f97316 !important;
}

body .nx-project-issue-dot.is-red {
  background: #ef4444 !important;
}

body .nx-project-issue-copy {
  display: grid !important;
  gap: 3px !important;
}

body .nx-project-issue-copy strong {
  color: rgba(255,255,255,.88) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body .nx-project-issue-copy span {
  color: rgba(226, 238, 243, .58) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

body .nx-command-ring-card {
  min-height: 132px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .nx-command-score-stack {
  width: 144px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

body .nx-project-score-trigger {
  width: 132px !important;
  min-width: 0 !important;
  min-height: 62px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 13px 0 0 !important;
  display: block !important;
  border: 0 !important;
  border-top: 1px solid rgba(214, 229, 236, .26) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  text-align: center !important;
  cursor: pointer !important;
}

body .nx-project-score-trigger:hover,
body .nx-project-score-trigger:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
}

body .nx-project-score-trigger:focus-visible {
  outline: 2px solid rgba(147, 197, 253, .9) !important;
  outline-offset: 4px !important;
}

body .nx-project-score-trigger span {
  display: block !important;
  color: rgba(226, 238, 243, .64) !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}

body .nx-project-score-trigger strong {
  display: block !important;
  margin-top: 6px !important;
  color: #fff !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

body .nx-command-ring-svg {
  width: 112px !important;
  height: 112px !important;
  transform: rotate(-90deg) !important;
  overflow: visible !important;
}

body .nx-command-ring-track,
body .nx-command-ring-fill {
  fill: none !important;
  stroke-width: 8 !important;
}

body .nx-command-ring-track {
  stroke: rgba(226, 238, 243, .18) !important;
}

body .nx-command-ring-fill {
  stroke: var(--nx-project-accent);
  stroke-linecap: round !important;
  transition: stroke-dashoffset .35s ease, stroke .25s ease !important;
}

body .nx-project-command-center .nx-kicker:before {
  background: var(--nx-status-color, var(--nx-project-accent)) !important;
  box-shadow: 0 0 0 0 var(--nx-status-glow, color-mix(in srgb, var(--nx-status-color, var(--nx-project-accent)) 18%, transparent)), 0 0 8px color-mix(in srgb, var(--nx-status-color, var(--nx-project-accent)) 55%, transparent) !important;
  animation: nxStatusDotPulse 3.2s ease-in-out infinite !important;
}

body .nx-project-status-hero .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

body .nx-project-status-hero .eyebrow:before {
  content: "" !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  flex: 0 0 9px !important;
  background: var(--nx-status-color, #1a8040) !important;
  box-shadow: 0 0 0 0 var(--nx-status-glow, rgba(26, 128, 64, .18)), 0 0 8px color-mix(in srgb, var(--nx-status-color, #1a8040) 55%, transparent) !important;
  animation: nxStatusDotPulse 3.2s ease-in-out infinite !important;
}

@keyframes nxStatusDotPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--nx-status-glow, rgba(26, 128, 64, .18)), 0 0 8px color-mix(in srgb, var(--nx-status-color, #1a8040) 55%, transparent);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(26, 128, 64, 0), 0 0 14px color-mix(in srgb, var(--nx-status-color, #1a8040) 78%, transparent);
  }
}

@keyframes nxProjectPulse {
  0%, 100% { transform: scale(1); opacity: .92; }
  50% { transform: scale(1.22); opacity: 1; }
}

body .nx-command-ring-label {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  pointer-events: none !important;
}

body .nx-command-ring-label strong {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: .9 !important;
}

body .nx-command-ring-label span {
  margin-top: 5px !important;
  color: rgba(226, 238, 243, .68) !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}

body .nx-project-meta-strip {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(110px, 1fr)) minmax(180px, 220px) !important;
  gap: 22px !important;
  align-items: start !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(214, 229, 236, .14) !important;
}

body .nx-project-meta-item {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

body .nx-project-meta-item span {
  display: block !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(226, 238, 243, .42) !important;
}

body .nx-project-meta-item strong {
  display: block !important;
  margin-top: 4px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  color: #fff !important;
}

body.nx-project-command-upgraded .metrics-bar {
  gap: 12px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.nx-project-command-upgraded .metric-item {
  min-height: 112px !important;
  padding: 16px 16px 14px !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(246,248,250,.94)) !important;
  border: 1px solid rgba(17, 24, 39, .08) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04) !important;
  color: #16202d !important;
}

body.nx-project-command-upgraded .metric-item::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.42), transparent 46%),
    radial-gradient(circle at 12% 0%, rgba(78, 157, 179, .10), transparent 38%) !important;
}

body.nx-project-command-upgraded .metric-item::after {
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(23, 32, 45, .06) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85) !important;
}

body.nx-project-command-upgraded .metric-item:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .09), 0 2px 4px rgba(15, 23, 42, .05) !important;
}

body.nx-project-command-upgraded .metric-item > div:not(.m-icon) {
  min-height: 72px !important;
}

body.nx-project-command-upgraded .metric-label {
  color: rgba(22, 32, 45, .42) !important;
  margin-bottom: 6px !important;
}

body.nx-project-command-upgraded .metric-val,
body.nx-project-command-upgraded .metric-item input,
body.nx-project-command-upgraded .metric-item span {
  color: #16202d !important;
}

body.nx-project-command-upgraded .metric-val {
  font-size: 38px !important;
  font-weight: 700 !important;
  line-height: .92 !important;
}

body.nx-project-command-upgraded .metric-item input {
  font-size: 38px !important;
  font-weight: 700 !important;
  line-height: .92 !important;
}

body.nx-project-command-upgraded .metric-delta {
  color: rgba(71, 84, 103, .78) !important;
  margin-top: 8px !important;
}

body.nx-project-command-upgraded .page {
  --page-section-gap: 12px !important;
}

body.nx-project-command-upgraded .page > .proj-header,
body.nx-project-command-upgraded .page > .metrics-bar,
body.nx-project-command-upgraded .page > .two-col,
body.nx-project-command-upgraded .page > .three-col,
body.nx-project-command-upgraded .page > .card,
body.nx-project-command-upgraded .page > .section-row {
  margin: 0 !important;
}

body.nx-project-command-upgraded .project-dashboard-header + .metrics-bar {
  margin-top: 0 !important;
}

body.nx-project-command-upgraded .two-col,
body.nx-project-command-upgraded .three-col,
body.nx-project-command-upgraded .schedule-grid,
body.nx-project-command-upgraded .hcc-grid,
body.nx-project-command-upgraded .terms-grid {
  gap: 12px !important;
}

body .nx-project-meta-item small {
  display: block !important;
  margin-top: 4px !important;
  color: rgba(226, 238, 243, .62) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

body .nx-project-meta-item.no-note small {
  display: none !important;
}

body .nx-project-meta-item.is-green strong {
  color: #22c55e !important;
}

body .nx-project-meta-item.is-green small {
  color: rgba(34, 197, 94, .68) !important;
}

body .nx-project-meta-item.is-highlight strong,
body .nx-project-meta-item.is-yellow strong {
  color: #f5b923 !important;
}

body .nx-project-meta-item.is-highlight small,
body .nx-project-meta-item.is-yellow small {
  color: rgba(245, 185, 35, .64) !important;
}

body .nx-project-meta-item.is-orange strong {
  color: #ff7a2f !important;
}

body .nx-project-meta-item.is-orange small {
  color: rgba(255, 122, 47, .68) !important;
}

body .nx-project-meta-item.is-red strong {
  color: #ff3b4f !important;
}

body .nx-project-meta-item.is-red small {
  color: rgba(255, 59, 79, .72) !important;
}

body .nx-project-meta-item.is-tone-note-only strong {
  color: #fff !important;
}


@media (max-width: 980px) {
  body .hero .hero-stats,
  body .main-content > .page > section.hero .hero-stats,
  body .main-content > .page > section.financial-hero .hero-stats,
  body .main-content > .page > section.hero.financial-hero .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 560px) {
  body .hero .hero-stat,
  body .page-hero .hero-stat,
  body .dash-hero .hero-stat,
  body .project-hero .hero-stat,
  body .hub-hero .hero-stat,
  body .main-content > .page > section.hero .hero-stat,
  body .main-content > .page > section.financial-hero .hero-stat,
  body .main-content > .page > section.hero.financial-hero .hero-stat {
    min-height: 94px !important;
    padding: 16px !important;
  }

  body .hero .hero-stat strong,
  body .page-hero .hero-stat strong,
  body .dash-hero .hero-stat strong,
  body .project-hero .hero-stat strong,
  body .hub-hero .hero-stat strong,
  body .main-content > .page > section.hero .hero-stat strong,
  body .main-content > .page > section.financial-hero .hero-stat strong,
  body .main-content > .page > section.hero.financial-hero .hero-stat strong {
    font-size: 32px !important;
  }
}

/* Remove the legacy 01-08 project phase rail wherever it is injected. */
body .nx-workflow-strip,
body .workflow,
body .phase-strip,
body .project-phase-strip,
body .phase-rail,
body [data-nx-workflow],
body [data-phase-rail] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.btn:hover,
button.btn:hover,
.btn-new:hover,
.btn-save:hover,
.btn-submit:hover,
.btn-add:hover,
.filter-btn:hover,
.tb-btn:hover,

.btn.dark,
.btn-save,
.btn-submit,
.btn-new,
.primary,
button[type="submit"]:not(.nx-raios-send) {
  background: linear-gradient(145deg, #20252c, #080d12) !important;
  color: #fff !important;
  border-color: #080d12 !important;
}

.tab.active,
.pill.active,
.filter-btn.active,
.state-chip.active,
.type-badge.active {
  background: var(--nx-app-gold-bg, #fbf5e8) !important;
  background-image: none !important;
  color: var(--nx-app-gold-text, #76501f) !important;
  border-color: var(--nx-app-gold-border, #ead8b5) !important;
  box-shadow: inset 3px 0 0 var(--nx-app-gold, #b98947) !important;
  font-weight: 600 !important;
}

input,
select,
textarea,
.input,
.search,
.select,
.tb-search input,
.search-wrap input {
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(16, 24, 32, .08) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(16, 24, 32, .05) !important;
  color: var(--nxp-ink) !important;
}

table th,
.table th,
.proj-table th,
.data-table th,
.sov-table th,
.row.head {
  background: #f3f6f8 !important;
  color: #52606d !important;
  border-bottom: 1px solid rgba(16, 24, 32, .08) !important;
}

table td,
.table td,
.proj-table td,
.data-table td,
.sov-table td {
  border-bottom-color: rgba(16, 24, 32, .055) !important;
}

tbody tr:hover td,
.proj-table tbody tr:hover {
  background: rgba(255, 247, 230, .42) !important;
}

.modal,
.modal-box,
.modal-card {
  background: linear-gradient(180deg, #fff, #fbfaf6) !important;
  border: 1px solid rgba(16, 24, 32, .08) !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 90px rgba(16, 24, 32, .28) !important;
}

.modal-overlay,
.modal.open {
  backdrop-filter: blur(10px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.1) !important;
}

.badge,
.pill,
.tag,
.state-tag,
.state-chip,
.type-badge {
  border-radius: 999px !important;
  border: 1px solid rgba(16, 24, 32, .06) !important;
}

.progress-fill,
.bar-fill,
.progress-bar-fill {
  background: linear-gradient(90deg, #12805c, #2dd4bf) !important;
}

.map-card,
#map,
.map-shell {
  border-radius: 22px !important;
  overflow: hidden !important;
}

@media (max-width: 1024px) {
  /* Responsive lifecycle score: ring left, score centered in remaining space. */
  body .nx-project-command-top {
    grid-template-columns: minmax(0, 1fr) minmax(180px, .36fr) minmax(260px, .5fr) !important;
    gap: 18px !important;
  }

  body .nx-command-score-stack {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 0 !important;
  }

  body .nx-command-ring-card {
    width: 132px !important;
    min-height: 132px !important;
  }

  html body .nx-project-score-trigger {
    width: 112px !important;
    min-width: 0 !important;
    min-height: 88px !important;
    height: auto !important;
    justify-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-left: 1px solid rgba(214, 229, 236, .26) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden !important;
  }

  .page {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .card,
  .panel,
  .hero,
  .page-hero,
  .project-dashboard-header,
  .signature-hero,
  .documents-hero,
  .financial-hero,
  .project-header,
  .command-header {
    border-radius: 22px !important;
  }

  .hero,
  .page-hero,
  .project-dashboard-header,
  .signature-hero,
  .documents-hero,
  .financial-hero,
  .project-header,
  .command-header {
    padding: 24px 20px !important;
  }

  .sidebar {
    background: #fff !important;
  }

  body .nx-project-command-top {
    grid-template-columns: 1fr !important;
  }

  body .nx-project-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* Site-wide bold readability pass. Keep uppercase UI readable instead of heavy/black. */
:root {
  --nx-readable-bold: 700;
  --nx-readable-strong: 650;
}

body :is(
  .card-title,
  .card-head-title,
  .panel-title,
  .section-title,
  .modal-title,
  .page-title,
  .table th,
  .comparison-table th,
  .comparison-table .div-row td,
  .total-row td,
  .chip,
  .badge,
  .pill,
  .tag,
  .btn,
  button,
  .select,
  .field label,
  .scope-division,
  .eyebrow,
  .hero-stat span,
  .proj-nav-pill,
  .mobile-project-nav-item
) {font-weight: var(--nx-readable-bold) !important;}

body :is(
  .line-title,
  .doc-name,
  .compare-line-name,
  .scope-item-input,
  .metric-label,
  .card-label,
  b,
  strong
) {
  font-weight: var(--nx-readable-strong) !important;
}

body :is(
  h1,
  h2,
  h3,
  .hero h1,
  .brand-name,
  .enterprise-name,
  .project-name,
  .rfi-title-main,
  .sub-title-main,
  .log-item-title
) {
  font-weight: var(--nx-readable-bold) !important;
}

body [style*="font-weight:900"],
body [style*="font-weight: 900"],
body [style*="font-weight:800"],
body [style*="font-weight: 800"] {
  font-weight: var(--nx-readable-bold) !important;
}
