:root {
  --nv-primary: #1d4ed8;
  --nv-secondary: #334155;
  --nv-accent: #0f766e;
  --nv-success: #15803d;
  --nv-warning: #b45309;
  --nv-edit: #b45309;
  --nv-danger: #b91c1c;
  --nv-background: #f8fafc;
  --nv-surface: #ffffff;
  --nv-text: #111827;
  --nv-muted-text: #64748b;
  --nv-border: #d9e2ec;
  --nv-border-strong: #b8c5d5;
  --nv-radius: 6px;
  --nv-spacing: 1rem;
  --nv-space-1: 0.25rem;
  --nv-space-2: 0.5rem;
  --nv-space-3: 0.75rem;
  --nv-space-4: 1rem;
  --nv-space-6: 1.5rem;
  --nv-space-8: 2rem;
  --nv-space-12: 3rem;
  --nv-control-height: 2.75rem;
  --nv-reading-width: 72ch;
  --nv-content-width: 1180px;
  --nv-wide-width: 1440px;
  --nv-focus: #2563eb;
  --nv-info-surface: #eff6ff;
  --nv-success-surface: #edf9f1;
  --nv-warning-surface: #fff8e8;
  --nv-danger-surface: #fff1f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--nv-text);
  background: var(--nv-background);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--nv-background);
  color: var(--nv-text);
}

.nv-product-home {
  max-width: 1440px;
  margin: 0 auto;
}

.nv-workspace-header,
.nv-section-heading,
.nv-admin-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nv-workspace-header {
  padding: 0.5rem 0 1.5rem;
}

.nv-workspace-header h1,
.nv-section-heading h2,
.nv-admin-links h2 {
  margin: 0;
  letter-spacing: 0;
}

.nv-workspace-header h1 {
  font-size: 2rem;
}

.nv-workspace-header p:not(.nv-kicker) {
  margin: 0.45rem 0 0;
  color: var(--nv-muted-text);
}

.nv-kicker {
  margin: 0 0 0.35rem;
  color: var(--nv-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nv-health-pill {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  font-size: 0.82rem;
  font-weight: 700;
}

.nv-health-pill--ok {
  border-color: #86b79a;
  color: var(--nv-success);
}

.nv-overview {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-block: 1px solid var(--nv-border);
  background: var(--nv-surface);
}

.nv-overview > div {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--nv-border);
}

.nv-overview > div:last-child {
  border-right: 0;
}

.nv-overview strong,
.nv-overview span {
  display: block;
}

.nv-overview strong {
  font-size: 1.35rem;
}

.nv-overview span {
  margin-top: 0.2rem;
  color: var(--nv-muted-text);
  font-size: 0.72rem;
  text-transform: capitalize;
}

.nv-workspace-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 2rem;
  padding: 2rem 0;
}

.nv-workspace-band h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.nv-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.nv-quick-actions a,
.nv-admin-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  color: var(--nv-text);
  font-weight: 650;
  text-decoration: none;
}

.nv-module-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: var(--nv-radius);
  background: #e8f0ff;
  color: var(--nv-primary);
  font-weight: 800;
}

.nv-status-list {
  margin: 0;
  border-top: 1px solid var(--nv-border);
}

.nv-status-list div {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--nv-border);
}

.nv-status-list dt {
  color: var(--nv-muted-text);
}

.nv-status-list dd {
  margin: 0;
  font-weight: 700;
}

.nv-modules-section {
  padding: 1.5rem 0 2.5rem;
}

.nv-section-heading {
  margin-bottom: 1rem;
}

.nv-section-heading > span {
  color: var(--nv-muted-text);
}

.nv-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.nv-module-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
}

.nv-module-card__top,
.nv-module-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.nv-module-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.05rem;
}

.nv-module-card > p {
  min-height: 2.8rem;
  margin: 0;
  color: var(--nv-muted-text);
  line-height: 1.45;
}

.nv-status-badge {
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  background: #eef1f4;
  color: var(--nv-secondary);
  font-size: 0.72rem;
  font-weight: 750;
}

.nv-status-badge--enabled {
  background: #e8f6ed;
  color: var(--nv-success);
}

.nv-status-badge--beta {
  background: #fff4df;
  color: var(--nv-warning);
}

.nv-module-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 1rem 0;
  color: var(--nv-muted-text);
  font-size: 0.75rem;
}

.nv-module-meta span + span::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--nv-border);
}

.nv-module-open {
  font-weight: 700;
  text-decoration: none;
}

.nv-admin-links {
  padding: 1.5rem 0;
  border-top: 1px solid var(--nv-border);
}

.nv-admin-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nv-module-management {
  max-width: 1440px;
  margin: 0 auto;
}

.nv-module-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.nv-module-filters label {
  color: var(--nv-muted-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.nv-module-filters input,
.nv-module-filters select {
  width: 100%;
  min-height: 2.5rem;
  margin-top: 0.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  color: var(--nv-text);
  font: inherit;
}

.nv-module-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
}

.nv-module-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.nv-module-table th,
.nv-module-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--nv-border);
  text-align: left;
  vertical-align: middle;
}

.nv-module-table th {
  color: var(--nv-muted-text);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.nv-module-table td:first-child {
  width: 34%;
}

.nv-module-table td:first-child span {
  display: block;
  max-width: 48rem;
  margin-top: 0.25rem;
  color: var(--nv-muted-text);
  font-size: 0.8rem;
}

.nv-row-actions,
.nv-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nv-organization {
  max-width: 1440px;
  margin: 0 auto;
}

.nv-organization-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 1.25rem;
  border-block: 1px solid var(--nv-border);
  background: var(--nv-surface);
}

.nv-organization-facts div {
  min-width: 0;
  padding: 0.8rem;
  border-right: 1px solid var(--nv-border);
}

.nv-organization-facts div:last-child {
  border-right: 0;
}

.nv-organization-facts span,
.nv-organization-facts strong {
  display: block;
}

.nv-organization-facts span {
  color: var(--nv-muted-text);
  font-size: 0.72rem;
}

.nv-organization-facts strong {
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

.nv-organization-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.nv-organization-grid h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.nv-language-list,
.nv-assignment-list {
  border-top: 1px solid var(--nv-border);
}

.nv-language-list > div,
.nv-assignment-list > div {
  display: grid;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--nv-border);
}

.nv-language-list > div {
  grid-template-columns: 1fr auto;
}

.nv-language-list > div.is-active {
  color: var(--nv-primary);
}

.nv-language-list small {
  color: var(--nv-muted-text);
}

.nv-organization-modules {
  padding: 1rem 0 2rem;
}

.nv-assignment-list > div {
  grid-template-columns: minmax(180px, 1fr) 80px 90px 100px;
}

.nv-row-actions a,
.nv-row-actions button,
.nv-back-link {
  color: var(--nv-primary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.nv-row-actions button {
  padding: 0;
  border: 0;
  background: transparent;
}

.nv-row-actions button:disabled {
  color: var(--nv-muted-text);
  cursor: not-allowed;
}

.nv-back-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.nv-module-detail {
  border-top: 1px solid var(--nv-border);
}

.nv-module-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.nv-module-detail h2 {
  margin: 0;
}

.nv-module-detail header p:not(.nv-kicker) {
  max-width: 760px;
  color: var(--nv-muted-text);
}

.nv-detail-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--nv-border);
}

.nv-detail-facts div {
  padding: 0.8rem;
  border-right: 1px solid var(--nv-border);
}

.nv-detail-facts div:last-child {
  border-right: 0;
}

.nv-detail-facts dt {
  color: var(--nv-muted-text);
  font-size: 0.72rem;
}

.nv-detail-facts dd {
  margin: 0.25rem 0 0;
  font-weight: 750;
}

.nv-detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--nv-border);
}

.nv-detail-columns h3 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.nv-detail-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nv-detail-columns li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--nv-border);
  font-size: 0.8rem;
}

.nv-detail-columns li span,
.nv-empty {
  color: var(--nv-muted-text);
}

.nv-detail-actions {
  padding: 1.25rem 0;
}

a {
  color: var(--nv-primary);
}

.nv-app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.nv-sidebar {
  min-height: 100vh;
  padding: 1rem;
  border-right: 1px solid var(--nv-border);
  background: var(--nv-surface);
}

.nv-brand,
.nv-auth__brand {
  font-weight: 700;
  margin-bottom: 1rem;
}

.nv-nav {
  display: grid;
  gap: 0.25rem;
}

.nv-nav__item {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: var(--nv-radius);
  color: var(--nv-secondary);
  text-decoration: none;
}

.nv-nav__item:hover,
.nv-nav__item:focus {
  background: #eef4ff;
  color: var(--nv-primary);
  outline: none;
}

.nv-shell {
  min-width: 0;
}

.nv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--nv-border);
  background: var(--nv-surface);
}

.nv-user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--nv-muted-text);
}

.nv-main {
  padding: 1.25rem;
}

.nv-auth {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.nv-auth__panel {
  width: min(100%, 420px);
  padding: 1.5rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
}

.nv-module__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nv-module__header h1 {
  margin: 0.2rem 0 0;
  font-size: 1.5rem;
}

.nv-module__eyebrow {
  color: var(--nv-muted-text);
  font-size: 0.875rem;
}

.nv-module__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid transparent;
  border-radius: var(--nv-radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.nv-button--primary {
  background: var(--nv-primary);
  color: #ffffff;
}

.nv-button--positive,
.action-positive {
  border-color: var(--nv-success);
  background: var(--nv-success);
  color: #ffffff;
}

.nv-button--edit,
.action-edit {
  border-color: var(--nv-edit);
  background: var(--nv-warning-surface);
  color: #7c2d12;
}

.nv-button--neutral,
.action-neutral {
  border-color: var(--nv-border-strong);
  background: var(--nv-surface);
  color: #243247;
}

.nv-button--secondary {
  border-color: var(--nv-border);
  background: var(--nv-surface);
  color: var(--nv-secondary);
}

.nv-button--danger {
  background: var(--nv-danger);
  color: #ffffff;
}

.nv-button:disabled,
.nv-button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.nv-card {
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
}

.nv-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0;
}

.nv-card__header h3 {
  margin: 0;
  font-size: 1rem;
}

.nv-card__header span {
  color: var(--nv-muted-text);
  font-size: 0.875rem;
}

.nv-card__body {
  padding: 1rem;
}

.nv-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
}

.nv-table {
  width: 100%;
  border-collapse: collapse;
}

.nv-table th,
.nv-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--nv-border);
  text-align: left;
  vertical-align: top;
}

.nv-table th {
  color: var(--nv-secondary);
  font-size: 0.875rem;
  font-weight: 700;
}

.nv-empty {
  color: var(--nv-muted-text);
  text-align: center;
}

.nv-field {
  display: grid;
  gap: 0.35rem;
}

.nv-field__label {
  font-weight: 600;
}

.nv-field input,
.nv-field select,
.nv-field textarea {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  color: var(--nv-text);
  font: inherit;
  background: var(--nv-surface);
}

.nv-field input:focus,
.nv-field select:focus,
.nv-field textarea:focus {
  border-color: var(--nv-primary);
  outline: 2px solid #bfdbfe;
}

.nv-field__message {
  color: var(--nv-muted-text);
  font-size: 0.875rem;
}

.nv-field__message--error {
  color: var(--nv-danger);
}

.nv-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--nv-secondary);
}

.nv-badge--success {
  background: #dcfce7;
  color: var(--nv-success);
}

.nv-badge--warning {
  background: #fef3c7;
  color: var(--nv-warning);
}

.nv-badge--danger {
  background: #fee2e2;
  color: var(--nv-danger);
}

.nv-badge--info {
  background: #dbeafe;
  color: var(--nv-primary);
}

.nv-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(15 23 42 / 0.45);
  z-index: 50;
}

.nv-modal[hidden] {
  display: none;
}

.nv-modal__panel {
  width: min(100%, 560px);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  box-shadow: 0 24px 80px rgb(15 23 42 / 0.24);
}

.nv-modal__header,
.nv-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--nv-border);
}

.nv-modal__footer {
  border-top: 1px solid var(--nv-border);
  border-bottom: 0;
}

.nv-modal__header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.nv-modal__close {
  border: 0;
  background: transparent;
  color: var(--nv-muted-text);
  cursor: pointer;
  font-size: 1.25rem;
}

.nv-modal__body {
  padding: 1rem;
}

.nv-onboarding {
  width: min(720px, calc(100% - 32px));
  margin: 48px auto;
}

.nv-onboarding__brand {
  margin-bottom: 24px;
  color: var(--nv-text);
  font-size: 1.25rem;
  font-weight: 800;
}

.nv-onboarding__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.nv-onboarding__steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 8px;
  border-bottom: 2px solid var(--nv-border);
  color: var(--nv-muted-text);
  font-size: 0.82rem;
}

.nv-onboarding__steps span {
  display: grid;
  flex: 0 0 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--nv-border);
  border-radius: 50%;
}

.nv-onboarding__steps .is-current {
  border-color: var(--nv-primary);
  color: var(--nv-primary);
  font-weight: 700;
}

.nv-onboarding__panel {
  padding: clamp(24px, 6vw, 48px);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
}

.nv-onboarding__panel h1 {
  margin: 4px 0 28px;
  font-size: 1.75rem;
}

.nv-onboarding__panel form,
.nv-onboarding__panel label {
  display: grid;
  gap: 8px;
}

.nv-onboarding__panel form {
  gap: 20px;
}

.nv-onboarding__panel input,
.nv-onboarding__panel select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  color: var(--nv-text);
  font: inherit;
}

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

.nv-form-errors {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-left: 3px solid var(--nv-danger);
  background: #fff1f0;
  color: var(--nv-danger);
}

.nv-form-errors p {
  margin: 0;
}

.nv-onboarding-summary {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
}

.nv-onboarding-summary div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--nv-border);
}

.nv-onboarding-summary dt {
  color: var(--nv-muted-text);
}

.nv-onboarding-summary dd {
  margin: 0;
  font-weight: 700;
}

.nv-launcher-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px) auto;
  gap: 16px;
  align-items: end;
  margin: 24px 0 36px;
}

.nv-launcher-tools label {
  display: grid;
  gap: 7px;
  color: var(--nv-muted-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.nv-launcher-tools input[type="search"],
.nv-launcher-tools select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  color: var(--nv-text);
  font: inherit;
}

.nv-launcher-tools .nv-launcher-favorite-filter {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
}

.nv-launcher-group {
  margin-top: 32px;
}

.nv-launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.nv-launcher-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
}

.nv-launcher-card__top {
  display: flex;
  min-height: 36px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nv-launcher-card h3 {
  margin: 20px 0 8px;
  font-size: 1.15rem;
}

.nv-launcher-card > p {
  min-height: 44px;
  margin: 0 0 20px;
  color: var(--nv-muted-text);
}

.nv-launcher-tag {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  color: var(--nv-primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.nv-launcher-tag + .nv-launcher-tag {
  margin-left: 4px;
}

.nv-portfolio-label {
  display: block;
  margin-top: 14px;
  color: var(--nv-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.nv-module-card--internal_module,
.nv-module-card--legacy_adapter,
.nv-module-card--demo_module,
.nv-module-card--candidate_merge,
.nv-module-card--candidate_remove {
  background: #f8fafc;
}

.nv-product-classification {
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--nv-border);
  border-bottom: 1px solid var(--nv-border);
}

.nv-product-classification h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.nv-module-filters--portfolio {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.nv-product-packages,
.nv-organization-packages,
.nv-package-assignment {
  margin-top: 32px;
}

.nv-package-strip,
.nv-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.nv-package-strip article,
.nv-package-card {
  padding: 18px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
}

.nv-package-strip h3,
.nv-package-card h2 {
  margin: 6px 0 8px;
  font-size: 1rem;
}

.nv-package-strip p,
.nv-package-card > p,
.nv-package-card > small {
  color: var(--nv-muted-text);
}

.nv-package-assignment > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nv-package-assignment span {
  padding: 7px 9px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  font-size: 0.78rem;
}

.nv-demo-notice {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--nv-warning);
  background: #fff8e6;
}

.nv-package-card header,
.nv-package-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nv-package-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.nv-package-card li {
  padding: 10px 0;
  border-top: 1px solid var(--nv-border);
}

.nv-package-card li span {
  display: block;
  color: var(--nv-muted-text);
  font-size: 0.75rem;
}

.nv-package-card li a,
.nv-package-card li button {
  flex: 0 0 auto;
}

.nv-package-card li button[disabled] {
  padding: 6px 8px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
}

.nv-demo-limitations {
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--nv-border);
}

.nv-launcher-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.nv-launcher-meta div {
  min-width: 0;
}

.nv-launcher-meta dt {
  color: var(--nv-muted-text);
  font-size: 0.72rem;
}

.nv-launcher-meta dd {
  overflow-wrap: anywhere;
  margin: 2px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.nv-launcher-card .nv-button {
  align-self: flex-start;
  margin-top: auto;
}

.nv-launcher-empty {
  padding: 32px 0;
  color: var(--nv-muted-text);
  text-align: center;
}

.nv-user-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 200px));
  gap: 14px;
  margin: 24px 0;
}

.nv-user-filters label {
  display: grid;
  gap: 7px;
  color: var(--nv-muted-text);
  font-size: 0.8rem;
  font-weight: 700;
}

.nv-user-filters input,
.nv-user-filters select {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  color: var(--nv-text);
  font: inherit;
}

.nv-user-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.7fr);
  gap: 20px;
}

.nv-user-list,
.nv-user-detail {
  padding: 20px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
}

.nv-user-list h2 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.nv-user-list > a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--nv-border);
  color: inherit;
  text-decoration: none;
}

.nv-user-list small {
  display: block;
  overflow: hidden;
  color: var(--nv-muted-text);
  text-overflow: ellipsis;
}

.nv-user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--nv-primary);
  color: white;
  font-weight: 800;
}

.nv-user-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.nv-user-facts div {
  padding: 12px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
}

.nv-user-facts dt {
  color: var(--nv-muted-text);
  font-size: 0.75rem;
}

.nv-user-facts dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-weight: 700;
}

.nv-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.nv-access-grid section {
  padding: 14px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
}

.nv-access-grid h3,
.nv-user-detail > h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.nv-access-grid ul {
  margin: 0;
  padding-left: 18px;
}

.nv-access-modules {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.nv-access-modules div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nv-border);
}

.nv-disabled-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.nv-disabled-actions button {
  padding: 9px 12px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
}

@media (max-width: 760px) {
  .nv-onboarding {
    margin: 24px auto;
  }

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

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

  .nv-launcher-tools {
    grid-template-columns: 1fr;
  }

  .nv-user-filters,
  .nv-user-layout,
  .nv-access-grid {
    grid-template-columns: 1fr;
  }

  .nv-access-modules div {
    grid-template-columns: 1fr 80px;
  }

  .nv-app {
    grid-template-columns: 1fr;
  }

  .nv-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--nv-border);
  }

  .nv-topbar,
  .nv-module__header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1000px) {
  .nv-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nv-overview > div {
    border-bottom: 1px solid var(--nv-border);
  }
}

@media (max-width: 760px) {
  .nv-workspace-header,
  .nv-section-heading,
  .nv-admin-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .nv-workspace-header h1 {
    font-size: 1.55rem;
  }

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

  .nv-workspace-band {
    grid-template-columns: 1fr;
  }

  .nv-admin-links nav {
    width: 100%;
  }

  .nv-module-filters,
  .nv-detail-columns {
    grid-template-columns: 1fr;
  }

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

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

  .nv-organization-grid {
    grid-template-columns: 1fr;
  }

  .nv-assignment-list > div {
    grid-template-columns: 1fr 70px;
  }
}
/* Maintenance field evidence stays compact and touch-friendly without changing desktop composition. */
.field-evidence figure { display: inline-block; margin: 0 1rem 1rem 0; max-width: 18rem; vertical-align: top; }
.field-evidence img { display: block; width: 100%; max-height: 16rem; object-fit: contain; border: 1px solid #cbd5e1; }
.qr-label { max-width: 30rem; text-align: center; }
.qr-label img { width: min(100%, 22rem); height: auto; }
.technical-reference { overflow-wrap: anywhere; font-size: .8rem; color: #596475; }
.acknowledgement-evidence canvas { display:block; width:100%; max-width:900px; aspect-ratio:3/1; background:#fff; border:2px solid #64748b; border-radius:4px; touch-action:none; }
.acknowledgement-evidence figure img { display:block; width:min(100%,36rem); height:auto; background:#fff; border:1px solid #cbd5e1; }
@media (max-width: 640px) {
  .field-evidence figure { display: block; max-width: none; margin-right: 0; }
  .field-evidence input[type="file"], .field-evidence button { min-height: 44px; width: 100%; }
}
@media print {
  .nv-shell-skip, .nv-shell-sidebar, .nv-shell-topbar, .nv-shell-breadcrumb,
  .nv-shell-product-nav, .maintenance-runtime > :not(.qr-label) { display: none !important; }
  .nv-shell-layout, .nv-shell-page, .nv-shell-content, .maintenance-runtime {
    display: block !important; margin: 0 !important; padding: 0 !important; width: auto !important;
  }
  .maintenance-runtime > .qr-label {
    display: block !important; box-sizing: border-box; width: 86mm; max-width: 86mm;
    border: 1px solid #111; box-shadow: none; margin: 0 auto; padding: 6mm;
  }
  .qr-label img { width: 58mm; height: 58mm; margin: 2mm auto; }
  .qr-label h1, .qr-label h2, .qr-label p { margin: 2mm 0; }
  .qr-label .qr-label-print-hint { display: none; }
}

/* PCS-223F: shared authenticated product presentation. Product renderers retain
   their domain markup; this layer gives the shell one visual and interaction
   language without affecting public pages or printable evidence. */
.nv-auth-shell .nv-shell-content {
  color: var(--nv-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.nv-auth-shell .nv-shell-page .nv-shell-content > :is(main, header, section),
.nv-auth-shell .nv-shell-page .nv-shell-content > :not(style) > :is(main, header, section) {
  width: min(100%, var(--nv-content-width));
  margin-inline: auto;
}

.nv-auth-shell .nv-shell-page .nv-shell-content > main,
.nv-auth-shell .nv-shell-page .nv-shell-content > :not(style) > main,
.nv-auth-shell .nv-shell-page .nv-shell-content > .quote-draft,
.nv-auth-shell .nv-shell-page .nv-shell-content > .maintenance-runtime {
  padding: var(--nv-space-8) var(--nv-space-6) var(--nv-space-12);
}

.nv-auth-shell .nv-shell-page .nv-shell-content > header,
.nv-auth-shell .nv-shell-page .nv-shell-content > :not(style) > header {
  box-sizing: border-box;
  padding: var(--nv-space-8) var(--nv-space-6) var(--nv-space-4);
}

.nv-auth-shell .nv-shell-content :is(h1, h2, h3, h4) {
  color: #172033;
  letter-spacing: 0;
  line-height: 1.22;
}

.nv-auth-shell .nv-shell-content h1 {
  margin: 0 0 var(--nv-space-2);
  font-size: 1.75rem;
  font-weight: 750;
}

.nv-auth-shell .nv-shell-content h2 {
  margin: 0 0 var(--nv-space-3);
  font-size: 1.125rem;
  font-weight: 725;
}

.nv-auth-shell .nv-shell-content h3 {
  margin: 0 0 var(--nv-space-2);
  font-size: 1rem;
  font-weight: 700;
}

.nv-auth-shell .nv-shell-content :is(p, ul, ol) {
  max-width: var(--nv-reading-width);
}

.nv-auth-shell .nv-shell-content :is(.lead, .secondary, .muted, .quiet, small, .help, .supporting-text) {
  color: #536176;
}

.nv-auth-shell .nv-shell-content :is(.eyebrow, .kicker, .nv-kicker) {
  display: block;
  margin-bottom: var(--nv-space-2);
  color: var(--nv-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nv-auth-shell .nv-shell-content :is(.hero, .quote-hero, .invoice-hero) {
  margin: 0 0 var(--nv-space-6);
  padding: 0 0 var(--nv-space-6);
  border: 0;
  border-bottom: 1px solid var(--nv-border);
  border-radius: 0;
  background: transparent;
}

.nv-auth-shell .nv-shell-content :is(.hero, .quote-hero, .invoice-hero) > :last-child {
  margin-bottom: 0;
}

.nv-auth-shell .nv-shell-content :is(section, .panel, .card, details) {
  box-sizing: border-box;
}

.nv-auth-shell .nv-shell-content :is(.panel, .card, .review-brief, .technical, details) {
  margin-block: var(--nv-space-4);
  padding: var(--nv-space-4);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  box-shadow: none;
}

.nv-auth-shell .nv-shell-content :is(.panel, .card, .review-brief, .technical) > :first-child {
  margin-top: 0;
}

.nv-auth-shell .nv-shell-content :is(.panel, .card, .review-brief, .technical) > :last-child {
  margin-bottom: 0;
}

.nv-auth-shell .nv-shell-content :is(.panel, .card, .review-brief) :is(.panel, .card, .review-brief) {
  margin-inline: 0;
  padding-inline: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.nv-auth-shell .nv-shell-content :is(.cards, .metrics, .grid) {
  gap: var(--nv-space-4);
}

.nv-auth-shell .nv-shell-content :is(form, fieldset) {
  box-sizing: border-box;
}

.nv-auth-shell .nv-shell-content form:not(.inline):not([class*="search"]),
.nv-auth-shell .nv-shell-content fieldset {
  border-color: var(--nv-border);
  border-radius: var(--nv-radius);
}

.nv-auth-shell .nv-shell-content label {
  color: #243247;
  font-weight: 650;
}

.nv-auth-shell .nv-shell-content label > :is(input, select, textarea) {
  margin-top: var(--nv-space-2);
}

.nv-auth-shell .nv-shell-content :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--nv-control-height);
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--nv-border-strong);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
  color: var(--nv-text);
  font: inherit;
}

.nv-auth-shell .nv-shell-content textarea {
  min-height: 7rem;
  resize: vertical;
}

.nv-auth-shell .nv-shell-content :is(input, select, textarea):disabled {
  background: #eef2f6;
  color: #526075;
}

.nv-auth-shell .nv-shell-content :is(input, select, textarea, button, a, summary):focus-visible {
  outline: 3px solid var(--nv-focus);
  outline-offset: 2px;
}

.nv-auth-shell .nv-shell-content :is(input[type="checkbox"], input[type="radio"]) {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.125rem var(--nv-space-2) 0 0;
  accent-color: var(--nv-primary);
}

.nv-auth-shell .nv-shell-content :is(.confirmation, .choice, .radio-option, .checkbox-option) {
  display: flex;
  align-items: flex-start;
  gap: var(--nv-space-2);
  padding: var(--nv-space-3);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: #fbfcfe;
}

.nv-auth-shell .nv-shell-content :is(button, .button, .primary-action, .nv-button, .action-primary, .action-positive, .action-edit, .action-neutral, .action-danger) {
  display: inline-flex;
  min-height: var(--nv-control-height);
  align-items: center;
  justify-content: center;
  gap: var(--nv-space-2);
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--nv-primary);
  border-radius: var(--nv-radius);
  background: var(--nv-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.nv-auth-shell .nv-shell-content :is(.button.secondary, .nv-button--secondary, .action-neutral, button[value="return_to_draft"]) {
  border-color: var(--nv-border-strong);
  background: var(--nv-surface);
  color: #243247;
}

.nv-auth-shell .nv-shell-content :is(.positive, .button.positive, .nv-button--positive, .action-positive) {
  border-color: var(--nv-success);
  background: var(--nv-success);
  color: #fff;
}

.nv-auth-shell .nv-shell-content :is(.edit, .button.edit, .nv-button--edit, .action-edit) {
  border-color: var(--nv-edit);
  background: var(--nv-warning-surface);
  color: #7c2d12;
}

.nv-auth-shell .nv-shell-content :is(.danger, .button.danger, .nv-button--danger, .action-danger, button[value="reject"]) {
  border-color: var(--nv-danger);
  background: var(--nv-danger);
  color: #fff;
}

.nv-auth-shell .nv-shell-content .invoice-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nv-space-3) var(--nv-space-6);
}

.nv-auth-shell .nv-shell-content .invoice-summary-grid dt {
  color: var(--nv-muted-text);
  font-size: 0.8125rem;
}

.nv-auth-shell .nv-shell-content .invoice-summary-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.nv-auth-shell .nv-shell-content .derived-state {
  margin-block: var(--nv-space-4);
  padding: var(--nv-space-3);
  border-left: 3px solid var(--nv-secondary);
  background: #f8fafc;
}

.nv-auth-shell .nv-shell-content .invoice-secondary > details > summary {
  cursor: pointer;
  font-weight: 700;
}

.nv-auth-shell .nv-shell-content :is(button, .button, .primary-action, .nv-button):disabled,
.nv-auth-shell .nv-shell-content :is(button, .button, .primary-action, .nv-button)[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.nv-auth-shell .nv-shell-content :is(.actions, .supporting-actions, .action-bar, .form-actions, .row-actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nv-space-2);
  margin-block: var(--nv-space-4);
}

.nv-auth-shell .nv-shell-content :is(.supporting-actions, .row-actions) a:not(.button):not(.primary-action) {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  padding-inline: var(--nv-space-2);
  font-weight: 650;
}

.nv-auth-shell .nv-shell-content :is(.table-wrap, .table-scroll) {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-surface);
}

.nv-auth-shell .nv-shell-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-block: var(--nv-space-4);
  border: 0;
  border-collapse: collapse;
  background: var(--nv-surface);
  font-variant-numeric: tabular-nums;
}

.nv-auth-shell .nv-shell-content :is(.table-wrap, .table-scroll) table {
  display: table;
  overflow: visible;
  margin: 0;
}

.nv-auth-shell .nv-shell-content :is(th, td) {
  padding: 0.75rem;
  border-width: 0 0 1px;
  border-color: var(--nv-border);
  text-align: left;
  vertical-align: top;
}

.nv-auth-shell .nv-shell-content th {
  background: #f3f6f9;
  color: #445268;
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: none;
}

.nv-auth-shell .nv-shell-content tbody tr:hover {
  background: #f8fafc;
}

.nv-auth-shell .nv-shell-content :is(td, th)[data-type="number"],
.nv-auth-shell .nv-shell-content :is(td, th).number,
.nv-auth-shell .nv-shell-content :is(td, th).amount {
  text-align: right;
}

.nv-auth-shell .nv-shell-content :is(.pill, .badge, .status, .nv-badge, .nv-status-badge) {
  display: inline-flex;
  min-height: 1.625rem;
  align-items: center;
  gap: var(--nv-space-1);
  padding: 0.2rem 0.55rem;
  border: 1px solid #ccd6e3;
  border-radius: 999px;
  background: #eef2f6;
  color: #344258;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.2;
}

.nv-auth-shell .nv-shell-content :is(.success, .flash.success, .notice.success) {
  border-color: #8bc5a0;
  background: var(--nv-success-surface);
  color: #14532d;
}

.nv-auth-shell .nv-shell-content :is(.info, .notice, .flash) {
  border-color: #9ebce7;
  background: var(--nv-info-surface);
  color: #173b70;
}

.nv-auth-shell .nv-shell-content :is(.warning, .blocker) {
  border-color: #dab46b;
  background: var(--nv-warning-surface);
  color: #713f12;
}

.nv-auth-shell .nv-shell-content :is(.error, .errors, .nv-form-errors) {
  border: 1px solid #e4a09a;
  border-left: 4px solid var(--nv-danger);
  border-radius: var(--nv-radius);
  background: var(--nv-danger-surface);
  color: #7f1d1d;
}

.nv-auth-shell .nv-shell-content :is(.success, .info, .notice, .flash, .warning, .blocker, .error, .errors, .nv-form-errors) {
  margin-block: var(--nv-space-4);
  padding: var(--nv-space-3) var(--nv-space-4);
}

.nv-auth-shell .nv-shell-content .action-continuity {
  border: 1px solid #bfd0e7;
  border-left: 4px solid var(--nv-primary);
  background: #f7faff;
}

.nv-auth-shell .nv-shell-content .action-continuity :is(dl, ul) {
  margin-bottom: var(--nv-space-4);
}

.nv-auth-shell .nv-shell-content :is(dl, .facts) {
  column-gap: var(--nv-space-4);
  row-gap: var(--nv-space-2);
}

.nv-auth-shell .nv-shell-content dt {
  color: #536176;
  font-weight: 650;
}

.nv-auth-shell .nv-shell-content dd {
  overflow-wrap: anywhere;
}

.nv-auth-shell .nv-shell-content details > summary {
  color: #26364d;
  font-weight: 700;
  cursor: pointer;
}

.nv-auth-shell .nv-shell-content details[open] > summary {
  margin-bottom: var(--nv-space-3);
  padding-bottom: var(--nv-space-3);
  border-bottom: 1px solid var(--nv-border);
}

.nv-auth-shell .nv-shell-content :is(.empty, .empty-state, .nv-empty) {
  padding: var(--nv-space-8) var(--nv-space-4);
  border: 1px dashed var(--nv-border-strong);
  border-radius: var(--nv-radius);
  background: #fbfcfe;
  color: #536176;
  text-align: center;
}

.nv-auth-shell .nv-shell-content :is(.technical, .technical-details, .technical-reference) {
  color: #536176;
  font-size: 0.8125rem;
}

.nv-auth-shell .nv-shell-content .lead-form {
  display: grid;
  gap: var(--nv-space-4);
}

.nv-auth-shell .nv-shell-content .lead-form-section {
  min-width: 0;
  margin: 0;
  padding: var(--nv-space-4);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
}

.nv-auth-shell .nv-shell-content .lead-form-section legend {
  padding-inline: var(--nv-space-2);
  font-weight: 750;
}

.nv-auth-shell .nv-shell-content .lead-form-grid,
.nv-auth-shell .nv-shell-content .lead-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nv-space-3) var(--nv-space-5);
}

.nv-auth-shell .nv-shell-content .lead-summary-grid > div {
  min-width: 0;
}

.nv-auth-shell .nv-shell-content .lead-summary-grid dt {
  color: var(--nv-muted-text);
  font-size: 0.8125rem;
}

.nv-auth-shell .nv-shell-content .lead-summary-grid dd {
  margin: var(--nv-space-1) 0 0;
  font-weight: 650;
}

.nv-auth-shell .nv-shell-content :is(.lead-form-grid, .lead-summary-grid) .lead-summary-wide {
  grid-column: 1 / -1;
}

/* The legacy Maintenance renderer declares a dark-page foreground locally.
   Authenticated surfaces use the shared light content canvas, so reset only
   that inherited foreground while retaining Maintenance-specific structure. */
.nv-auth-shell .nv-shell-content .maintenance-runtime {
  color: var(--nv-text);
}

.nv-auth-shell .nv-shell-content .maintenance-runtime :is(.hero, .card, form, table) {
  color: var(--nv-text);
}

@media (max-width: 760px) {
  .nv-auth-shell .nv-shell-page .nv-shell-content > main,
  .nv-auth-shell .nv-shell-page .nv-shell-content > :not(style) > main,
  .nv-auth-shell .nv-shell-page .nv-shell-content > .quote-draft,
  .nv-auth-shell .nv-shell-page .nv-shell-content > .maintenance-runtime {
    padding: var(--nv-space-4) var(--nv-space-3) var(--nv-space-8);
  }

  .nv-auth-shell .nv-shell-page .nv-shell-content > header,
  .nv-auth-shell .nv-shell-page .nv-shell-content > :not(style) > header {
    padding: var(--nv-space-4) var(--nv-space-3) var(--nv-space-3);
  }

  .nv-auth-shell .nv-shell-content h1 {
    font-size: 1.5rem;
  }

  .nv-auth-shell .nv-shell-content :is(.actions, .action-bar, .form-actions) > :is(button, .button, .primary-action, .action-primary, .action-positive, .action-edit, .action-neutral, .action-danger) {
    width: 100%;
  }

  .nv-auth-shell .nv-shell-content :is(.cards, .metrics, .grid) {
    grid-template-columns: 1fr;
  }

  .nv-auth-shell .nv-shell-content .invoice-summary-grid {
    grid-template-columns: 1fr;
  }

  .nv-auth-shell .nv-shell-content :is(.lead-form-grid, .lead-summary-grid) {
    grid-template-columns: 1fr;
  }

  .nv-auth-shell .nv-shell-content :is(.table-wrap, .table-scroll) {
    scrollbar-width: thin;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nv-auth-shell *,
  .nv-auth-shell *::before,
  .nv-auth-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
