:root {
  --nx437-text-strong: #0f172a;
  --nx437-text: #1e293b;
  --nx437-text-soft: #475569;
  --nx437-text-dark-strong: #f8fafc;
  --nx437-text-dark: #e2e8f0;
  --nx437-text-dark-soft: #cbd5e1;
}

/* NEXAKOR Phase 16 R10G - iconography uplift.
   The original layer also force-recoloured text across the whole document.
   Because the application's dashboards, command bars and sidebars are gradient
   surfaces with a transparent background-color, that blanket override repainted
   text sitting on nested dark surfaces and produced unreadable dark-on-dark /
   light-on-light text. The application themes already provide accessible text
   contrast, so this patched layer keeps only the iconography enhancement (the
   safe, non-regressive part of the objective) and lets themed text stand. */

/* Icon uplift: menu, quick rail and dock */
:where(.sidebar .nav-link, .sidebar .nav-group-toggle, .nx-v431-quickrail button, .workspace-dock-item, .workspace-dock button, [role='menuitem']) .nx433-icon-wrap,
:where(.sidebar .nav-link, .sidebar .nav-group-toggle, .nx-v431-quickrail button, .workspace-dock-item, .workspace-dock button, [role='menuitem']) .nx433-icon-fallback {
  position: relative;
  isolation: isolate;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nx437-icon-bg1, rgba(37,99,235,.2)), var(--nx437-icon-bg2, rgba(124,58,237,.18)));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 8px 18px rgba(2,6,23,.18),
    0 0 0 1px var(--nx437-icon-ring, rgba(148,163,184,.22));
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

:where(.sidebar .nav-link, .sidebar .nav-group-toggle, .nx-v431-quickrail button, [role='menuitem']) .nx433-icon-wrap,
:where(.sidebar .nav-link, .sidebar .nav-group-toggle, .nx-v431-quickrail button, [role='menuitem']) .nx433-icon-fallback {
  width: 32px !important;
  height: 32px !important;
  margin-right: 10px;
}

:where(.workspace-dock-item, .workspace-dock button) .nx433-icon-wrap,
:where(.workspace-dock-item, .workspace-dock button) .nx433-icon-fallback {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px;
}

:where(.workspace-dock-item, .workspace-dock button) .nx433-icon-svg {
  width: 26px !important;
  height: 26px !important;
}

:where(.sidebar .nav-link, .sidebar .nav-group-toggle, .nx-v431-quickrail button, [role='menuitem']) .nx433-icon-svg {
  width: 20px !important;
  height: 20px !important;
}

.nx437-icon-host:is(:hover, .active, [aria-current='page']) .nx433-icon-wrap,
.nx437-icon-host:is(:hover, .active, [aria-current='page']) .nx433-icon-fallback,
.workspace-dock-item:is(:hover, .active) .nx433-icon-wrap,
.workspace-dock-item:is(:hover, .active) .nx433-icon-fallback {
  transform: translateY(-1px) scale(1.03);
  filter: saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.26),
    0 12px 22px rgba(2,6,23,.24),
    0 0 0 1px var(--nx437-icon-ring, rgba(96,165,250,.3)),
    0 0 18px var(--nx437-icon-glow, rgba(96,165,250,.18));
}

.nx437-icon-host :where(.nx433-icon-stroke) {
  stroke-width: 1.8px;
}

.nx437-icon-host .nx433-icon-wrap::after,
.workspace-dock-item .nx433-icon-wrap::after,
.workspace-dock button .nx433-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.workspace-dock-item,
.workspace-dock button {
  min-width: 56px;
}

.workspace-dock-item .workspace-dock-label,
.workspace-dock button .workspace-dock-label {
  font-weight: 700;
  letter-spacing: .01em;
}

.sidebar .nav-link,
.sidebar .nav-group-toggle {
  gap: 2px;
}

/* Give quickrail/menu buttons a more premium feel */
.nx-v431-quickrail button,
.workspace-dock button,
.workspace-dock-item {
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.nx-v431-quickrail button:hover,
.workspace-dock button:hover,
.workspace-dock-item:hover {
  transform: translateY(-1px);
}
