:root {
  --fe7-bg: #f7faff;
  --fe7-shell: #ffffff;
  --fe7-surface: rgba(255, 255, 255, 0.96);
  --fe7-surface-2: rgba(248, 251, 255, 0.94);
  --fe7-border: rgba(15, 42, 74, 0.14);
  --fe7-border-strong: rgba(8, 123, 162, 0.38);
  --fe7-text: #0b1735;
  --fe7-muted: #5e6f8d;
  --fe7-cyan: #13c8e8;
  --fe7-cyan-2: #0289b7;
  --fe7-blue: #0d4f80;
  --fe7-gold: #c98622;
  --fe7-green: #19c978;
  --fe7-red: #ff4f58;
  --fe7-card-shadow: 0 18px 44px rgba(28, 51, 86, 0.1);
  --fe7-glow: 0 0 0 1px rgba(19, 200, 232, 0.1), 0 16px 38px rgba(19, 200, 232, 0.12);
  --fe7-radius: 10px;
}

:root[data-theme="night"] {
  --fe7-bg: #061827;
  --fe7-shell: #082035;
  --fe7-surface: rgba(9, 31, 50, 0.92);
  --fe7-surface-2: rgba(8, 27, 45, 0.86);
  --fe7-border: rgba(151, 201, 226, 0.15);
  --fe7-border-strong: rgba(19, 200, 232, 0.52);
  --fe7-text: #f0f7ff;
  --fe7-muted: #9db0c7;
  --fe7-cyan: #19d7f6;
  --fe7-cyan-2: #089fc8;
  --fe7-blue: #12456d;
  --fe7-card-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --fe7-glow: 0 0 0 1px rgba(19, 200, 232, 0.18), 0 20px 46px rgba(0, 219, 255, 0.08);
}

body.nx-active {
  color: var(--fe7-text);
  background:
    radial-gradient(circle at 45% -10%, rgba(20, 200, 232, 0.11), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--fe7-bg) 100%) !important;
  letter-spacing: 0;
}

:root[data-theme="night"] body.nx-active {
  background:
    radial-gradient(circle at 55% -12%, rgba(19, 200, 232, 0.12), transparent 36%),
    linear-gradient(135deg, #061522 0%, #082137 56%, #061827 100%) !important;
}

.route-root,
#nexusReactRouteRoot {
  width: 100%;
}

.site-header.nexus-top-header {
  grid-template-columns: auto minmax(280px, 520px) minmax(0, auto);
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px 16px;
  border-radius: 18px;
  border-color: var(--fe7-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.9)) !important;
  box-shadow: 0 18px 46px rgba(15, 42, 74, 0.12);
}

:root[data-theme="night"] .site-header.nexus-top-header {
  background:
    linear-gradient(135deg, rgba(8, 31, 51, 0.98), rgba(13, 26, 45, 0.94)) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

.nexus-top-logo.fe7-logo-lockup {
  display: flex;
  justify-items: initial;
  align-items: center;
  gap: 10px;
}

.nexus-top-logo .fe7-logo-copy {
  justify-items: start;
}

.nexus-top-logo .fe7-logo-word {
  font-size: 16px;
  letter-spacing: 0.06em;
}

.nexus-top-logo .fe7-logo-tagline {
  font-size: 6px;
}

.nexus-header-search {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid var(--fe7-border);
  border-radius: 12px;
  background: var(--fe7-surface-2);
  color: var(--fe7-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

:root[data-theme="night"] .nexus-header-search {
  background: rgba(5, 24, 39, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nexus-header-search > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.nexus-header-search input,
.site-search.nexus-header-search input {
  min-height: 40px;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fe7-text);
}

.nexus-header-search:focus-within {
  border-color: var(--fe7-border-strong);
  box-shadow: 0 0 0 3px rgba(19, 200, 232, 0.12);
}

.nexus-top-actions,
.nexus-header-nav,
.nexus-header-actions {
  display: flex;
  align-items: center;
}

.nexus-top-actions {
  justify-content: flex-end;
  gap: 16px;
}

.nexus-header-nav {
  gap: 4px;
}

.nexus-header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 9px;
  color: var(--fe7-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.nexus-header-link::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--fe7-cyan);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nexus-header-link:hover,
.nexus-header-link:focus-visible {
  color: var(--fe7-text);
}

.nexus-header-link:hover::after,
.nexus-header-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nexus-header-actions {
  gap: 8px;
  position: relative;
  z-index: 30;
}

.nexus-icon-button,
.nexus-login-action,
.nexus-profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--fe7-border);
  border-radius: 999px;
  background: var(--fe7-surface-2);
  color: var(--fe7-text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nexus-icon-button:hover,
.nexus-login-action:hover,
.nexus-profile-action:hover,
.nexus-icon-button:focus-visible,
.nexus-login-action:focus-visible,
.nexus-profile-action:focus-visible {
  border-color: var(--fe7-border-strong);
  color: var(--fe7-cyan);
  box-shadow: 0 0 0 3px rgba(19, 200, 232, 0.1);
}

.nexus-login-action {
  gap: 8px;
  width: auto;
  padding: 0 14px;
  border-color: rgba(19, 200, 232, 0.45);
  background: linear-gradient(135deg, var(--fe7-cyan-2), #073d61);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.nexus-signup-action {
  border-color: rgba(19, 200, 232, 0.35);
}

.nexus-profile-action {
  width: auto;
  gap: 9px;
  padding: 3px 12px 3px 3px;
}

.nexus-profile-action .mini-avatar {
  width: 32px;
  height: 32px;
}

.nexus-profile-action-copy {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}

.nexus-profile-action-copy strong {
  max-width: 112px;
  overflow: hidden;
  color: var(--fe7-text);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexus-profile-action-copy span {
  max-width: 112px;
  overflow: hidden;
  color: var(--fe7-muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexus-header-actions .notification-bell {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  border-color: var(--fe7-border);
  background: var(--fe7-surface-2);
  color: var(--fe7-text);
}

.nexus-header-actions .notification-bell > span:not(.notification-bell-icon):not(.notification-bell-count) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nexus-header-actions .notification-bell:hover,
.nexus-header-actions .notification-bell:focus-visible {
  border-color: var(--fe7-border-strong);
  color: var(--fe7-cyan);
  box-shadow: 0 0 0 3px rgba(19, 200, 232, 0.1);
}

.nexus-header-actions .notification-bell-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  min-height: 18px;
  padding: 0 5px;
  border-color: rgba(255, 79, 88, 0.48);
  background: var(--fe7-red);
  color: #ffffff;
  font-size: 10px;
}

.nexus-header-actions .notification-panel {
  right: 0;
  z-index: 80;
  border-radius: 12px;
}

.nexus-app-header {
  display: grid;
  grid-template-columns: minmax(260px, 640px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  position: relative;
  z-index: 20;
}

.nexus-app-search {
  max-width: 640px;
}

.nexus-route-stage {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.nexus-route-stage > .nexus-main-stage,
.nexus-route-stage > .nx-main {
  padding: 0;
}

.nexus-sidebar-chrome {
  display: none !important;
}

.nexus-app-frame,
.nxp-board {
  width: min(100% - 20px, 1880px);
  min-height: calc(100vh - 20px);
  margin: 10px auto;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--fe7-border);
  border-radius: 12px;
  background: var(--fe7-shell);
  box-shadow: var(--fe7-card-shadow);
}

:root[data-theme="night"] .nexus-app-frame,
:root[data-theme="night"] .nxp-board {
  background: linear-gradient(135deg, rgba(8, 32, 52, 0.98), rgba(7, 27, 44, 0.98));
}

.nexus-sidebar {
  min-height: 100%;
  border: 0 !important;
  border-right: 1px solid var(--fe7-border) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.92)) !important;
  box-shadow: none !important;
}

:root[data-theme="night"] .nexus-sidebar {
  background: linear-gradient(180deg, rgba(7, 28, 47, 0.98), rgba(5, 22, 38, 0.98)) !important;
}

.nexus-sidebar-inner {
  min-height: 100%;
  padding: 30px 16px 22px;
  gap: 20px;
}

.fe7-logo-lockup {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--fe7-text);
  text-decoration: none;
}

.fe7-logo-mark {
  filter: drop-shadow(0 7px 14px rgba(8, 137, 183, 0.18));
}

.fe7-logo-copy {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.fe7-logo-word {
  font-family: var(--font-display, Inter, system-ui, sans-serif);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.fe7-logo-tagline {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--fe7-muted);
}

.nexus-sidebar-search {
  position: relative;
}

.fe7-sidebar-search-icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fe7-muted);
  pointer-events: none;
}

.nexus-sidebar-search input,
.fe7-search-input,
.fe7-preview-search input {
  width: 100%;
  height: 33px;
  border: 1px solid var(--fe7-border);
  border-radius: 8px;
  background: var(--fe7-surface-2);
  color: var(--fe7-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

:root[data-theme="night"] .nexus-sidebar-search input,
:root[data-theme="night"] .fe7-search-input,
:root[data-theme="night"] .fe7-preview-search input {
  background: rgba(5, 24, 39, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nexus-sidebar-nav {
  gap: 10px;
}

.nexus-sidebar-link {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--fe7-text);
  font-weight: 650;
  background: transparent;
}

.nexus-sidebar-link-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  background: transparent !important;
  color: currentColor;
}

.nexus-sidebar-link.is-active {
  color: var(--fe7-cyan) !important;
  border-color: rgba(19, 200, 232, 0.18);
  background: linear-gradient(90deg, rgba(19, 200, 232, 0.16), rgba(19, 200, 232, 0.06)) !important;
  box-shadow: inset 3px 0 0 var(--fe7-cyan);
}

.nexus-sidebar-link:hover {
  border-color: var(--fe7-border);
  background: var(--fe7-surface-2);
}

.fe7-nav-pill {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(92, 113, 138, 0.16);
  color: var(--fe7-muted);
  font-size: 11px;
}

.fe7-sidebar-user {
  margin-top: auto;
  display: grid;
  gap: 10px;
  border: 1px solid var(--fe7-border) !important;
  border-radius: 10px !important;
  background: var(--fe7-surface-2) !important;
  padding: 12px !important;
}

.nexus-sidebar-user-guest .route-detail-copy {
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.4;
}

.fe7-sidebar-user-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.fe7-online-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-online-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--fe7-green);
  box-shadow: 0 0 0 3px rgba(25, 201, 120, 0.12);
}

.fe7-profile-button {
  min-height: 34px;
  justify-content: center;
}

.nexus-main-stage,
.nx-main,
.nxp-main {
  min-width: 0;
  padding: 26px;
  background: transparent;
}

.nexus-main-stage,
.nx-main {
  display: grid;
  align-content: start;
  gap: 18px;
}

body.nexus-app-layout .fe7-preview-topline {
  display: none;
}

.route-page {
  color: var(--fe7-text);
}

.fe7-card,
.nexus-ref-panel,
.nexus-reference-card,
.route-module-card,
.social-post-card,
.inbox-chat-sidebar,
.inbox-chat-main {
  border: 1px solid var(--fe7-border) !important;
  border-radius: var(--fe7-radius) !important;
  background: var(--fe7-surface) !important;
  color: var(--fe7-text);
  box-shadow: none !important;
}

:root[data-theme="night"] .fe7-card,
:root[data-theme="night"] .nexus-ref-panel,
:root[data-theme="night"] .nexus-reference-card,
:root[data-theme="night"] .route-module-card,
:root[data-theme="night"] .social-post-card,
:root[data-theme="night"] .inbox-chat-sidebar,
:root[data-theme="night"] .inbox-chat-main {
  background: linear-gradient(180deg, rgba(10, 35, 57, 0.72), rgba(7, 28, 45, 0.7)) !important;
}

.fe7-card-header,
.nexus-ref-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 0 !important;
}

.fe7-card-body,
.nexus-ref-panel-body {
  padding: 16px !important;
}

.fe7-card-title,
.nexus-ref-panel-title,
.route-module-card h3 {
  margin: 0;
  color: var(--fe7-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fe7-card-copy,
.nexus-ref-copy,
.nexus-ref-empty,
.nx-empty,
.route-detail-copy {
  color: var(--fe7-muted) !important;
}

.solid-button,
.ghost-button,
.nexus-button,
.fe7-head-action {
  border-radius: 7px !important;
  min-height: 34px;
  border: 1px solid var(--fe7-border-strong) !important;
  font-weight: 800;
  box-shadow: none !important;
}

.solid-button,
.fe7-head-action {
  background: linear-gradient(180deg, #078bb4, #07577e) !important;
  color: #ffffff !important;
}

.ghost-button {
  background: transparent !important;
  color: var(--fe7-text) !important;
}

:root[data-theme="night"] .ghost-button {
  color: #d9effb !important;
}

.fe7-badge {
  border-radius: 999px !important;
  border: 1px solid var(--fe7-border);
}

.fe7-badge-cyan { color: var(--fe7-cyan); background: rgba(19, 200, 232, 0.1); }
.fe7-badge-faceit { color: #ff8a2a; background: rgba(255, 138, 42, 0.12); }
.fe7-badge-success { color: var(--fe7-green); background: rgba(25, 201, 120, 0.12); }
.fe7-badge-danger { color: var(--fe7-red); background: rgba(255, 79, 88, 0.12); }
.fe7-badge-gold { color: var(--fe7-gold); background: rgba(201, 134, 34, 0.13); }
.fe7-badge-muted { color: var(--fe7-muted); background: rgba(110, 128, 150, 0.13); }

.fe7-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fe7-stat-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.fe7-stat-card,
.nexus-stat-card {
  min-height: 104px;
  border: 1px solid var(--fe7-border);
  border-radius: var(--fe7-radius);
  background: var(--fe7-surface);
  padding: 16px;
}

.fe7-stat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fe7-muted);
  font-size: 12px;
  font-weight: 700;
}

.fe7-stat-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(19, 200, 232, 0.12);
  color: var(--fe7-cyan);
}

.fe7-stat-icon svg {
  width: 14px;
  height: 14px;
}

.fe7-stat-value {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  line-height: 1;
  color: var(--fe7-text);
}

.fe7-stat-detail {
  margin: 10px 0 0;
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-stat-trend,
.fe7-positive {
  color: var(--fe7-green);
}

.ui-placeholder .fe7-placeholder-mini,
.fe7-placeholder-notice,
.fe7-placeholder-copy {
  color: var(--fe7-gold) !important;
  font-size: 11px;
  font-weight: 700;
}

.fe7-placeholder-notice {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 10px;
  border: 1px solid rgba(201, 134, 34, 0.34);
  border-radius: 999px;
  background: rgba(201, 134, 34, 0.09);
}

.fe7-page {
  display: grid;
  gap: 18px;
}

.fe7-preview-topline,
.fe7-page-head,
.fe7-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.fe7-preview-search {
  width: min(100%, 560px);
  position: relative;
}

.fe7-preview-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fe7-muted);
}

.fe7-preview-search input {
  padding-left: 38px;
}

.fe7-preview-actions,
.fe7-toolbar span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fe7-text);
}

.fe7-page-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.fe7-page-head p {
  margin: 8px 0 0;
  color: var(--fe7-muted);
}

.fe7-page-tabs,
.fe7-tabs,
.nxp-tabs,
.nexus-tab-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 44px;
  border-bottom: 1px solid var(--fe7-border);
}

.fe7-page-tabs span,
.fe7-page-tabs button,
.fe7-tab,
.nxp-tab,
.nexus-tab {
  position: relative;
  border: 0;
  padding: 13px 0;
  background: transparent;
  color: var(--fe7-muted);
  font-weight: 750;
  text-decoration: none;
}

.fe7-page-tabs .is-active,
.fe7-tab.is-active,
.nxp-tab.is-active,
.nexus-tab.is-active {
  color: var(--fe7-cyan) !important;
}

.fe7-page-tabs .is-active::after,
.fe7-tab.is-active::after,
.nxp-tab.is-active::after,
.nexus-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--fe7-cyan);
}

.nexus-feed-reference {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.nexus-feed-center {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  gap: 18px;
}

.nexus-feed-rail {
  display: grid;
  gap: 16px;
}

.nexus-feed-rail-left {
  grid-column: 2;
  grid-row: 1;
}

.nexus-feed-rail-right {
  grid-column: 2;
  grid-row: 2;
}

.fe7-feed-right-rail {
  grid-row: 1;
}

.nexus-feed-search,
.nx-feed-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nexus-feed-search-form {
  flex: 1;
}

.nexus-feed-composer,
.social-post-card {
  padding: 18px;
}

.nexus-feed-composer-label {
  color: var(--fe7-text);
  font-weight: 750;
}

.nexus-feed-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nexus-composer-chip,
.social-action-button {
  border: 1px solid var(--fe7-border) !important;
  border-radius: 7px !important;
  background: var(--fe7-surface-2) !important;
  color: var(--fe7-text) !important;
}

.feed-post-list {
  display: grid;
  gap: 18px;
}

.social-post-head,
.social-author,
.fe7-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-post-head {
  justify-content: space-between;
}

.social-post-body {
  color: var(--fe7-text);
  font-size: 16px;
  line-height: 1.55;
}

.fe7-feed-media-preview {
  min-height: 280px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 16%),
    linear-gradient(135deg, #071421, #0b4e7c 52%, #020712);
}

.fe7-play-button {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.nxp-page {
  min-height: 100vh;
}

.nxp-board {
  grid-template-columns: 184px minmax(0, 1fr);
}

.nxp-profile-card {
  display: grid;
  gap: 14px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nxp-hero,
.nx-profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 170px;
  align-items: center;
  gap: 28px;
  min-height: 218px;
  border: 1px solid var(--fe7-border);
  border-radius: var(--fe7-radius);
  background: var(--fe7-surface);
  padding: 28px;
}

.nxp-avatar-shell,
.profile-avatar-shell {
  width: 138px !important;
  height: 138px !important;
  border: 2px solid var(--fe7-cyan) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 5px rgba(19, 200, 232, 0.08);
}

.nxp-display-name,
.nx-profile-name {
  color: var(--fe7-text);
  font-size: 34px;
  line-height: 1.05;
}

.nxp-handle,
.profile-subtitle,
.nxp-bio {
  color: var(--fe7-muted) !important;
}

.nxp-rank-card,
.nexus-rank-card {
  align-self: stretch;
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fe7-border);
  border-radius: 9px;
  background: var(--fe7-surface-2);
  text-align: center;
}

.nxp-rank-value,
.nexus-rank-card strong {
  color: var(--fe7-text);
  font-size: 34px;
}

.nxp-grid,
.nexus-profile-grid,
.nexus-profile-body-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.3fr) minmax(260px, 0.9fr);
  gap: 16px;
}

.nxp-col,
.nexus-profile-col-left,
.nexus-profile-col-center,
.nexus-profile-col-right {
  display: grid;
  gap: 16px;
}

.nxp-module,
.route-module-card {
  min-height: 132px;
}

.nxp-about-list,
.nexus-about-list,
.fe7-side-metrics {
  display: grid;
  gap: 10px;
}

.nxp-about-row,
.nexus-about-row,
.fe7-side-metrics div,
.fe7-table-row,
.fe7-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--fe7-border);
}

.fe7-profile-preview-block {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
}

.fe7-heatmap {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #1b2b35;
  background-size: 28px 28px;
}

.fe7-heatmap span {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffde42 0%, #24d37c 38%, rgba(36, 211, 124, 0) 70%);
  filter: blur(3px);
}

.fe7-heatmap span:nth-child(1) { left: 24%; top: 20%; }
.fe7-heatmap span:nth-child(2) { left: 58%; top: 34%; }
.fe7-heatmap span:nth-child(3) { left: 38%; top: 62%; }
.fe7-heatmap span:nth-child(4) { left: 72%; top: 70%; }

.fe7-trophy-row,
.fe7-org-trophy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fe7-trophy {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.fe7-trophy span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(180deg, #dce7f2, #75818e);
  color: #071827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 10px 20px rgba(15, 42, 74, 0.12);
}

.fe7-trophy span.is-gold {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.74), transparent 24%),
    linear-gradient(180deg, #ffe7a0, #c98622);
}

.fe7-trophy span.is-silver {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(180deg, #f4f7fb, #9aa4b2);
}

.fe7-recent-post {
  display: grid;
  gap: 12px;
}

.fe7-avatar-orb,
.fe7-player-portrait,
.profile-mini-avatar.is-fallback,
.mini-avatar-fallback {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b4c75, #13c8e8);
  color: #fff;
  font-weight: 900;
}

.fe7-avatar-orb {
  width: 38px;
  height: 38px;
}

.fe7-player-portrait {
  position: relative;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(19, 200, 232, 0.34);
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.9) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 46%, rgba(11, 23, 53, 0.92) 0 17%, transparent 18%),
    linear-gradient(160deg, rgba(19, 200, 232, 0.95), rgba(11, 23, 53, 0.98));
  box-shadow: 0 12px 24px rgba(8, 137, 183, 0.14);
}

.fe7-player-portrait span {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(5, 18, 30, 0.72);
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0;
}

.fe7-player-portrait.is-2 {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.9) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 46%, rgba(11, 23, 53, 0.92) 0 17%, transparent 18%),
    linear-gradient(160deg, #25d6c2, #10253c);
}

.fe7-player-portrait.is-3 {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.9) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 46%, rgba(11, 23, 53, 0.92) 0 17%, transparent 18%),
    linear-gradient(160deg, #f36b7a, #10253c);
}

.fe7-player-portrait.is-4 {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.9) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 46%, rgba(11, 23, 53, 0.92) 0 17%, transparent 18%),
    linear-gradient(160deg, #f4b64a, #10253c);
}

.fe7-player-portrait.is-5 {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.9) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 46%, rgba(11, 23, 53, 0.92) 0 17%, transparent 18%),
    linear-gradient(160deg, #7c8cff, #10253c);
}

.fe7-post-actions {
  display: flex;
  gap: 20px;
  color: var(--fe7-muted);
}

.fe7-premium-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--fe7-gold);
  border-radius: 9px;
  padding: 16px;
  background: rgba(201, 134, 34, 0.08);
}

.fe7-premium-cta div {
  flex: 1;
}

.fe7-premium-cta p {
  margin: 4px 0 0;
  color: var(--fe7-muted);
}

.fe7-premium-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(201, 134, 34, 0.18);
  color: var(--fe7-gold);
  font-weight: 900;
}

.fe7-premium-button {
  background: linear-gradient(180deg, #b47827, #6c461b) !important;
}

.nx-org,
.nexus-org-reference {
  display: grid;
  gap: 16px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nx-profile-header-row {
  display: contents;
}

.nx-profile-identity {
  grid-column: 1 / span 2;
}

.fe7-org-games,
.fe7-partner-grid {
  display: grid;
  gap: 10px;
}

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

.fe7-partner-grid span,
.fe7-store-preview {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fe7-border);
  border-radius: 8px;
  background: var(--fe7-surface-2);
  font-weight: 900;
}

.fe7-store-preview {
  grid-template-columns: auto 1fr;
  justify-items: start;
  gap: 12px;
  padding: 12px;
}

.fe7-team-logo {
  position: relative;
  min-width: 48px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  padding: 0 8px;
  font-weight: 950;
  transform: skew(-10deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px rgba(0, 0, 0, 0.12);
}

.fe7-team-logo::before {
  content: "";
  position: absolute;
  inset: -16px 14px -16px auto;
  width: 16px;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.3);
}

.fe7-team-logo span {
  position: relative;
  z-index: 1;
  transform: skew(10deg);
  letter-spacing: 0;
}

.fe7-team-logo.is-yellow { background: #f8ef00; color: #071827; }
.fe7-team-logo.is-red { background: #e9363e; color: #fff; }
.fe7-team-logo.is-white { background: #f4f7fb; color: #071827; }
.fe7-team-logo.is-gold { background: #ffd441; color: #071827; }
.fe7-team-logo.is-dark { background: #0b1018; color: #fff; }
.fe7-team-logo.is-cyan { background: #13c8e8; color: #062033; }

.fe7-market-grid,
.fe7-two-col,
.fe7-three-col,
.fe7-four-col,
.fe7-match-hero {
  display: grid;
  gap: 16px;
}

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

.fe7-two-col,
.fe7-match-hero {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

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

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

.fe7-versus-row,
.fe7-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.fe7-versus-row.is-large {
  justify-content: flex-start;
}

.fe7-signal-row,
.fe7-metric-pair {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fe7-progress {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116, 140, 164, 0.22);
}

.fe7-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fe7-cyan), #42e6c1);
}

.fe7-stack {
  display: grid;
  gap: 16px;
}

.fe7-form-row b,
.fe7-form-row i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  font-style: normal;
}

.fe7-form-row b { background: rgba(25, 201, 120, 0.15); color: var(--fe7-green); }
.fe7-form-row i { background: rgba(255, 79, 88, 0.12); color: var(--fe7-red); }

.fe7-mover-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.fe7-mover-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--fe7-border);
  border-radius: 8px;
  padding: 10px;
}

.fe7-donut {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(#14c8e8 0 32%, #4c7df1 32% 58%, #ffbd55 58% 78%, #f35c4e 78% 100%);
}

.fe7-donut span {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--fe7-shell);
  color: var(--fe7-text);
  font-size: 30px;
  font-weight: 900;
}

.fe7-donut small {
  display: block;
  font-size: 11px;
  color: var(--fe7-muted);
}

.fe7-legend,
.fe7-broadcast-list {
  display: grid;
  gap: 8px;
  color: var(--fe7-muted);
}

.fe7-sparkline {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  height: 28px;
}

.fe7-sparkline i {
  width: 18px;
  border-radius: 999px;
  background: var(--fe7-cyan);
}

.fe7-sparkline i:nth-child(1) { height: 10px; }
.fe7-sparkline i:nth-child(2) { height: 15px; }
.fe7-sparkline i:nth-child(3) { height: 12px; }
.fe7-sparkline i:nth-child(4) { height: 21px; }
.fe7-sparkline i:nth-child(5) { height: 18px; }
.fe7-sparkline i:nth-child(6) { height: 24px; }
.fe7-sparkline.is-green i { background: var(--fe7-green); }
.fe7-sparkline.is-orange i { background: #ffad35; }
.fe7-sparkline.is-red i { background: var(--fe7-red); }
.fe7-sparkline.is-slate i { background: #7c93a8; }

.fe7-scoreboard {
  justify-content: space-around;
  min-height: 170px;
}

.fe7-score {
  font-size: 50px;
  color: var(--fe7-text);
}

.fe7-center-copy {
  text-align: center;
  color: var(--fe7-muted);
}

.fe7-line-chart {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(rgba(120, 160, 190, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 190, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
}

.fe7-wide-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.7fr 0.7fr 0.5fr;
}

@media (max-width: 1180px) {
  .nexus-app-frame,
  .nxp-board {
    grid-template-columns: 156px minmax(0, 1fr);
  }

  .site-header.nexus-top-header {
    grid-template-columns: auto minmax(220px, 1fr);
  }

  .site-header.nexus-top-header .nexus-top-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .fe7-stat-grid,
  .fe7-stat-grid-six,
  .fe7-market-grid,
  .fe7-four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nexus-feed-reference,
  .nxp-grid,
  .nexus-profile-grid,
  .nexus-profile-body-grid,
  .fe7-two-col,
  .fe7-three-col,
  .fe7-match-hero {
    grid-template-columns: 1fr;
  }

  .nexus-feed-center,
  .nexus-feed-rail-left,
  .nexus-feed-rail-right {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .site-header.nexus-top-header,
  .nexus-app-header {
    grid-template-columns: 1fr;
  }

  .site-header.nexus-top-header {
    min-height: 0;
    padding: 12px;
  }

  .nexus-top-actions,
  .nexus-header-nav,
  .nexus-header-actions {
    width: 100%;
  }

  .nexus-top-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nexus-header-nav {
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nexus-header-nav::-webkit-scrollbar {
    display: none;
  }

  .nexus-header-actions {
    justify-content: flex-end;
  }

  .nexus-profile-action-copy {
    display: none;
  }

  .nexus-profile-action {
    width: 38px;
    padding: 2px;
  }

  .nexus-app-frame,
  .nxp-board {
    width: min(100% - 12px, 100%);
    grid-template-columns: 1fr;
  }

  .nexus-sidebar {
    border-right: 0 !important;
    border-bottom: 1px solid var(--fe7-border) !important;
  }

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

  .nexus-main-stage,
  .nx-main,
  .nxp-main {
    padding: 16px;
  }

  .nxp-hero,
  .nx-profile-header,
  .fe7-page-head,
  .fe7-preview-topline,
  .fe7-toolbar,
  .fe7-premium-cta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .fe7-stat-grid,
  .fe7-stat-grid-six,
  .fe7-market-grid,
  .fe7-mover-grid,
  .fe7-trophy-row,
  .fe7-org-trophy-grid,
  .fe7-four-col {
    grid-template-columns: 1fr;
  }
}

/* FE-7.2 hard cleanup: route bodies now favor replacement over legacy skinning. */
.nexus-app-header,
.nxp-main > .nexus-app-header {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--fe7-border);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 255, 0.82));
  box-shadow: none;
}

:root[data-theme="night"] .nexus-app-header,
:root[data-theme="night"] .nxp-main > .nexus-app-header {
  background: linear-gradient(135deg, rgba(8, 31, 51, 0.9), rgba(7, 27, 44, 0.78));
}

.nexus-sidebar-link,
.nexus-sidebar-link-label,
.nexus-sidebar-user-copy strong,
.nexus-sidebar-user-copy span,
.fe7-logo-word {
  opacity: 1 !important;
}

:root[data-theme="night"] .nexus-sidebar-link {
  color: #dcecff !important;
}

:root[data-theme="night"] .nexus-sidebar-link:not(.is-active) .nexus-sidebar-link-label,
:root[data-theme="night"] .nexus-sidebar-user-copy strong,
:root[data-theme="night"] .fe7-logo-word {
  color: #f2f8ff !important;
}

:root[data-theme="night"] .nexus-sidebar-link:not(.is-active) svg,
:root[data-theme="night"] .nexus-sidebar-user-copy span,
:root[data-theme="night"] .fe7-logo-tagline {
  color: #9fb4cc !important;
}

:root:not([data-theme="night"]) .nexus-sidebar-link:not(.is-active),
:root:not([data-theme="night"]) .nexus-sidebar-user-copy strong,
:root:not([data-theme="night"]) .fe7-logo-word {
  color: #0b1735 !important;
}

.nexus-sidebar-search input,
.nexus-header-search input,
.fe7-inline-search input,
.fe7-watchlist-add-form input,
.fe7-watchlist-add-form select,
.fe7-watchlist-sort select {
  font-size: 13px;
}

.ui-placeholder::after,
.nxp-sidebar-link.ui-placeholder::after {
  content: none !important;
  display: none !important;
}

.nexus-tab--placeholder {
  opacity: 0.68;
}

.nexus-tab-soon,
.placeholder-chip {
  display: none !important;
}

.fe7-placeholder-notice {
  margin-bottom: 8px;
  white-space: normal;
}

.fe7-card,
.nexus-ref-panel,
.nexus-reference-card,
.route-module-card,
.nxp-module,
.nxp-rank-card,
.nexus-rank-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nxp-main {
  display: grid;
  align-content: start;
  gap: 18px;
}

.nxp-hero,
.nx-profile-header {
  color: var(--fe7-text) !important;
  background: linear-gradient(180deg, var(--fe7-surface), var(--fe7-surface-2)) !important;
}

:root[data-theme="night"] .nxp-hero,
:root[data-theme="night"] .nx-profile-header {
  background:
    radial-gradient(circle at 14% 0%, rgba(19, 200, 232, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(10, 35, 57, 0.86), rgba(7, 25, 42, 0.82)) !important;
}

:root[data-theme="night"] .nxp-rank-card,
:root[data-theme="night"] .nexus-rank-card {
  background: rgba(8, 26, 43, 0.76) !important;
}

.fe7-profile-preview-block {
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  align-items: start;
}

.fe7-profile-preview-block .fe7-placeholder-mini,
.fe7-trophy-row .fe7-placeholder-mini,
.fe7-org-trophy-grid .fe7-placeholder-mini,
.fe7-org-games .fe7-placeholder-mini,
.fe7-partner-grid .fe7-placeholder-mini {
  grid-column: 1 / -1;
}

.fe7-side-metrics div,
.fe7-table-row,
.fe7-form-row {
  min-width: 0;
}

.fe7-side-metrics dt,
.fe7-side-metrics dd,
.fe7-table-row > *,
.fe7-form-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nexus-org-reference .nx-profile-header {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 28px !important;
}

.nexus-org-reference .nx-profile-header-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 170px);
  align-items: center;
  gap: 28px;
}

.nexus-org-reference .nx-profile-identity {
  grid-column: auto !important;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.nexus-org-reference .nexus-rank-card strong {
  max-width: 100%;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.05;
}

.nexus-org-reference .nexus-profile-tabs {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--fe7-border);
}

.nexus-org-reference .nexus-profile-tabs .nexus-tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
}

.fe7-watchlist-page {
  display: grid;
  gap: 18px;
}

.fe7-watchlist-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 16px;
  align-items: start;
}

.fe7-watchlist-primary,
.fe7-watchlist-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.fe7-watchlist-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(190px, auto);
  gap: 12px;
  align-items: center;
}

.fe7-inline-search {
  position: relative;
  display: flex;
  align-items: center;
}

.fe7-inline-search svg {
  position: absolute;
  left: 12px;
  color: var(--fe7-muted);
  pointer-events: none;
}

.fe7-inline-search input,
.fe7-watchlist-sort select,
.fe7-watchlist-add-form input,
.fe7-watchlist-add-form select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--fe7-border);
  border-radius: 8px;
  background: var(--fe7-surface-2);
  color: var(--fe7-text);
}

.fe7-inline-search input {
  padding-left: 36px;
}

.fe7-watchlist-filters,
.fe7-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fe7-watchlist-filters button,
.fe7-range-tabs button {
  min-height: 32px;
  border: 1px solid var(--fe7-border);
  border-radius: 999px;
  background: var(--fe7-surface-2);
  color: var(--fe7-muted);
  font-size: 12px;
  font-weight: 800;
}

.fe7-watchlist-filters button.is-active,
.fe7-range-tabs button.is-active {
  border-color: var(--fe7-border-strong);
  color: var(--fe7-cyan);
  background: rgba(19, 200, 232, 0.12);
}

.fe7-watchlist-table {
  display: grid;
  gap: 0;
  min-width: 0;
}

.fe7-watchlist-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(94px, 0.7fr) minmax(105px, 0.7fr) minmax(180px, 1.2fr) minmax(110px, 0.8fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--fe7-border);
  background: transparent;
  color: var(--fe7-text);
  text-align: left;
}

.fe7-watchlist-row:not(.fe7-watchlist-row-head) {
  cursor: pointer;
}

.fe7-watchlist-row:not(.fe7-watchlist-row-head):hover,
.fe7-watchlist-row.is-selected {
  background: rgba(19, 200, 232, 0.06);
}

.fe7-watchlist-row-head {
  min-height: 34px;
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe7-watch-player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fe7-watch-player-cell strong,
.fe7-watch-player-cell small,
.fe7-watchlist-row span,
.fe7-watchlist-row small {
  min-width: 0;
}

.fe7-watch-player-cell small,
.fe7-watchlist-row small,
.fe7-alert-item p,
.fe7-watchlist-form-note {
  display: block;
  margin: 2px 0 0;
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-mini-trend {
  display: grid;
  grid-template-columns: repeat(4, 12px) auto;
  align-items: end;
  gap: 4px;
  color: var(--fe7-cyan);
}

.fe7-mini-trend span {
  display: block;
  width: 12px;
  border-radius: 999px;
  background: currentColor;
}

.fe7-mini-trend span:nth-child(1) { height: 8px; opacity: 0.55; }
.fe7-mini-trend span:nth-child(2) { height: 12px; opacity: 0.7; }
.fe7-mini-trend span:nth-child(3) { height: 16px; opacity: 0.85; }
.fe7-mini-trend span:nth-child(4) { height: 20px; }
.fe7-mini-trend.is-success { color: var(--fe7-green); }
.fe7-mini-trend.is-danger { color: var(--fe7-red); }
.fe7-mini-trend.is-muted { color: var(--fe7-muted); }

.fe7-alert-list,
.fe7-watchlist-add-form {
  display: grid;
  gap: 12px;
}

.fe7-alert-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fe7-border);
}

.fe7-alert-item time {
  color: var(--fe7-muted);
  font-size: 11px;
}

.fe7-watchlist-add-form label {
  display: grid;
  gap: 6px;
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 800;
}

.fe7-watchlist-add-form input,
.fe7-watchlist-add-form select {
  padding: 0 10px;
}

.fe7-watchlist-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fe7-watchlist-add-actions > * {
  flex: 1 1 120px;
}

.fe7-settings-page {
  display: grid;
  gap: 18px;
}

.fe7-settings-head {
  align-items: flex-start;
}

.fe7-settings-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fe7-settings-summary-card {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
}

:root[data-theme="night"] .fe7-settings-summary-card {
  background: linear-gradient(180deg, rgba(10, 38, 62, 0.94), rgba(7, 29, 47, 0.92));
}

.fe7-settings-summary-card span,
.fe7-settings-summary-card small {
  min-width: 0;
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
}

.fe7-settings-summary-card span {
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fe7-settings-summary-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--fe7-text);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe7-save-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(25, 201, 120, 0.22);
  border-radius: 999px;
  background: rgba(25, 201, 120, 0.08);
  color: var(--fe7-green);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.fe7-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.fe7-settings-card {
  min-width: 0;
}

.fe7-settings-profile {
  grid-row: span 2;
}

.settings-profile-setup-shell,
.settings-form,
.settings-form-grid,
.settings-choice-layout,
.provider-management-grid,
.provider-management-table,
.organization-management-panel,
.settings-organization-form,
.settings-org-list {
  min-width: 0;
}

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

.settings-form-span,
.settings-avatar-upload {
  grid-column: 1 / -1;
}

.settings-form-field,
.nexus-field,
.settings-choice-card,
.provider-management-card,
.organization-management-panel {
  border: 1px solid var(--fe7-border) !important;
  border-radius: 9px !important;
  background: var(--fe7-surface-2) !important;
}

.settings-form-field,
.nexus-field {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.settings-form-field > span,
.nexus-field label,
.settings-choice-card .eyebrow {
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.settings-form-field input,
.settings-form-field textarea,
.nexus-field input,
.nexus-field textarea,
.settings-organization-form input,
.settings-organization-form textarea {
  width: 100%;
  border: 1px solid var(--fe7-border) !important;
  border-radius: 8px !important;
  background: var(--fe7-surface) !important;
  color: var(--fe7-text) !important;
}

.settings-form-field textarea,
.nexus-field textarea,
.settings-organization-form textarea {
  min-height: 104px;
  resize: vertical;
}

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

.settings-avatar-preview-shell {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, var(--fe7-cyan), #1c4fff);
}

.settings-avatar-preview-shell > * {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.settings-choice-layout,
.provider-management-grid {
  display: grid;
  gap: 14px;
}

.settings-choice-card,
.provider-management-card {
  padding: 14px;
}

.settings-toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--fe7-border);
  border-radius: 999px;
  background: var(--fe7-surface);
}

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

.provider-management-table {
  display: grid;
  gap: 8px;
}

.provider-management-table-head,
.provider-management-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(110px, 0.7fr) minmax(180px, 1.4fr) minmax(150px, auto);
  gap: 10px;
  align-items: center;
}

.provider-management-table-head {
  padding: 0 10px 4px;
  color: var(--fe7-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.provider-management-row {
  padding: 12px;
}

.provider-management-card {
  display: grid;
  gap: 10px;
}

.provider-management-status-row,
.provider-management-identity-cell,
.provider-management-actions {
  min-width: 0;
}

.provider-management-status-row,
.provider-management-head,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.provider-management-status-row small,
.provider-management-identity-cell strong,
.provider-management-identity-cell p,
.provider-management-preview {
  min-width: 0;
}

.provider-management-status-row small {
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 750;
}

.provider-management-identity-cell {
  display: grid;
  gap: 4px;
}

.provider-management-identity-cell strong {
  overflow: hidden;
  color: var(--fe7-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-management-actions {
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .fe7-settings-grid,
  .provider-management-grid,
  .fe7-settings-summary-grid {
    grid-template-columns: 1fr;
  }

  .provider-management-table-head {
    display: none;
  }

  .provider-management-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .provider-management-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .fe7-watchlist-main,
  .nexus-org-reference .nx-profile-header-row,
  .nexus-org-reference .nx-profile-identity {
    grid-template-columns: 1fr;
  }

  .fe7-watchlist-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .fe7-watchlist-row,
  .fe7-watchlist-row-head {
    grid-template-columns: 1fr;
  }

  .fe7-watchlist-row-head {
    display: none;
  }

  .nxp-hero,
  .nx-profile-header {
    grid-template-columns: 1fr !important;
  }

  .fe7-profile-preview-block {
    grid-template-columns: 1fr;
  }
}

/* FE-7.2b player + organization hard replacement */
.fe7-player-profile-page,
.route-page-organization,
.fe7-org-settings-page {
  color: var(--fe7-text);
}

.fe7-player-profile-shell,
.route-page-organization,
.fe7-org-settings-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  min-width: 0;
}

.fe7-player-profile-shell {
  gap: 14px;
}

.fe7-profile-hero,
.fe7-org-hero {
  position: relative;
  display: grid !important;
  gap: 18px;
  min-height: 0;
  padding: 28px !important;
  overflow: hidden;
  border: 1px solid var(--fe7-border) !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 200, 232, 0.11), transparent 31%),
    linear-gradient(180deg, var(--fe7-surface), var(--fe7-surface-2)) !important;
  box-shadow: none !important;
}

:root[data-theme="night"] .fe7-profile-hero,
:root[data-theme="night"] .fe7-org-hero {
  background:
    radial-gradient(circle at 13% 0%, rgba(19, 200, 232, 0.16), transparent 33%),
    linear-gradient(135deg, rgba(10, 35, 57, 0.92), rgba(7, 25, 42, 0.86)) !important;
}

.fe7-profile-hero {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 170px) !important;
  grid-template-areas:
    "identity rank"
    "actions actions"
    "message message" !important;
  align-items: start !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--fe7-border) !important;
}

.fe7-profile-identity-block,
.fe7-org-identity-block {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.fe7-profile-hero,
.fe7-profile-hero *,
.fe7-org-hero,
.fe7-org-hero *,
.fe7-player-overview-grid,
.fe7-player-overview-grid *,
.fe7-org-grid,
.fe7-org-grid * {
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.fe7-profile-identity-block {
  grid-area: identity;
}

.fe7-profile-avatar,
.fe7-org-avatar {
  width: 132px !important;
  height: 132px !important;
  padding: 3px !important;
  border: 2px solid var(--fe7-cyan) !important;
  background: linear-gradient(135deg, rgba(19, 200, 232, 0.95), rgba(18, 69, 109, 0.35)) !important;
  box-shadow: 0 0 0 5px rgba(19, 200, 232, 0.08) !important;
  flex: 0 0 auto;
}

.fe7-org-avatar {
  border-color: rgba(255, 255, 255, 0.86) !important;
}

.fe7-profile-avatar .profile-avatar-image,
.fe7-profile-avatar .profile-avatar-fallback,
.fe7-org-avatar .profile-avatar-image,
.fe7-org-avatar .profile-avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid var(--fe7-shell);
  border-radius: inherit;
}

:root[data-theme="night"] .fe7-profile-avatar .profile-avatar-image,
:root[data-theme="night"] .fe7-profile-avatar .profile-avatar-fallback,
:root[data-theme="night"] .fe7-org-avatar .profile-avatar-image,
:root[data-theme="night"] .fe7-org-avatar .profile-avatar-fallback {
  border-color: #061827;
}

.fe7-profile-copy,
.fe7-org-copy,
.fe7-profile-copy > *,
.fe7-org-copy > * {
  min-width: 0;
}

.fe7-profile-eyebrow {
  margin: 0 0 6px;
  color: var(--fe7-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe7-profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fe7-profile-title,
.fe7-org-hero .nx-profile-name {
  margin: 0;
  color: var(--fe7-text) !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
}

.fe7-profile-verified {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #168fff;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 143, 255, 0.14);
}

.fe7-profile-subtitle,
.fe7-org-hero .nx-profile-subtitle {
  margin: 5px 0 0;
  color: var(--fe7-muted) !important;
  font-size: 15px;
  font-weight: 650;
}

.fe7-profile-bio,
.fe7-org-summary {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--fe7-muted) !important;
  font-size: 14px;
  line-height: 1.6;
}

.fe7-profile-chip-row,
.fe7-profile-social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.fe7-profile-chip,
.fe7-provider-chip,
.fe7-profile-source {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--fe7-border);
  border-radius: 999px;
  background: var(--fe7-surface-2);
  color: var(--fe7-muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.fe7-provider-chip.is-faceit {
  border-color: rgba(255, 138, 42, 0.34);
  background: rgba(255, 138, 42, 0.1);
  color: #ff8a2a;
}

.fe7-social-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--fe7-border);
  border-radius: 999px;
  background: var(--fe7-surface-2);
  color: var(--fe7-text);
  text-decoration: none;
}

.fe7-social-icon:hover,
.fe7-social-icon:focus-visible {
  border-color: var(--fe7-border-strong);
  color: var(--fe7-cyan);
}

.fe7-profile-rank-card,
.fe7-org-summary-card {
  grid-area: rank;
  align-self: stretch;
  min-height: 138px;
  display: grid !important;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--fe7-border) !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.42) !important;
  text-align: center;
}

:root[data-theme="night"] .fe7-profile-rank-card,
:root[data-theme="night"] .fe7-org-summary-card {
  background: rgba(5, 22, 38, 0.55) !important;
}

.fe7-profile-rank-label,
.fe7-org-summary-card span {
  color: var(--fe7-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe7-profile-rank-value,
.fe7-org-summary-card strong {
  color: var(--fe7-text);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.fe7-profile-rank-region,
.fe7-org-summary-card small {
  color: var(--fe7-muted);
  font-size: 12px;
  line-height: 1.35;
}

.fe7-profile-actions,
.fe7-org-actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.fe7-profile-actions {
  grid-area: actions;
}

.fe7-profile-shell-notice {
  margin: 0 !important;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--fe7-text);
  padding: 10px 12px;
  font-weight: 750;
}

.fe7-profile-actions .solid-button,
.fe7-profile-actions .ghost-button,
.fe7-org-actions .solid-button,
.fe7-org-actions .ghost-button,
.fe7-org-actions .nexus-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 126px;
  min-height: 38px;
  padding: 0 16px;
}

.fe7-profile-action-message {
  grid-area: message;
  margin: 0;
  justify-self: end;
}

.fe7-player-profile-shell .nxp-tabs,
.fe7-org-tabs {
  min-height: 48px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  background: var(--fe7-surface);
}

.fe7-player-profile-shell .nxp-tabs::-webkit-scrollbar,
.fe7-org-tabs::-webkit-scrollbar {
  display: none;
}

.fe7-player-profile-shell .nxp-tab,
.fe7-player-profile-shell .analytics-section-link,
.fe7-org-tabs .nexus-tab {
  flex: 0 0 auto;
  min-width: 86px;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.fe7-player-overview-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 16px !important;
  overflow: visible !important;
}

.fe7-player-overview-grid > .nxp-module {
  min-height: 0;
}

.fe7-player-overview-wide {
  grid-column: 1 / -1;
}

.fe7-player-overview-grid .nxp-history-module,
.fe7-player-trophies-module,
.fe7-player-heatmap-module,
.fe7-player-post-module {
  grid-column: span 6;
}

.fe7-player-links-module,
.fe7-player-name-history-module {
  grid-column: span 6;
}

.fe7-player-overview-wide .nxp-about-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}

.fe7-player-overview-wide .nxp-about-row {
  display: grid;
  grid-template-columns: 1fr !important;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px;
  border-right: 1px solid var(--fe7-border);
  border-bottom: 0;
}

.fe7-player-overview-wide .nxp-about-row:last-child {
  border-right: 0;
}

.fe7-player-overview-wide .nxp-about-row dt,
.nexus-about-row dt {
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe7-player-overview-wide .nxp-about-row dd,
.nexus-about-row dd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0 0;
  color: var(--fe7-text);
  font-weight: 800;
}

.fe7-player-overview-wide .nxp-about-row dd {
  display: block;
  max-width: 100%;
  margin: 0;
  white-space: normal;
  line-height: 1.35;
}

.fe7-player-overview-grid .nexus-ref-panel,
.fe7-org-grid .nexus-ref-panel,
.fe7-org-settings-card {
  background: var(--fe7-surface) !important;
  border-color: var(--fe7-border) !important;
  box-shadow: none !important;
}

:root[data-theme="night"] .fe7-player-overview-grid .nexus-ref-panel,
:root[data-theme="night"] .fe7-org-grid .nexus-ref-panel,
:root[data-theme="night"] .fe7-org-settings-card {
  background: linear-gradient(180deg, rgba(10, 35, 57, 0.72), rgba(7, 28, 45, 0.66)) !important;
}

.fe7-org-profile {
  gap: 16px !important;
}

.fe7-org-profile.nexus-org-reference .fe7-org-hero {
  display: grid !important;
  grid-template-columns: 1fr;
  padding: 28px !important;
}

.fe7-org-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 170px);
  align-items: stretch;
  gap: 28px;
}

.fe7-org-actions {
  padding-top: 2px;
}

.fe7-org-action-stack {
  display: grid;
  gap: 8px;
}

.fe7-org-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fe7-org-grid {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.2fr) minmax(260px, 0.85fr) !important;
  gap: 16px !important;
}

.fe7-org-col > div,
.fe7-org-panel {
  min-width: 0;
}

.fe7-org-col > div {
  display: grid;
  gap: 16px;
}

.fe7-org-panel {
  padding: 16px;
}

.fe7-org-panel > h3 {
  margin-bottom: 14px;
}

.fe7-org-panel .nexus-about-list {
  gap: 0;
}

.fe7-org-panel .nexus-link-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fe7-org-panel .nexus-link-list a {
  color: var(--fe7-cyan);
  font-weight: 800;
  text-decoration: none;
}

.fe7-org-settings-page {
  display: grid;
  gap: 16px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fe7-org-settings-head,
.fe7-org-settings-actions,
.fe7-org-settings-form {
  min-width: 0;
}

.fe7-org-settings-head {
  padding: 20px;
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  background: var(--fe7-surface);
}

.fe7-org-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  gap: 16px;
  align-items: start;
}

.fe7-org-settings-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  padding: 16px;
}

.fe7-org-settings-card:not(.fe7-org-settings-side) {
  grid-column: 1;
}

.fe7-org-settings-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-content: start;
}

.fe7-org-settings-side strong {
  color: var(--fe7-text);
  font-size: 18px;
}

.fe7-org-settings-side .solid-button {
  width: 100%;
}

.fe7-org-settings-card .fe7-card-header {
  padding: 0 !important;
}

.fe7-org-settings-card .settings-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fe7-org-settings-card .settings-form-field {
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}

@media (max-width: 1180px) {
  .fe7-profile-hero,
  .fe7-org-hero-main,
  .fe7-org-grid,
  .fe7-org-settings-grid {
    grid-template-columns: 1fr !important;
  }

  .fe7-profile-hero {
    grid-template-areas:
      "identity"
      "rank"
      "actions"
      "message" !important;
  }

  .fe7-org-settings-card,
  .fe7-org-settings-side {
    grid-column: auto;
    grid-row: auto;
  }

  .fe7-profile-actions,
  .fe7-org-actions,
  .fe7-profile-action-message {
    justify-self: stretch;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .fe7-profile-hero,
  .fe7-org-hero {
    padding: 18px !important;
  }

  .fe7-profile-identity-block,
  .fe7-org-identity-block {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .fe7-profile-chip-row,
  .fe7-profile-social-row,
  .fe7-profile-actions,
  .fe7-org-actions,
  .fe7-org-action-row {
    justify-content: center;
  }

  .fe7-player-overview-grid {
    grid-template-columns: 1fr !important;
  }

  .fe7-player-overview-grid > .nxp-module,
  .fe7-player-overview-grid .nxp-history-module,
  .fe7-player-trophies-module,
  .fe7-player-heatmap-module,
  .fe7-player-post-module,
  .fe7-player-links-module,
  .fe7-player-name-history-module {
    grid-column: 1 / -1;
  }

  .fe7-player-overview-wide .nxp-about-list,
  .fe7-org-settings-card .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .fe7-player-overview-wide .nxp-about-row {
    border-right: 0;
    border-bottom: 1px solid var(--fe7-border);
  }
}

@media (max-width: 760px) {
  body .nxp-board,
  body .nexus-app-frame {
    width: calc(100% - 12px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .nxp-main,
  body .nexus-main-stage,
  body .nx-main {
    min-width: 0 !important;
    padding: 14px !important;
  }

  body .nexus-sidebar {
    min-width: 0 !important;
    min-height: auto !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--fe7-border) !important;
  }

  body .nexus-sidebar-inner {
    min-height: auto !important;
    padding: 18px 14px !important;
  }

  body .fe7-profile-hero {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* FE-7.2c feed + watchlist hard replacement */
.route-page-feed.fe7-feed-page {
  grid-template-columns: minmax(0, 1fr) minmax(286px, 318px) !important;
  gap: 18px;
}

.route-page-feed .fe7-feed-center {
  gap: 16px;
  min-width: 0;
}

.route-page-feed .fe7-feed-composer-card,
.route-page-feed .social-post-card,
.route-page-feed .nexus-ref-panel {
  border: 1px solid var(--fe7-border) !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 200, 232, 0.08), transparent 32%),
    var(--fe7-surface) !important;
  box-shadow: none !important;
}

:root[data-theme="night"] .route-page-feed .fe7-feed-composer-card,
:root[data-theme="night"] .route-page-feed .social-post-card,
:root[data-theme="night"] .route-page-feed .nexus-ref-panel {
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 200, 232, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(10, 35, 57, 0.72), rgba(7, 25, 42, 0.72)) !important;
}

.route-page-feed .fe7-feed-composer-card {
  display: grid;
  gap: 14px;
  padding: 18px !important;
}

.fe7-feed-composer-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.fe7-feed-composer-copy {
  margin: 4px 0 0;
  color: var(--fe7-muted);
  font-size: 13px;
  line-height: 1.45;
}

.route-page-feed .nexus-feed-composer-actions {
  justify-content: flex-end;
  max-width: 360px;
}

.route-page-feed .nexus-composer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px !important;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.fe7-feed-composer-form,
.fe7-feed-reply-form {
  display: grid;
  gap: 10px;
}

.fe7-feed-composer-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.fe7-feed-composer-avatar {
  width: 46px;
  height: 46px;
  border: 2px solid var(--fe7-cyan);
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(135deg, #0b1735, var(--fe7-cyan));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.fe7-feed-composer-entry textarea,
.fe7-feed-reply-entry textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  border: 1px solid var(--fe7-border);
  border-radius: 9px;
  background: var(--fe7-surface-2);
  color: var(--fe7-text);
  padding: 13px 14px;
  font: inherit;
  line-height: 1.5;
}

.fe7-feed-reply-entry {
  display: grid;
  gap: 8px;
  color: var(--fe7-muted);
  font-size: 12px;
  font-weight: 800;
}

.fe7-feed-reply-entry textarea {
  min-height: 84px;
}

.fe7-feed-composer-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-feed-post-button {
  min-width: 94px;
}

.fe7-feed-auth-lock {
  border-radius: 9px;
  background: var(--fe7-surface-2);
}

.route-page-feed .feed-post-list {
  gap: 14px;
}

.route-page-feed .social-post-card {
  display: grid;
  gap: 14px;
  padding: 18px !important;
}

.route-page-feed .profile-mini-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(19, 200, 232, 0.36);
}

.route-page-feed .profile-mini-avatar.is-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0c7da5, #13c8e8);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.route-page-feed .feed-author-name {
  color: var(--fe7-text);
  font-weight: 900;
  text-decoration: none;
}

.route-page-feed .social-author-meta,
.route-page-feed .social-post-time {
  margin: 2px 0 0;
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-feed-post-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fe7-muted);
}

.route-page-feed .social-post-body {
  margin: 0;
  color: var(--fe7-text);
  font-size: 15px;
  line-height: 1.55;
}

.route-page-feed .social-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.route-page-feed .fe7-feed-action-button {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px !important;
  border-radius: 8px !important;
  font-size: 12px;
  font-weight: 850;
}

.route-page-feed .fe7-feed-action-button.is-active {
  border-color: rgba(19, 200, 232, 0.55) !important;
  color: var(--fe7-cyan) !important;
  background: rgba(19, 200, 232, 0.12) !important;
}

.route-page-feed .social-replies-shell,
.route-page-feed .social-reply-children {
  display: grid;
  gap: 12px;
}

.route-page-feed .social-replies-shell {
  padding-top: 14px;
  border-top: 1px solid var(--fe7-border);
}

.route-page-feed .social-reply-list {
  display: grid;
  gap: 10px;
}

.route-page-feed .social-reply-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--fe7-border);
  border-radius: 9px;
  background: rgba(19, 200, 232, 0.04);
}

.route-page-feed .social-reply-card.is-nested {
  margin-left: 20px;
}

.route-page-feed .social-card-preview {
  border: 1px solid var(--fe7-border);
  border-radius: 9px;
  background: var(--fe7-surface-2);
  padding: 13px;
}

.route-page-feed .nexus-follow-list,
.route-page-feed .nexus-live-match-list {
  display: grid;
  gap: 10px;
}

.route-page-feed .nexus-follow-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fe7-border);
}

.route-page-feed .nexus-follow-copy strong,
.route-page-feed .nexus-live-match-card strong {
  color: var(--fe7-text);
}

.route-page-feed .nexus-follow-copy p {
  margin: 2px 0 0;
  color: var(--fe7-muted);
  font-size: 12px;
}

.route-page-feed .nexus-follow-button {
  min-height: 31px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(19, 200, 232, 0.45);
  border-radius: 8px;
  color: var(--fe7-cyan);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.route-page-feed .nexus-live-match-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--fe7-border);
  border-radius: 9px;
  background: var(--fe7-surface-2);
}

.route-page-feed .nexus-live-match-label {
  margin: 0;
  color: var(--fe7-cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fe7-watchlist-preview-banner {
  border-color: rgba(201, 143, 43, 0.42) !important;
}

.fe7-watchlist-spotlight-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: start;
}

.fe7-watchlist-spotlight-player {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
}

.fe7-player-portrait.is-large {
  width: 62px;
  height: 62px;
  font-size: 18px;
}

.fe7-watchlist-spotlight-player strong {
  display: block;
  color: var(--fe7-text);
  font-size: 20px;
  line-height: 1.15;
}

.fe7-watchlist-spotlight-player p,
.fe7-watchlist-spotlight-note {
  margin: 4px 0 8px;
  color: var(--fe7-muted);
  font-size: 13px;
  line-height: 1.45;
}

.fe7-watchlist-spotlight-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.fe7-watchlist-spotlight-metrics div {
  min-width: 0;
  border: 1px solid var(--fe7-border);
  border-radius: 9px;
  background: var(--fe7-surface-2);
  padding: 10px;
}

.fe7-watchlist-spotlight-metrics dt {
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fe7-watchlist-spotlight-metrics dd {
  margin: 4px 0 0;
  color: var(--fe7-text);
  font-size: 17px;
  font-weight: 900;
}

.fe7-watchlist-spotlight-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--fe7-border);
}

.fe7-watchlist-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fe7-watchlist-player-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  background: var(--fe7-surface-2);
}

.fe7-watchlist-player-card.is-selected {
  border-color: rgba(19, 200, 232, 0.58);
  box-shadow: 0 0 0 1px rgba(19, 200, 232, 0.18);
}

.fe7-watchlist-player-main {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.fe7-watchlist-player-copy {
  min-width: 0;
}

.fe7-watchlist-player-copy strong {
  display: block;
  color: var(--fe7-text);
  font-size: 14px;
}

.fe7-watchlist-player-copy small,
.fe7-watchlist-player-meta small {
  display: block;
  color: var(--fe7-muted);
  font-size: 11px;
}

.fe7-watchlist-player-meta {
  display: grid;
  grid-template-columns: minmax(76px, 0.4fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.fe7-watchlist-player-meta strong,
.fe7-watchlist-player-meta em {
  display: block;
  min-width: 0;
  color: var(--fe7-text);
  font-size: 13px;
  font-style: normal;
}

.fe7-watchlist-player-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fe7-watchlist-player-actions > * {
  flex: 1 1 118px;
  min-height: 32px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.fe7-card-action-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

@media (max-width: 1120px) {
  .route-page-feed.fe7-feed-page,
  .fe7-watchlist-spotlight-grid,
  .fe7-watchlist-player-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .fe7-feed-composer-head,
  .fe7-feed-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .route-page-feed .nexus-feed-composer-actions {
    justify-content: flex-start;
  }

  .fe7-feed-composer-entry,
  .fe7-watchlist-player-main,
  .fe7-watchlist-player-meta,
  .fe7-watchlist-spotlight-metrics {
    grid-template-columns: 1fr;
  }

  .route-page-feed .social-reply-card.is-nested {
    margin-left: 0;
  }
}

/* FE-7 coordinated route drafts: inbox, settings, and preview route unification. */
.fe7-inbox-hero,
.fe7-inbox-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--fe7-border);
  border-radius: 12px;
  padding: 18px;
  background: var(--fe7-surface);
}

.fe7-inbox-toolbar {
  align-items: center;
  padding: 12px 14px;
}

.fe7-route-kicker,
.fe7-settings-card-kicker,
.fe7-preview-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fe7-cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe7-inbox-hero h1,
.fe7-inbox-toolbar h1,
.fe7-settings-profile-name {
  margin: 6px 0 4px;
  color: var(--fe7-text);
  line-height: 1.08;
}

.fe7-inbox-hero p,
.fe7-inbox-toolbar p,
.fe7-settings-profile-summary p {
  margin: 0;
}

.fe7-inbox-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.fe7-inbox-shell {
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr) minmax(250px, 300px) !important;
  gap: 16px;
}

.fe7-inbox-sidebar,
.fe7-inbox-main,
.fe7-inbox-detail-rail {
  padding: 0 !important;
  overflow: hidden;
}

.fe7-inbox-conversations {
  max-height: none !important;
  padding: 0 !important;
  gap: 0 !important;
}

.fe7-inbox-list-head,
.fe7-inbox-tabs,
.fe7-inbox-search {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--fe7-border);
}

.fe7-inbox-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fe7-inbox-list-head h2 {
  margin: 3px 0 0;
  color: var(--fe7-text);
  font-size: 18px;
}

.fe7-inbox-tabs {
  display: flex;
  gap: 8px;
}

.fe7-inbox-tab {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--fe7-border);
  border-radius: 999px;
  padding: 0 11px;
  background: transparent;
  color: var(--fe7-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.fe7-inbox-tab.is-active {
  border-color: rgba(19, 200, 232, 0.42);
  background: rgba(19, 200, 232, 0.11);
  color: var(--fe7-cyan);
}

.fe7-inbox-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.fe7-inbox-search input {
  width: 100%;
  border: 1px solid var(--fe7-border);
  border-radius: 8px;
  background: var(--fe7-surface-2);
  color: var(--fe7-text);
}

.fe7-inbox-list-body {
  display: grid;
  gap: 10px;
  max-height: clamp(420px, 66vh, 760px);
  overflow: auto;
  padding: 12px;
}

.fe7-inbox-conversation-row {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 11px !important;
  border-radius: 10px !important;
  padding: 12px !important;
  background: var(--fe7-surface-2) !important;
}

.fe7-inbox-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b4c75, #13c8e8);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.fe7-inbox-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fe7-inbox-main .inbox-thread-shell {
  min-height: clamp(540px, 72vh, 850px);
  padding: 18px;
}

.fe7-inbox-main .inbox-thread-head {
  border-color: var(--fe7-border);
}

.fe7-inbox-main .inbox-message-row {
  align-items: flex-end;
  gap: 9px;
}

.fe7-inbox-main .inbox-message-bubble,
.fe7-inbox-empty-card {
  background: var(--fe7-surface-2) !important;
  border-color: var(--fe7-border) !important;
}

.fe7-inbox-main .inbox-message-bubble.is-own {
  background: linear-gradient(135deg, rgba(19, 200, 232, 0.22), rgba(25, 82, 124, 0.2)) !important;
}

.fe7-inbox-composer-form {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.fe7-inbox-detail-rail {
  align-self: stretch;
}

.fe7-inbox-aside-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.fe7-inbox-aside-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.fe7-inbox-aside-identity .profile-mini-avatar {
  width: 70px;
  height: 70px;
  border: 2px solid rgba(19, 200, 232, 0.42);
}

.fe7-inbox-aside-identity strong {
  display: block;
  color: var(--fe7-text);
  font-size: 17px;
  line-height: 1.15;
}

.fe7-inbox-aside-identity p {
  margin: 4px 0 0;
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-inbox-aside-actions {
  display: grid;
  gap: 8px;
}

.fe7-inbox-detail-list,
.fe7-inbox-aside-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  background: var(--fe7-surface-2);
  overflow: hidden;
}

.fe7-inbox-detail-list > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--fe7-border);
}

.fe7-inbox-detail-list > div:last-child {
  border-bottom: 0;
}

.fe7-inbox-detail-list dt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fe7-inbox-detail-list dd {
  margin: 0;
  color: var(--fe7-text);
  font-size: 13px;
  font-weight: 750;
}

.fe7-inbox-aside-card {
  gap: 8px;
  padding: 14px;
}

.fe7-settings-card-kicker {
  margin-bottom: 12px;
}

.fe7-settings-org-kicker {
  align-self: end;
  margin: 0 0 -6px;
}

.fe7-settings-profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.fe7-settings-profile-avatar {
  width: 76px;
  height: 76px;
}

.fe7-settings-profile-form,
.fe7-settings-org-grid,
.fe7-settings-orgs,
.fe7-settings-create-org {
  min-width: 0;
}

.fe7-settings-org-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.fe7-settings-form-actions {
  padding-top: 4px;
}

.fe7-settings-preferences,
.fe7-settings-account-state {
  display: grid;
  gap: 12px;
}

.fe7-settings-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fe7-settings-mini-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  padding: 14px;
  background: var(--fe7-surface-2);
}

.fe7-settings-mini-card span {
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fe7-settings-mini-card strong {
  color: var(--fe7-text);
  font-size: 18px;
  line-height: 1.15;
}

.fe7-settings-mini-card p {
  margin: 0;
  color: var(--fe7-muted);
  font-size: 12px;
  line-height: 1.5;
}

.fe7-preview-route {
  gap: 18px;
}

.fe7-preview-head {
  align-items: flex-start;
}

.fe7-preview-title-row {
  margin-bottom: 7px;
}

.fe7-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fe7-status-strip article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--fe7-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 200, 232, 0.08), rgba(201, 143, 43, 0.07)),
    var(--fe7-surface-2);
}

.fe7-status-strip strong {
  color: var(--fe7-text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fe7-status-strip span {
  color: var(--fe7-muted);
  font-size: 12px;
  line-height: 1.35;
}

.fe7-pending-value {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(201, 143, 43, 0.42);
  border-radius: 999px;
  background: rgba(201, 143, 43, 0.1);
  color: var(--fe7-gold);
  font-size: 13px;
  font-weight: 900;
}

.fe7-slot-label {
  width: fit-content;
  border: 1px solid var(--fe7-border);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--fe7-surface-2);
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fe7-placeholder-notice {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(201, 143, 43, 0.45);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(201, 143, 43, 0.09);
  color: var(--fe7-gold);
  font-size: 12px;
  font-weight: 850;
}

.fe7-placeholder-notice.is-compact {
  padding: 4px 8px;
  font-size: 11px;
}

.fe7-preview-route .fe7-head-action[disabled],
.fe7-preview-route button[disabled] {
  cursor: not-allowed;
}

.fe7-team-logo.is-large {
  min-width: 68px;
  height: 48px;
  font-size: 16px;
}

.fe7-versus-row > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.fe7-versus-row.is-large > div {
  justify-items: start;
}

.fe7-versus-row > span {
  color: var(--fe7-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fe7-preview-route .fe7-card-kicker,
.fe7-preview-route .nexus-badge {
  width: fit-content;
}

.fe7-preview-route .fe7-table-row,
.fe7-preview-route .fe7-form-row,
.fe7-preview-route .fe7-signal-row,
.fe7-preview-route .fe7-metric-pair {
  align-items: center;
  min-width: 0;
}

.fe7-preview-route .fe7-signal-row {
  grid-template-columns: minmax(88px, 1fr) auto;
}

.fe7-preview-route .fe7-signal-row span:last-child {
  grid-column: 1 / -1;
}

.fe7-preview-route .fe7-signal-row span,
.fe7-preview-route .fe7-signal-row strong {
  overflow-wrap: normal;
  word-break: normal;
}

.fe7-preview-route .fe7-table-row > *,
.fe7-preview-route .fe7-form-row > * {
  min-width: 0;
}

.fe7-preview-route .fe7-score {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

@media (max-width: 1120px) {
  .fe7-inbox-shell,
  .fe7-settings-grid {
    grid-template-columns: 1fr !important;
  }

  .fe7-watchlist-spotlight-metrics,
  .fe7-wide-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .fe7-inbox-hero,
  .fe7-inbox-toolbar,
  .fe7-inbox-hero-actions,
  .fe7-settings-profile-summary,
  .fe7-settings-mini-grid,
  .fe7-settings-summary-grid,
  .fe7-status-strip,
  .fe7-versus-row,
  .fe7-metric-pair,
  .fe7-signal-row,
  .fe7-wide-row {
    grid-template-columns: 1fr !important;
  }

  .fe7-inbox-hero,
  .fe7-inbox-toolbar,
  .fe7-inbox-hero-actions {
    display: grid;
  }

  .fe7-versus-row {
    display: grid;
    justify-items: center;
  }

  .fe7-inbox-main .inbox-thread-shell {
    min-height: 0;
    padding: 14px;
  }

  .fe7-inbox-main .inbox-message-stack {
    max-width: min(100%, 560px);
  }

  .fe7-inbox-conversation-row {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .fe7-watchlist-spotlight-metrics,
  .fe7-wide-row {
    grid-template-columns: 1fr;
  }
}

/* NEXUS-FIDELITY-1b: honest skeleton structures for reference-like empty states. */
.nexus-feed-empty-state {
  display: grid !important;
  gap: 12px !important;
  min-height: clamp(330px, 31vw, 460px) !important;
  padding: 16px !important;
  align-content: start !important;
}

.fe7-feed-empty-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fe7-feed-empty-author > div {
  display: grid;
  gap: 2px;
}

.fe7-feed-empty-media {
  position: relative;
  min-height: clamp(180px, 18vw, 270px);
  border: 1px solid color-mix(in srgb, var(--nexus-cyan) 18%, var(--nexus-border));
  border-radius: var(--nxf-card-radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nexus-cyan) 14%, transparent), transparent 42%),
    radial-gradient(circle at 72% 36%, color-mix(in srgb, var(--nexus-blue) 18%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--nexus-surface-active) 74%, transparent), var(--nexus-chart-surface));
}

.fe7-feed-empty-media::before,
.fe7-feed-empty-media::after,
.fe7-feed-empty-media span {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: color-mix(in srgb, var(--nexus-cyan) 62%, transparent);
}

.fe7-feed-empty-media::before {
  left: 18px;
  right: 18px;
  bottom: 28px;
  height: 8px;
  opacity: 0.52;
}

.fe7-feed-empty-media::after {
  left: 18px;
  width: 46%;
  bottom: 48px;
  height: 8px;
  opacity: 0.78;
}

.fe7-feed-empty-media span {
  width: 64px;
  height: 64px;
  left: calc(50% - 32px);
  top: calc(50% - 32px);
  opacity: 0.16;
}

.fe7-inbox-guest-grid {
  grid-template-columns: minmax(230px, 0.72fr) minmax(420px, 1.36fr) minmax(230px, 0.72fr) !important;
  align-items: stretch !important;
}

.fe7-inbox-guest-grid .route-module-card {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  min-height: clamp(250px, 24vw, 360px) !important;
}

.fe7-inbox-guest-thread-card {
  min-height: clamp(330px, 30vw, 460px) !important;
}

.fe7-inbox-thread-skeleton,
.fe7-inbox-message-skeleton,
.fe7-inbox-profile-skeleton,
.settings-auth-skeleton,
.settings-auth-provider-skeleton {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.fe7-inbox-thread-skeleton span,
.fe7-inbox-message-skeleton span,
.fe7-inbox-profile-skeleton span,
.settings-auth-skeleton span,
.settings-auth-provider-skeleton span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--nexus-cyan) 24%, var(--nexus-surface-active)), color-mix(in srgb, var(--nexus-surface-raised) 84%, transparent));
}

.fe7-inbox-thread-skeleton span {
  height: 42px;
  border-radius: 8px;
}

.fe7-inbox-message-skeleton span {
  width: 76%;
  height: 44px;
  border-radius: 10px;
}

.fe7-inbox-message-skeleton span:nth-child(2) {
  justify-self: end;
  width: 62%;
}

.fe7-inbox-message-skeleton span:nth-child(3) {
  width: 84%;
}

.fe7-inbox-profile-skeleton span {
  height: 10px;
}

.fe7-inbox-profile-skeleton span:first-child {
  width: 56px;
  height: 56px;
  border-radius: 999px;
}

.settings-auth-preview-grid {
  grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.15fr) minmax(260px, 0.9fr) !important;
}

.settings-auth-preview-card {
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  min-height: clamp(210px, 19vw, 300px) !important;
}

.settings-auth-provider-skeleton {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-auth-skeleton span {
  height: 12px;
}

.settings-auth-skeleton span:nth-child(1) {
  width: 74%;
}

.settings-auth-skeleton span:nth-child(2) {
  width: 92%;
}

.settings-auth-skeleton span:nth-child(3) {
  width: 52%;
}

.settings-auth-provider-skeleton span {
  min-height: 54px;
  border-radius: 8px;
}

.inbox-route-guest-mount .placeholder-hero,
.nexus-settings-reference:not(.fe7-settings-page) .placeholder-hero {
  min-height: clamp(520px, 54vw, 720px) !important;
}

.inbox-route-guest-mount .nexus-ref-panel-body,
.nexus-settings-reference:not(.fe7-settings-page) .nexus-ref-panel-body {
  display: grid !important;
  gap: 14px !important;
}

.route-page-feed .fe7-feed-right-rail > .nexus-ref-panel,
.route-page-feed .fe7-feed-right-rail > .ui-placeholder {
  min-height: 150px !important;
}

.fe7-player-overview-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.78fr) minmax(300px, 0.78fr) !important;
  gap: var(--nxf-page-gap) !important;
}

.fe7-player-overview-wide,
.nxp-history-module {
  grid-column: auto !important;
}

.fe7-player-heatmap-module,
.fe7-player-post-module {
  min-height: 260px !important;
}

.fe7-trophy-row {
  min-height: 210px !important;
}

.route-page-organization .fe7-org-empty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.route-page-organization .fe7-org-panel {
  min-height: 170px !important;
}

.fe7-preview-route .fe7-preview-chart-shell {
  min-height: clamp(260px, 22vw, 350px) !important;
}

.fe7-preview-route .fe7-status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1100px) {
  .fe7-inbox-guest-grid,
  .settings-auth-preview-grid,
  .fe7-player-overview-grid,
  .route-page-organization .fe7-org-empty-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .nexus-feed-empty-state,
  .fe7-inbox-guest-grid .route-module-card,
  .settings-auth-preview-card {
    min-height: 0 !important;
  }

  .fe7-feed-empty-media {
    min-height: 170px;
  }

  .fe7-preview-route .fe7-status-strip {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* NEXUS-FIDELITY-1: mockup-canvas sizing, true day mode, and denser data-board rhythm. */
:root {
  --nxf-route-max: 1496px;
  --nxf-profile-max: 1502px;
  --nxf-sidebar-desktop: clamp(176px, 10.8vw, 194px);
  --nxf-main-pad: clamp(14px, 1.05vw, 20px);
  --nxf-card-radius: 8px;
  --nxf-page-gap: clamp(10px, 0.8vw, 14px);
  --nxf-panel-pad: clamp(12px, 0.95vw, 16px);
  --nxf-day-bg: #eef3f8;
  --nxf-day-shell: #f7fafc;
  --nxf-day-surface: #ffffff;
  --nxf-day-raised: #f5f8fb;
  --nxf-day-active: #e9f2f8;
  --nxf-day-line: #cfdae5;
  --nxf-day-line-strong: #8fa6ba;
  --nxf-day-text: #112033;
  --nxf-day-muted: #63758b;
  --nxf-day-soft: #8494a8;
  --nxf-night-bg: #07111d;
  --nxf-night-shell: #0a1725;
  --nxf-night-surface: #0d1c2d;
  --nxf-night-raised: #13263a;
  --nxf-night-active: #183149;
  --nxf-night-line: #21364a;
  --nxf-night-line-strong: #355976;
  --nxf-night-text: #f1f7fc;
  --nxf-night-muted: #9fb4c8;
  --nxf-night-soft: #7792aa;
}

:root:not([data-theme="night"]) {
  --nexus-bg: var(--nxf-day-bg);
  --nexus-section: #e5edf5;
  --nexus-surface: var(--nxf-day-surface);
  --nexus-surface-raised: var(--nxf-day-raised);
  --nexus-surface-active: var(--nxf-day-active);
  --nexus-sidebar-bg: var(--nxf-day-shell);
  --nexus-border: var(--nxf-day-line);
  --nexus-border-strong: var(--nxf-day-line-strong);
  --nexus-cyan: #12b7d6;
  --nexus-blue: #477fca;
  --nexus-text: var(--nxf-day-text);
  --nexus-text-muted: var(--nxf-day-muted);
  --nexus-text-soft: var(--nxf-day-soft);
  --nexus-nav-surface: var(--nxf-day-shell);
  --nexus-hero-surface: #f9fbfe;
  --nexus-dashboard-surface: var(--nxf-day-surface);
  --nexus-table-surface: #f9fbfd;
  --nexus-table-head-surface: #e8eff6;
  --nexus-chart-surface: #f5f8fb;
  --nexus-feed-surface: #fffdf9;
  --nexus-provider-surface: #f7fafc;
  --nexus-preview-surface: #fbf7ec;
  --nexus-utility-surface: #f0f4f8;
  --nexus-shadow-soft: 0 12px 28px rgba(20, 32, 44, 0.08);
  --nexus-shadow-raised: 0 18px 42px rgba(20, 32, 44, 0.11);
  --nexus-module-hero-shadow: 0 24px 56px rgba(20, 32, 44, 0.12);
  --nexus-module-large-shadow: 0 16px 36px rgba(20, 32, 44, 0.09);
  --nexus-module-small-shadow: 0 8px 20px rgba(20, 32, 44, 0.055);
  --fe7-bg: var(--nexus-bg);
  --fe7-shell: var(--nexus-section);
  --fe7-surface: var(--nexus-surface);
  --fe7-surface-2: var(--nexus-surface-raised);
  --fe7-zone-raised: var(--nexus-dashboard-surface);
  --fe7-zone-soft: var(--nexus-utility-surface);
  --fe7-zone-band: var(--nexus-surface-active);
  --fe7-border: var(--nexus-border);
  --fe7-border-strong: var(--nexus-border-strong);
  --fe7-text: var(--nexus-text);
  --fe7-muted: var(--nexus-text-muted);
  --panel: color-mix(in srgb, var(--nexus-surface) 94%, transparent);
  --panel-strong: var(--nexus-dashboard-surface);
  --panel-border: var(--nexus-border);
  --line: var(--nexus-border);
  --line-strong: var(--nexus-border-strong);
}

:root[data-theme="night"] {
  --nexus-bg: var(--nxf-night-bg);
  --nexus-section: var(--nxf-night-shell);
  --nexus-surface: var(--nxf-night-surface);
  --nexus-surface-raised: var(--nxf-night-raised);
  --nexus-surface-active: var(--nxf-night-active);
  --nexus-sidebar-bg: #081522;
  --nexus-border: var(--nxf-night-line);
  --nexus-border-strong: var(--nxf-night-line-strong);
  --nexus-cyan: #26d9ff;
  --nexus-blue: #6aa8ff;
  --nexus-text: var(--nxf-night-text);
  --nexus-text-muted: var(--nxf-night-muted);
  --nexus-text-soft: var(--nxf-night-soft);
  --nexus-nav-surface: #08131f;
  --nexus-hero-surface: #102338;
  --nexus-dashboard-surface: #0d1b2c;
  --nexus-table-surface: #0b1725;
  --nexus-table-head-surface: #13283e;
  --nexus-chart-surface: #091625;
  --nexus-feed-surface: #0f1f31;
  --nexus-provider-surface: #102033;
  --nexus-preview-surface: #151b1b;
  --nexus-utility-surface: #091421;
  --nexus-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.32);
  --nexus-shadow-raised: 0 24px 52px rgba(0, 0, 0, 0.42);
  --nexus-module-hero-shadow: 0 30px 72px rgba(0, 0, 0, 0.46);
  --nexus-module-large-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
  --nexus-module-small-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

:root:not([data-theme="night"]) body,
:root:not([data-theme="night"]) body.nx-active {
  color: var(--nexus-text) !important;
  background:
    radial-gradient(circle at 20% -8%, rgba(18, 183, 214, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--nexus-bg) 48%, #e9f0f7 100%) !important;
}

:root[data-theme="night"] body,
:root[data-theme="night"] body.nx-active {
  color: var(--nexus-text) !important;
  background:
    radial-gradient(circle at 18% -10%, rgba(38, 217, 255, 0.12), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(245, 181, 70, 0.045), transparent 28%),
    linear-gradient(180deg, var(--nexus-section) 0%, var(--nexus-bg) 54%, #050b13 100%) !important;
}

@media (min-width: 761px) {
  :root {
    --nexus-viewport-sidebar-width: var(--nxf-sidebar-desktop);
    --nexus-viewport-main-pad: var(--nxf-main-pad);
    --nxr-max-route: var(--nxf-route-max);
    --nxr-max-profile: var(--nxf-profile-max);
  }

  body.nexus-app-layout .nexus-app-frame,
  body.nexus-home-layout .nexus-app-frame,
  body.nxp-profile-layout .nxp-board {
    grid-template-columns: var(--nxf-sidebar-desktop) minmax(0, 1fr) !important;
  }

  body.nexus-app-layout .nexus-main-stage,
  body.nexus-home-layout .nexus-main-stage,
  body.nxp-profile-layout .nxp-main {
    padding: var(--nxf-main-pad) !important;
  }
}

.nexus-route-stage > .route-page,
.route-page-home.nexus-home-board,
.fe7-preview-route,
.nexus-search-reference,
.fe7-settings-page,
.nexus-settings-reference,
.nexus-inbox-reference,
.fe7-watchlist-page,
.route-page-login,
.fe7-player-profile-shell,
.route-page-organization {
  width: min(100%, var(--nxf-route-max)) !important;
  max-width: var(--nxf-route-max) !important;
}

.fe7-player-profile-shell,
.route-page-organization {
  max-width: var(--nxf-profile-max) !important;
}

.nexus-sidebar,
.nexus-sidebar.panel,
.nexus-sidebar.nexus-surface,
.nxp-board > .nexus-sidebar,
.nexus-app-frame > .nexus-sidebar {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nexus-nav-surface) 96%, #06101a) 0%, var(--nexus-sidebar-bg) 64%, color-mix(in srgb, var(--nexus-sidebar-bg) 82%, #03070d) 100%) !important;
  border-radius: 0 !important;
}

:root:not([data-theme="night"]) .nexus-sidebar,
:root:not([data-theme="night"]) .nexus-sidebar.panel,
:root:not([data-theme="night"]) .nexus-sidebar.nexus-surface,
:root:not([data-theme="night"]) .nxp-board > .nexus-sidebar,
:root:not([data-theme="night"]) .nexus-app-frame > .nexus-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, var(--nexus-sidebar-bg) 72%, #eef4f9 100%) !important;
}

.nexus-sidebar-inner {
  padding: 16px 14px !important;
  gap: 12px !important;
}

.nexus-sidebar .fe7-sidebar-logo {
  min-height: 58px !important;
  padding-bottom: 12px !important;
}

.nexus-sidebar-link {
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
}

.nexus-sidebar-search input {
  height: 34px !important;
  border-radius: 6px !important;
}

.nexus-main-stage,
.nx-main {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nexus-section) 88%, transparent), var(--nexus-bg)) !important;
}

.nexus-route-stage {
  max-width: var(--nxf-route-max);
  margin-inline: auto;
}

.route-page,
.nx-page,
.fe7-player-profile-shell,
.nexus-reference-card,
.nexus-ref-panel,
.route-module-card,
.nexus-home-module,
.fe7-card,
.nxp-module,
.nxp-card,
.social-post-card,
.inbox-chat-sidebar,
.inbox-chat-main {
  border-radius: var(--nxf-card-radius) !important;
}

.fe7-page-head,
.nexus-home-dashboard-head,
.search-route-hero,
.fe7-profile-hero,
.fe7-org-hero,
.fe7-preview-route .fe7-preview-head,
.fe7-settings-head,
.placeholder-hero,
.nexus-home-module-hero {
  min-height: 76px !important;
  padding: var(--nxf-panel-pad) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nexus-hero-surface) 96%, transparent), color-mix(in srgb, var(--nexus-surface-active) 46%, var(--nexus-dashboard-surface))) !important;
}

.fe7-page-head h1,
.nexus-home-dashboard-head h1,
.search-route-hero h1,
.fe7-profile-hero h1,
.fe7-org-hero h1,
.fe7-preview-route .fe7-preview-head h1,
.fe7-settings-head h1,
.placeholder-hero h1 {
  font-size: clamp(25px, 2vw, 34px) !important;
  letter-spacing: 0 !important;
}

.fe7-card,
.nexus-reference-card,
.nexus-ref-panel,
.route-module-card,
.nexus-home-module,
.nxp-module,
.nxp-card,
.fe7-settings-card,
.search-group-panel,
.social-post-card {
  border-color: color-mix(in srgb, var(--nexus-border) 88%, transparent) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 44%),
    var(--nexus-dashboard-surface) !important;
  box-shadow: var(--nexus-module-small-shadow) !important;
}

.nx-metric-grid,
.nexus-home-stat-grid,
.overview-stat-grid,
.fe7-stat-grid,
.fe7-stat-grid-six,
.fe7-watchlist-spotlight-metrics {
  gap: var(--nxf-page-gap) !important;
}

.nx-metric,
.nexus-stat-card,
.fe7-stat-card,
.overview-stat-card {
  min-height: 82px !important;
  padding: 12px !important;
}

.nx-metric-value,
.nexus-ref-metric-value,
.fe7-stat-value {
  font-size: clamp(20px, 1.5vw, 30px) !important;
  line-height: 1.04 !important;
}

.fe7-watchlist-player-row,
.search-result-card,
.player-match-record-table-row,
.provider-management-row,
.fe7-preview-table-row,
.fe7-table-row {
  min-height: 44px !important;
  padding: 7px 10px !important;
}

.fe7-preview-table-head,
.fe7-watchlist-table-head,
.search-result-table-head,
.player-match-record-table-head,
.provider-management-table-head {
  min-height: 30px !important;
}

.route-page-home.nexus-home-board,
.fe7-preview-route,
.fe7-watchlist-page,
.nexus-search-reference,
.fe7-settings-page,
.nexus-inbox-reference,
.route-page-feed.fe7-feed-page {
  gap: var(--nxf-page-gap) !important;
}

.route-page-home .nexus-home-command-grid {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.28fr) minmax(260px, 0.72fr) !important;
  gap: var(--nxf-page-gap) !important;
}

.route-page-home .nexus-home-activity-module {
  grid-column: span 1 !important;
}

.route-page-home .nexus-home-module-small {
  min-height: 150px !important;
}

.route-page-feed.fe7-feed-page {
  grid-template-columns: minmax(0, 1.36fr) minmax(330px, 0.48fr) !important;
}

.fe7-preview-route .fe7-two-col,
.fe7-preview-route .fe7-match-hero {
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.5fr) !important;
}

.fe7-preview-route .fe7-three-col,
.fe7-preview-route .fe7-market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.fe7-player-profile-shell {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.fe7-profile-hero,
.fe7-org-hero {
  min-height: 170px !important;
}

.fe7-profile-hero .fe7-profile-avatar,
.fe7-org-hero .fe7-org-avatar {
  width: 88px !important;
  height: 88px !important;
}

.fe7-profile-hero .nx-profile-name,
.fe7-org-hero .nx-profile-name {
  font-size: clamp(34px, 3.1vw, 54px) !important;
}

.nx-profile-tabs,
.fe7-page-tabs,
.fe7-org-tabs {
  border-radius: 6px !important;
  min-height: 38px !important;
}

.nx-profile-tabs .nexus-tab,
.fe7-page-tabs button,
.fe7-org-tabs .nexus-tab {
  min-height: 36px !important;
  border-radius: 6px !important;
}

:root:not([data-theme="night"]) .ui-placeholder,
:root:not([data-theme="night"]) .nx-placeholder,
:root:not([data-theme="night"]) .nexus-ref-empty,
:root:not([data-theme="night"]) .empty-state {
  background: color-mix(in srgb, var(--nexus-warning) 7%, var(--nexus-surface-raised)) !important;
}

@media (max-width: 760px) {
  .nexus-route-stage {
    max-width: none;
  }

  .route-page-home .nexus-home-command-grid,
  .route-page-feed.fe7-feed-page,
  .fe7-preview-route .fe7-two-col,
  .fe7-preview-route .fe7-match-hero,
  .fe7-preview-route .fe7-three-col,
  .fe7-preview-route .fe7-market-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-page-head,
  .nexus-home-dashboard-head,
  .search-route-hero,
  .fe7-profile-hero,
  .fe7-org-hero,
  .fe7-preview-route .fe7-preview-head,
  .fe7-settings-head,
  .placeholder-hero {
    min-height: 0 !important;
  }
}

/* FE-7.2f responsive parity: compact app chrome and bare Nexus mark. */
.fe7-logo-mark,
.nexus-home-brand-icon {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.nx-home-hero .nexus-home-brand-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto;
}

.nexus-sidebar .fe7-sidebar-logo {
  align-self: center;
}

.nexus-sidebar .fe7-sidebar-logo .fe7-logo-mark {
  width: 86px !important;
  height: 86px !important;
}

@media (max-width: 760px) {
  body .nexus-app-frame,
  body .nxp-board {
    width: calc(100% - 14px) !important;
    min-height: calc(100vh - 14px) !important;
    margin: 7px auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: start !important;
    overflow: visible !important;
  }

  body .nexus-app-frame > .nexus-sidebar,
  body .nxp-board > .nexus-sidebar {
    position: sticky !important;
    top: 0;
    z-index: 70;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--fe7-border) !important;
  }

  body .nexus-sidebar-inner {
    min-height: 0 !important;
    padding: 10px 10px 9px !important;
    gap: 9px !important;
    align-content: start !important;
  }

  body .nexus-sidebar .fe7-sidebar-logo {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    justify-self: center;
  }

  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-mark {
    width: 44px !important;
    height: 44px !important;
  }

  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-copy {
    justify-items: start;
    gap: 2px;
  }

  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-word {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-tagline {
    display: none;
  }

  body .nexus-sidebar-search,
  body .nexus-sidebar-user,
  body .fe7-sidebar-user {
    display: none !important;
  }

  body .nexus-sidebar-nav {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 2px 2px;
    scrollbar-width: none;
  }

  body .nexus-sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  body .nexus-sidebar-link {
    min-height: 34px !important;
    flex: 0 0 auto;
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px;
    padding: 0 11px !important;
    white-space: nowrap;
    box-shadow: none;
  }

  body .nexus-sidebar-link.is-active {
    box-shadow: inset 0 -2px 0 var(--fe7-cyan);
  }

  body .nexus-main-stage,
  body .nx-main,
  body .nxp-main {
    padding: 10px !important;
    gap: 12px !important;
  }

  body .nexus-app-frame > .nexus-sidebar,
  body .nxp-board > .nexus-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }

  body .nexus-app-frame > .nexus-main-stage,
  body .nexus-app-frame > .nx-main,
  body .nxp-board > .nxp-main {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
  }

  body .nexus-app-header,
  body .nxp-main > .nexus-app-header {
    min-height: 0 !important;
    padding: 10px !important;
    gap: 9px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    border-radius: 10px;
  }

  body .nexus-app-search {
    max-width: none;
    height: 38px;
  }

  body .nexus-app-search input {
    min-height: 36px;
    height: 36px;
    font-size: 12px;
  }

  body .nexus-app-header .nexus-header-actions {
    width: auto !important;
    justify-content: flex-end;
    gap: 6px;
  }

  body .nexus-app-header .notification-bell,
  body .nexus-app-header .nexus-icon-button,
  body .nexus-app-header .nexus-signup-action {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  body .nexus-app-header .nexus-login-action {
    min-height: 36px;
    padding: 0 10px;
    white-space: nowrap;
  }

  body .route-page,
  body .fe7-player-profile-shell,
  body .route-page-organization {
    min-width: 0;
  }

  body .fe7-page-head {
    gap: 12px;
  }

  body .fe7-page-head h1,
  body .nxp-name,
  body .nx-profile-name {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.05;
  }

  body .fe7-stat-grid,
  body .fe7-stat-grid-six,
  body .fe7-four-col,
  body .fe7-market-grid {
    grid-template-columns: 1fr !important;
  }

  body .fe7-card,
  body .nexus-reference-card,
  body .nexus-ref-panel {
    max-width: 100%;
  }
}

/* FE-7.2g website visual parity pass. */
body.nexus-home-layout .site-header {
  display: none;
}

body.nexus-home-layout .site-shell.nexus-home-shell-mode {
  width: min(1600px, calc(100vw - 20px));
  gap: 10px;
}

body.nexus-home-layout .route-root {
  display: grid;
}

.nexus-home-app-frame {
  width: min(100% - 20px, 1480px) !important;
  min-height: calc(100vh - 20px);
}

.nexus-app-frame,
.nxp-board {
  width: min(100% - 20px, 1760px);
}

.nexus-main-stage,
.nx-main,
.nxp-main {
  padding: 28px;
}

.nexus-route-stage {
  gap: 16px;
}

.nexus-sidebar-inner {
  align-content: start;
}

.nexus-sidebar .fe7-sidebar-logo {
  margin-top: 4px;
}

.nexus-sidebar-link {
  font-size: 13px;
  letter-spacing: 0;
}

.nexus-sidebar-user,
.fe7-sidebar-user {
  margin-bottom: 2px;
}

.nexus-app-header,
.nxp-main > .nexus-app-header {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--fe7-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--fe7-surface) 82%, transparent);
}

:root[data-theme="night"] .nexus-app-header,
:root[data-theme="night"] .nxp-main > .nexus-app-header {
  background:
    radial-gradient(circle at 10% 0%, rgba(19, 200, 232, 0.08), transparent 34%),
    rgba(7, 27, 45, 0.74);
}

.fe7-card,
.nexus-ref-panel,
.nexus-reference-card,
.route-module-card,
.social-post-card,
.inbox-chat-sidebar,
.inbox-chat-main {
  border-color: color-mix(in srgb, var(--fe7-border) 84%, var(--fe7-cyan) 16%) !important;
}

.fe7-card-header,
.nexus-ref-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  min-width: 0;
}

.nexus-ref-panel-head > *,
.fe7-card-header > * {
  min-width: 0;
}

.fe7-card-title,
.nexus-ref-panel-title,
.route-module-card h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  letter-spacing: 0.025em;
  line-height: 1.22;
}

.nexus-ref-note,
.fe7-card-copy {
  margin-top: 4px;
  max-width: 68ch;
  color: var(--fe7-muted) !important;
  line-height: 1.45;
}

.player-profile-module .nexus-ref-panel-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.player-profile-module .nexus-ref-note {
  grid-column: 1 / -1;
  margin-top: 0;
}

.fe7-stat-card,
.nexus-stat-card,
.nx-metric {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 200, 232, 0.09), transparent 38%),
    var(--fe7-surface) !important;
}

:root[data-theme="night"] .fe7-stat-card,
:root[data-theme="night"] .nexus-stat-card,
:root[data-theme="night"] .nx-metric {
  background:
    radial-gradient(circle at 16% 0%, rgba(19, 200, 232, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(11, 38, 61, 0.72), rgba(7, 27, 45, 0.76)) !important;
}

.fe7-stat-value,
.nx-metric-value {
  font-family: var(--font-display, Inter, system-ui, sans-serif);
  letter-spacing: 0;
}

.route-page-home.nexus-home-board {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.nexus-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.6fr);
  gap: 18px;
  align-items: end;
  min-height: 0;
  padding: 24px !important;
  border: 1px solid var(--fe7-border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 14% 0%, rgba(19, 200, 232, 0.12), transparent 33%),
    linear-gradient(135deg, var(--fe7-surface), var(--fe7-surface-2)) !important;
  box-shadow: none !important;
}

:root[data-theme="night"] .nexus-home-hero {
  background:
    radial-gradient(circle at 18% 0%, rgba(19, 200, 232, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(10, 35, 57, 0.92), rgba(7, 25, 42, 0.86)) !important;
}

.nexus-home-hero-copy {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.nexus-home-lockup {
  justify-self: start;
}

.nexus-home-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-display, Inter, system-ui, sans-serif);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.nexus-home-hero .nx-empty {
  max-width: 720px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.nexus-home-action-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
  justify-items: stretch;
  padding: 14px;
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  background: var(--fe7-surface-2);
}

.nexus-home-action-panel .provider-strip,
.nexus-home-action-panel .action-row {
  justify-content: flex-start;
}

.nexus-home-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nexus-home-stat-grid .nx-metric {
  min-height: 104px;
  display: grid;
  gap: 7px;
  padding: 16px;
}

.nexus-home-stat-grid small {
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 750;
}

.nexus-home-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.nexus-home-activity-card {
  grid-row: span 2;
}

.nexus-preview-card,
.nexus-ecosystem {
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 200, 232, 0.07), transparent 34%),
    var(--fe7-surface) !important;
  padding: 16px;
}

.nexus-preview-card h2,
.nexus-ecosystem-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.nexus-ecosystem {
  display: grid;
  gap: 14px;
}

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

.nexus-ecosystem-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--fe7-border);
  border-radius: 9px;
  background: var(--fe7-surface-2);
}

.nexus-ecosystem-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fe7-cyan), var(--fe7-blue));
}

.nexus-ecosystem-item h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.nexus-ecosystem-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.42;
}

.route-page-feed .fe7-feed-composer-card {
  padding: 18px !important;
}

.route-page-feed .fe7-feed-composer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.route-page-feed .nexus-feed-composer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 420px;
  gap: 8px;
}

.route-page-feed .nexus-feed-composer-label {
  font-size: 18px;
  font-weight: 900;
}

.fe7-player-trophies-module .fe7-trophy-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fe7-player-trophies-module .fe7-trophy strong,
.fe7-player-trophies-module .fe7-trophy small {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

@media (max-width: 1180px) {
  .route-page-feed .fe7-feed-composer-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-page-feed .nexus-feed-composer-actions {
    justify-content: flex-start;
    max-width: 100%;
  }
}

@media (max-width: 920px) {
  .fe7-player-overview-wide .nxp-about-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fe7-player-overview-wide .nxp-about-row {
    border-bottom: 1px solid var(--fe7-border);
  }

  .fe7-player-overview-wide .nxp-about-row:nth-child(2n) {
    border-right: 0;
  }
}

.route-page-feed .fe7-feed-auth-lock {
  border-style: solid;
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 200, 232, 0.09), transparent 36%),
    var(--fe7-surface-2);
}

.route-page-feed .fe7-feed-demo-post {
  min-height: 420px;
}

.route-page-feed .fe7-feed-media-preview {
  min-height: 250px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 42% 40%, rgba(19, 200, 232, 0.3), transparent 0 12%, transparent 13%),
    linear-gradient(135deg, rgba(8, 87, 123, 0.92), rgba(3, 10, 22, 0.94));
}

.placeholder-hero,
.fe7-org-empty-profile,
.fe7-org-settings-gate {
  width: min(100%, 1120px);
  min-width: 0;
  margin: 0 auto;
}

.fe7-org-empty-profile {
  display: grid;
  gap: 14px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.fe7-org-empty-hero {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) !important;
  align-items: center;
}

.fe7-profile-shell-notice {
  margin: -2px 0 0;
  border-radius: 10px;
}

:root:not([data-theme="night"]) .fe7-player-profile-page,
:root:not([data-theme="night"]) .fe7-player-profile-page .nxp-board,
:root:not([data-theme="night"]) .fe7-player-profile-page .nexus-sidebar {
  background: var(--fe7-shell) !important;
}

:root:not([data-theme="night"]) .fe7-player-profile-page .fe7-profile-hero,
:root:not([data-theme="night"]) .fe7-player-profile-page .nxp-module,
:root:not([data-theme="night"]) .fe7-player-profile-page .nexus-ref-panel,
:root:not([data-theme="night"]) .fe7-player-profile-page .nexus-reference-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  color: #0b1735 !important;
}

:root:not([data-theme="night"]) .fe7-player-profile-page .nxp-module *,
:root:not([data-theme="night"]) .fe7-player-profile-page .nexus-ref-panel * {
  color: inherit;
}

:root:not([data-theme="night"]) .fe7-player-profile-page .nxp-empty,
:root:not([data-theme="night"]) .fe7-player-profile-page .route-detail-copy,
:root:not([data-theme="night"]) .fe7-player-profile-page .nexus-ref-copy {
  color: #5e6f8d !important;
}

.fe7-profile-locked-tab .nxp-module {
  min-height: 260px;
}

.player-stats-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.player-stats-mode-tab {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  background: var(--fe7-surface-2);
  color: var(--fe7-muted);
  text-align: left;
}

.player-stats-mode-tab strong {
  color: var(--fe7-text);
  font-size: 13px;
}

.player-stats-mode-tab span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-stats-mode-tab.is-active {
  border-color: rgba(19, 200, 232, 0.55);
  background: rgba(19, 200, 232, 0.1);
  color: var(--fe7-cyan);
}

.fe7-locked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.fe7-locked-grid article {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--fe7-border);
  border-radius: 9px;
  background: var(--fe7-surface-2);
}

.fe7-locked-grid span {
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fe7-locked-grid strong {
  color: var(--fe7-text);
  font-size: 18px;
}

.fe7-locked-grid small {
  color: var(--fe7-muted);
}

.fe7-locked-dashboard,
.faceit-unavailable-dashboard {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(19, 200, 232, 0.36);
  border-radius: 10px;
  background: rgba(19, 200, 232, 0.045);
}

.fe7-locked-dashboard > div:first-child {
  display: grid;
  gap: 5px;
}

.fe7-locked-dashboard span {
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fe7-locked-dashboard strong {
  color: var(--fe7-text);
  font-size: 18px;
}

.fe7-locked-dashboard p {
  margin: 0;
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-locked-table-preview {
  display: grid;
  gap: 7px;
}

.fe7-locked-table-preview span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(19, 200, 232, 0.55), rgba(13, 99, 165, 0.12));
}

.player-match-record-table {
  display: grid;
  gap: 8px;
}

.player-match-record-table-head {
  display: grid;
  grid-template-columns: 0.85fr 0.8fr 1.25fr 0.8fr 0.65fr 0.65fr 0.9fr 0.9fr;
  gap: 8px;
  padding: 0 10px;
  color: var(--fe7-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe7-preview-route {
  gap: 14px;
}

.fe7-preview-route .fe7-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 2px 0 0;
}

.fe7-preview-route .fe7-preview-head h1 {
  margin-top: 6px;
}

.fe7-preview-route .fe7-placeholder-notice {
  margin-bottom: 2px;
}

.fe7-preview-route .fe7-status-strip {
  order: 4;
}

.fe7-preview-route .fe7-stat-grid {
  order: 3;
}

.fe7-status-strip article {
  padding: 9px 10px;
}

@media (max-width: 1180px) {
  .nexus-home-dashboard-grid,
  .nexus-ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  body.nexus-home-layout .site-shell.nexus-home-shell-mode,
  .nexus-home-app-frame {
    width: calc(100% - 14px) !important;
  }

  .nexus-home-hero,
  .nexus-home-dashboard-grid,
  .nexus-ecosystem-grid,
  .fe7-locked-grid,
  .player-stats-mode-tabs {
    grid-template-columns: 1fr !important;
  }

  .player-match-record-table-head {
    display: none;
  }

  .nexus-home-hero {
    padding: 18px !important;
  }

  .nexus-home-hero h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .nexus-home-stat-grid,
  .route-page-feed .nexus-feed-composer-actions {
    grid-template-columns: 1fr !important;
  }

  .fe7-org-empty-hero {
    grid-template-columns: 1fr !important;
  }

  .fe7-preview-route .fe7-preview-head {
    grid-template-columns: 1fr;
  }

  .fe7-preview-route .fe7-page-tabs {
    max-width: 100%;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .fe7-preview-route .fe7-page-tabs::-webkit-scrollbar {
    display: none;
  }

  .fe7-preview-route .fe7-page-tabs span,
  .fe7-preview-route .fe7-page-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* FE-7.2h/2i reconstruction pass: denser app boards and Nexus-readable typography. */
:root {
  --fe7-brand-aqua: #19d7f6;
  --fe7-brand-blue: #0d63a5;
  --fe7-brand-ink: #071a2c;
  --fe7-panel-alt: #f1f5fb;
  --fe7-panel-band: rgba(8, 35, 61, 0.055);
}

:root[data-theme="night"] {
  --fe7-bg: #061827;
  --fe7-shell: #082035;
  --fe7-surface: rgba(9, 31, 50, 0.95);
  --fe7-surface-2: rgba(8, 27, 45, 0.9);
  --fe7-panel-alt: #0b2a46;
  --fe7-panel-band: rgba(19, 200, 232, 0.045);
  --fe7-border: rgba(151, 201, 226, 0.15);
  --fe7-border-strong: rgba(19, 200, 232, 0.52);
  --fe7-text: #f0f7ff;
  --fe7-muted: #9db0c7;
}

body.nx-active {
  font-family: var(--font-body, Inter, system-ui, sans-serif);
}

:root[data-theme="night"] body.nx-active {
  background:
    radial-gradient(circle at 55% -12%, rgba(19, 200, 232, 0.12), transparent 36%),
    linear-gradient(135deg, #061522 0%, #082137 56%, #061827 100%) !important;
}

.fe7-logo-word,
.nx-logo-word,
.nexus-wordmark {
  font-family: var(--font-display, Inter, system-ui, sans-serif) !important;
  letter-spacing: 0.06em !important;
}

.fe7-logo-word {
  font-size: 23px;
}

.nexus-sidebar-inner {
  padding-top: 26px;
  gap: 18px;
}

.nexus-sidebar-link {
  min-height: 36px;
}

.nexus-app-frame,
.nxp-board {
  grid-template-columns: 178px minmax(0, 1fr);
}

.nexus-main-stage,
.nx-main,
.nxp-main {
  padding: 24px;
}

.fe7-card,
.nexus-ref-panel,
.nexus-reference-card,
.route-module-card,
.social-post-card,
.inbox-chat-sidebar,
.inbox-chat-main,
.fe7-stat-card,
.nexus-stat-card,
.nx-metric,
.nexus-home-module {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.94)) !important;
}

:root[data-theme="night"] .fe7-card,
:root[data-theme="night"] .nexus-ref-panel,
:root[data-theme="night"] .nexus-reference-card,
:root[data-theme="night"] .route-module-card,
:root[data-theme="night"] .social-post-card,
:root[data-theme="night"] .inbox-chat-sidebar,
:root[data-theme="night"] .inbox-chat-main,
:root[data-theme="night"] .fe7-stat-card,
:root[data-theme="night"] .nexus-stat-card,
:root[data-theme="night"] .nx-metric,
:root[data-theme="night"] .nexus-home-module {
  background:
    linear-gradient(180deg, rgba(10, 35, 57, 0.92), rgba(7, 28, 45, 0.9)) !important;
}

.fe7-card-header,
.nexus-ref-panel-head {
  border-bottom: 1px solid var(--fe7-border);
  padding: 12px 14px !important;
  background: var(--fe7-panel-band);
}

.fe7-card-body,
.nexus-ref-panel-body {
  padding: 14px !important;
}

.fe7-card-title,
.nexus-ref-panel-title,
.route-module-card h3,
.fe7-stat-label,
.nx-metric-label {
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

.fe7-stat-value,
.nx-metric-value {
  font-family: var(--font-body, Inter, system-ui, sans-serif) !important;
  font-size: clamp(22px, 2vw, 30px);
}

.fe7-stat-card,
.nexus-stat-card,
.nx-metric {
  min-height: 96px;
  padding: 14px;
}

.fe7-stat-detail {
  line-height: 1.35;
}

body.nexus-home-layout .site-footer {
  display: none !important;
}

.route-page-home.nexus-home-board {
  width: min(100%, 1240px);
  max-width: 1240px;
  gap: 14px;
}

.nexus-home-dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--fe7-border);
  border-radius: var(--fe7-radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 200, 232, 0.1), transparent 34%),
    var(--fe7-surface) !important;
}

.nexus-home-dashboard-head h1 {
  margin: 4px 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
}

.nexus-home-dashboard-head p {
  max-width: 720px;
  margin: 0;
  color: var(--fe7-muted);
}

.nexus-home-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nexus-home-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(260px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.nexus-home-module {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--fe7-border);
  border-radius: var(--fe7-radius);
  padding: 14px;
}

.nexus-home-module header {
  display: grid;
  gap: 3px;
}

.nexus-home-module header span,
.nx-card-note {
  color: var(--fe7-cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.nexus-home-module h2 {
  margin: 0;
  color: var(--fe7-text);
  font-size: 16px;
  line-height: 1.2;
}

.nexus-home-live-module {
  grid-row: span 2;
}

.nexus-home-activity-module {
  grid-column: span 2;
}

.nexus-home-score-shell {
  min-height: 178px;
  display: grid;
  place-items: center;
  gap: 7px;
  border-radius: 9px;
  border: 1px solid var(--fe7-border);
  background:
    linear-gradient(rgba(120, 160, 190, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 190, 0.12) 1px, transparent 1px),
    var(--fe7-surface-2);
  background-size: 32px 32px;
  text-align: center;
}

.nexus-home-score-shell strong {
  color: var(--fe7-text);
  font-size: clamp(24px, 3vw, 40px);
}

.nexus-home-score-shell span,
.nexus-home-score-shell small {
  color: var(--fe7-muted);
  font-weight: 800;
}

.nexus-home-activity-list {
  display: grid;
  gap: 8px;
}

.nexus-home-activity-list article {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--fe7-border);
}

.nexus-home-activity-list article:last-child {
  border-bottom: 0;
}

.nexus-home-activity-list strong {
  color: var(--fe7-text);
}

.nexus-home-activity-list span,
.nexus-home-activity-list time {
  color: var(--fe7-muted);
  font-size: 12px;
}

.route-page-feed .fe7-feed-auth-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.route-page-feed .nexus-rail-empty {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--fe7-border);
  border-radius: 9px;
  background: var(--fe7-surface-2);
}

.route-page-feed .fe7-feed-demo-post {
  min-height: 360px;
}

.route-page-feed .fe7-feed-media-preview {
  min-height: 220px;
}

.fe7-player-profile-shell,
.route-page-organization {
  width: min(100%, 1220px);
}

.fe7-profile-hero,
.fe7-org-hero {
  padding: 24px !important;
}

.fe7-overview-links-strip {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--fe7-border);
}

.fe7-overview-links-strip > span {
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
}

.fe7-player-overview-grid {
  gap: 14px !important;
}

.fe7-player-overview-grid .nexus-ref-panel {
  min-height: 0;
}

.fe7-player-overview-grid .nexus-ref-panel-body {
  padding: 14px !important;
}

.fe7-player-overview-wide .nxp-about-row {
  min-height: 56px;
}

.fe7-org-empty-profile,
.fe7-org-empty-profile * {
  max-width: 100%;
}

.fe7-org-empty-profile {
  grid-template-columns: minmax(0, 1fr) !important;
}

.fe7-org-empty-profile > * {
  min-width: 0 !important;
}

.route-page-organization .fe7-org-empty-grid.nexus-profile-body-grid,
.fe7-org-empty-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.fe7-org-empty-grid .fe7-org-panel {
  min-height: 136px;
}

.fe7-watchlist-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.fe7-watchlist-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--fe7-border);
  border-radius: 9px;
}

.fe7-watchlist-table-head,
.fe7-watchlist-player-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.9fr) minmax(96px, 0.55fr) minmax(180px, 1fr) minmax(92px, 0.55fr) minmax(178px, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.fe7-watchlist-table-head {
  padding: 9px 12px;
  background: var(--fe7-panel-band);
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
}

.fe7-watchlist-player-row {
  padding: 11px 12px;
  border-top: 1px solid var(--fe7-border);
}

.fe7-watchlist-player-row.is-selected {
  background: rgba(19, 200, 232, 0.065);
}

.fe7-watchlist-player-row.is-empty {
  min-height: 86px;
  align-items: center;
}

.fe7-watchlist-player-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.fe7-watchlist-rating-cell,
.fe7-watchlist-signal-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fe7-watchlist-rating-cell strong {
  color: var(--fe7-text);
}

.fe7-watchlist-rating-cell small,
.fe7-watchlist-signal-cell {
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-watchlist-login-cta {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  padding: 12px;
  background: var(--fe7-surface-2);
}

.fe7-watchlist-login-cta p {
  margin: 0;
  color: var(--fe7-muted);
  font-size: 12px;
  line-height: 1.4;
}

.fe7-watchlist-signal-cell {
  line-height: 1.35;
}

.search-group-panel .nexus-ref-panel-head,
.search-route-sidebar .nexus-ref-panel-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.search-route-grid {
  align-items: start;
}

.fe7-search-route-title {
  margin: 0;
  color: var(--fe7-text);
  font: inherit;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.fe7-preview-route {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.fe7-preview-route .fe7-preview-head {
  padding: 0;
}

.fe7-preview-route .fe7-stat-grid {
  order: 1;
}

.fe7-preview-route .fe7-status-strip {
  order: 2;
}

.fe7-preview-route .fe7-placeholder-notice {
  order: 3;
}

.fe7-preview-route > .fe7-card,
.fe7-preview-route > .nexus-ref-panel,
.fe7-preview-route > .nexus-reference-card {
  min-height: 0;
}

.fe7-stat-grid-six .fe7-stat-card {
  min-width: 0;
}

.fe7-stat-grid-six .fe7-stat-value {
  font-size: clamp(19px, 1.5vw, 25px);
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1320px) {
  .fe7-watchlist-main {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1180px) {
  .nexus-home-command-grid,
  .route-page-organization .fe7-org-empty-grid.nexus-profile-body-grid,
  .fe7-org-empty-grid {
    grid-template-columns: 1fr !important;
  }

  .nexus-home-live-module,
  .nexus-home-activity-module {
    grid-column: auto;
    grid-row: auto;
  }

  .fe7-watchlist-table-head {
    display: none;
  }

  .fe7-watchlist-player-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .fe7-watchlist-player-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .nexus-home-dashboard-head,
  .nexus-home-activity-list article,
  .fe7-overview-links-strip,
  .fe7-watchlist-side {
    grid-template-columns: 1fr !important;
  }

  .nexus-home-head-actions {
    justify-content: flex-start;
  }

  .nexus-home-score-shell {
    min-height: 148px;
  }

  .route-page-feed .fe7-feed-auth-lock {
    grid-template-columns: 1fr;
  }

  .fe7-profile-avatar,
  .fe7-org-avatar {
    width: 108px !important;
    height: 108px !important;
  }

  .fe7-org-empty-hero .fe7-org-identity-block {
    width: 100%;
    display: flex !important;
    grid-template-columns: 1fr !important;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    justify-items: center;
    text-align: center;
  }

  .fe7-org-empty-hero .fe7-org-avatar {
    justify-self: center;
    margin-inline: auto;
  }

  .route-page-organization,
  .fe7-org-empty-profile,
  .fe7-org-empty-hero {
    width: 100% !important;
    max-width: 100% !important;
  }

  .fe7-org-empty-hero {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    padding: 16px !important;
  }

  .fe7-org-empty-hero .fe7-org-copy {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
  }

  .fe7-org-empty-hero .nx-profile-name {
    width: 100%;
    max-width: 100%;
    font-size: clamp(24px, 8vw, 31px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .fe7-org-empty-hero .fe7-org-summary {
    max-width: 100%;
    margin-inline: auto;
    overflow-wrap: anywhere !important;
  }

  .fe7-org-empty-hero .fe7-org-summary-card {
    width: 100%;
    max-width: 280px;
  }

  .fe7-org-tabs {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
  }
}

/* FE-7.2j signed-in dashboard/table architecture pass. */
.provider-management-cell-label,
.fe7-watchlist-table-cell::before,
.search-result-cell::before,
.player-match-record-cell::before,
.fe7-preview-table-row span::before {
  display: none;
}

.provider-management-cell-label {
  color: var(--fe7-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.provider-management-preview {
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-watchlist-table-body {
  display: grid;
}

.fe7-watchlist-table-cell {
  min-width: 0;
}

.fe7-watchlist-table-cell > .nexus-badge,
.fe7-watchlist-table-cell > .fe7-mini-trend {
  width: fit-content;
}

.search-result-table,
.search-result-table-body,
.fe7-preview-table-shell,
.fe7-preview-table-body {
  display: grid;
  gap: 8px;
}

.search-result-table-head,
.search-result-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(92px, 0.55fr) minmax(180px, 1fr) minmax(120px, 0.7fr);
  gap: 10px;
  align-items: center;
}

.search-result-table-head,
.fe7-preview-table-head {
  padding: 0 10px;
  color: var(--fe7-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-result-cell,
.search-result-cell .social-author,
.search-result-route-cell {
  min-width: 0;
}

.search-result-kind-cell,
.search-result-route-cell {
  color: var(--fe7-muted);
  font-size: 12px;
  font-weight: 780;
}

.player-stats-mode-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 126, 38, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 126, 38, 0.075);
}

.player-stats-mode-banner p {
  margin: 0;
  color: var(--fe7-muted);
  font-size: 12px;
}

.player-match-record-table-row {
  display: grid;
  grid-template-columns: 0.85fr 0.8fr 1.25fr 0.8fr 0.65fr 0.65fr 0.9fr 0.9fr;
  gap: 8px;
  align-items: center;
}

.player-match-record-cell {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--fe7-muted);
  font-size: 12px;
}

.player-match-record-cell strong {
  min-width: 0;
  color: var(--fe7-text);
  overflow-wrap: anywhere;
}

.player-match-record-cell span {
  min-width: 0;
}

.player-match-action-cell .ghost-button {
  width: fit-content;
}

.fe7-inbox-row-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.fe7-inbox-row-chips em {
  border: 1px solid var(--fe7-border);
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--fe7-panel-band);
  color: var(--fe7-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.fe7-inbox-guest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.fe7-inbox-guest-grid .route-module-card {
  min-height: 116px;
}

@media (max-width: 760px) {
  .fe7-inbox-guest-grid {
    grid-template-columns: 1fr;
  }
}

.fe7-preview-table-shell {
  border: 1px solid var(--fe7-border);
  border-radius: 10px;
  padding: 10px;
  background: var(--fe7-surface-2);
}

.fe7-preview-table-head,
.fe7-preview-table-row {
  display: grid;
  grid-template-columns: repeat(var(--fe7-preview-columns, 4), minmax(0, 1fr));
  gap: 10px;
}

.fe7-preview-table-row {
  border-top: 1px solid var(--fe7-border);
  padding: 9px 0 0;
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-preview-table-row span:first-child,
.fe7-preview-table-row strong {
  color: var(--fe7-text);
  font-weight: 850;
}

.fe7-preview-chart-shell {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 1px dashed var(--fe7-border-strong);
  border-radius: 10px;
  padding: 18px;
  background:
    linear-gradient(rgba(120, 160, 190, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 190, 0.09) 1px, transparent 1px),
    var(--fe7-surface-2);
  background-size: 34px 34px;
  text-align: center;
}

.fe7-preview-chart-shell strong {
  color: var(--fe7-text);
}

.fe7-preview-chart-shell p {
  max-width: 360px;
  margin: 4px 0 0;
  color: var(--fe7-muted);
  font-size: 12px;
}

.fe7-preview-chart-grid {
  width: min(260px, 80%);
  display: grid;
  gap: 8px;
}

.fe7-preview-chart-grid span {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(19, 200, 232, 0.58), rgba(13, 99, 165, 0.12));
}

.fe7-preview-chart-grid span:nth-child(2) {
  width: 72%;
}

.fe7-preview-chart-grid span:nth-child(3) {
  width: 48%;
}

@media (max-width: 1180px) {
  .provider-management-cell-label,
  .fe7-watchlist-table-cell::before,
  .search-result-cell::before,
  .player-match-record-cell::before,
  .fe7-preview-table-row span::before {
    display: block;
  }

  .fe7-watchlist-table-cell::before,
  .search-result-cell::before,
  .player-match-record-cell::before,
  .fe7-preview-table-row span::before {
    content: attr(data-label);
    margin-bottom: 4px;
    color: var(--fe7-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .provider-management-head,
  .provider-management-status-row,
  .provider-management-identity-cell,
  .provider-management-actions,
  .fe7-watchlist-table-cell,
  .search-result-cell,
  .player-match-record-cell {
    display: grid;
    gap: 5px;
  }

  .fe7-watchlist-table-cell[data-label="Actions"],
  .player-match-action-cell {
    justify-items: start;
  }

  .search-result-table-head,
  .player-match-record-table-head,
  .fe7-preview-table-head {
    display: none;
  }

  .search-result-card,
  .player-match-record-table-row,
  .fe7-preview-table-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .fe7-inbox-shell.has-active-thread .fe7-inbox-main {
    order: 1;
  }

  .fe7-inbox-shell.has-active-thread .fe7-inbox-sidebar {
    order: 2;
  }

  .fe7-inbox-shell.has-active-thread .fe7-inbox-detail-rail {
    order: 3;
  }

  .fe7-player-profile-page .fe7-profile-identity-block,
  .fe7-player-profile-page .fe7-profile-copy,
  .fe7-player-profile-page .fe7-profile-name-row,
  .fe7-player-profile-page .fe7-profile-title,
  .fe7-player-profile-page .fe7-profile-subtitle,
  .fe7-player-profile-page .fe7-profile-bio {
    width: 100% !important;
    justify-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .fe7-player-profile-page .fe7-profile-copy > *,
  .fe7-player-profile-page .fe7-profile-chip-row,
  .fe7-player-profile-page .fe7-profile-social-row {
    margin-inline: auto !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* FE-7.2k logo consistency and route-by-route visual parity pass. */
:root {
  --fe7-zone-raised: #ffffff;
  --fe7-zone-soft: #eef4fa;
  --fe7-zone-band: #e5edf6;
  --fe7-row-alt: rgba(13, 99, 165, 0.045);
  --fe7-row-hover: rgba(19, 200, 232, 0.1);
  --fe7-neutral-line: rgba(11, 23, 53, 0.09);
  --fe7-accent-safe: #1bbf8a;
  --fe7-accent-caution: #d79232;
}

:root[data-theme="night"] {
  --fe7-zone-raised: #0a2238;
  --fe7-zone-soft: #071725;
  --fe7-zone-band: #0d2a43;
  --fe7-row-alt: rgba(255, 255, 255, 0.035);
  --fe7-row-hover: rgba(19, 200, 232, 0.09);
  --fe7-neutral-line: rgba(219, 235, 247, 0.075);
  --fe7-accent-safe: #2ed39b;
  --fe7-accent-caution: #e0a23e;
}

.nexus-sidebar,
.nexus-top-header,
.nexus-reference-card,
.nexus-ref-panel,
.fe7-card,
.route-module-card,
.fe7-stat-card,
.nexus-stat-card,
.nx-metric,
.nexus-home-module {
  border-color: var(--fe7-neutral-line) !important;
}

:root[data-theme="night"] .nexus-sidebar,
:root[data-theme="night"] .nexus-top-header,
:root[data-theme="night"] .nexus-reference-card,
:root[data-theme="night"] .nexus-ref-panel,
:root[data-theme="night"] .fe7-card,
:root[data-theme="night"] .route-module-card,
:root[data-theme="night"] .fe7-stat-card,
:root[data-theme="night"] .nexus-stat-card,
:root[data-theme="night"] .nx-metric,
:root[data-theme="night"] .nexus-home-module {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22) !important;
}

.nexus-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 247, 253, 0.94)) !important;
}

:root[data-theme="night"] .nexus-sidebar {
  background:
    linear-gradient(180deg, rgba(8, 31, 50, 0.98), rgba(5, 19, 32, 0.96)) !important;
}

.fe7-logo-lockup,
.nx-logo-lockup,
.nexus-brand-lockup {
  align-items: center;
}

.fe7-logo-mark,
.nexus-brand-mark,
.nx-logo-mark,
.nxp-logo-mark,
.nexus-home-brand-mark {
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(19, 200, 232, 0.14));
}

.nexus-sidebar .fe7-sidebar-logo {
  justify-content: center;
  padding: 2px 0 6px;
  text-align: center;
}

.nexus-sidebar .fe7-sidebar-logo .fe7-logo-mark {
  width: 78px !important;
  height: 78px !important;
}

.nexus-sidebar .fe7-sidebar-logo .fe7-logo-copy {
  align-items: center;
  justify-items: center;
}

.nexus-sidebar .fe7-sidebar-logo .fe7-logo-word {
  letter-spacing: 0.08em !important;
}

.nexus-sidebar-link {
  border: 1px solid transparent;
}

.nexus-sidebar-link.is-active {
  border-color: rgba(19, 200, 232, 0.36);
  background:
    linear-gradient(90deg, rgba(19, 200, 232, 0.16), rgba(13, 99, 165, 0.075)) !important;
  color: var(--fe7-cyan) !important;
}

.nexus-sidebar-link.is-active::before {
  background: var(--fe7-cyan) !important;
  box-shadow: 0 0 18px rgba(19, 200, 232, 0.42);
}

.fe7-page-head,
.nexus-home-dashboard-head,
.search-route-hero,
.fe7-profile-hero,
.fe7-org-hero,
.fe7-preview-route .fe7-preview-head,
.fe7-settings-head {
  border: 1px solid var(--fe7-neutral-line);
  border-radius: var(--fe7-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 252, 0.88)) !important;
  box-shadow: 0 18px 42px rgba(28, 51, 86, 0.08);
}

:root[data-theme="night"] .fe7-page-head,
:root[data-theme="night"] .nexus-home-dashboard-head,
:root[data-theme="night"] .search-route-hero,
:root[data-theme="night"] .fe7-profile-hero,
:root[data-theme="night"] .fe7-org-hero,
:root[data-theme="night"] .fe7-preview-route .fe7-preview-head,
:root[data-theme="night"] .fe7-settings-head {
  background:
    linear-gradient(135deg, rgba(11, 42, 68, 0.96), rgba(6, 21, 35, 0.94)) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
}

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

.nexus-home-brand-mark {
  width: 48px !important;
  height: 48px !important;
}

.nexus-home-hero-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.nexus-home-module,
.fe7-card,
.nexus-ref-panel,
.route-module-card,
.fe7-stat-card,
.nexus-stat-card,
.nx-metric {
  position: relative;
  overflow: hidden;
}

.nexus-home-module::before,
.fe7-card::before,
.nexus-ref-panel::before,
.route-module-card::before,
.fe7-stat-card::before,
.nexus-stat-card::before,
.nx-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(19, 200, 232, 0.72), rgba(13, 99, 165, 0.12));
  opacity: 0.55;
  pointer-events: none;
}

.ui-placeholder::before {
  opacity: 0.38;
}

.fe7-stat-grid .fe7-stat-card:nth-child(2)::before,
.fe7-settings-summary-grid .fe7-settings-summary-card:nth-child(2)::before,
.fe7-status-strip article:nth-child(2)::before {
  background: linear-gradient(180deg, var(--fe7-accent-safe), rgba(27, 191, 138, 0.12));
}

.fe7-stat-grid .fe7-stat-card:nth-child(3)::before,
.fe7-settings-summary-grid .fe7-settings-summary-card:nth-child(3)::before,
.fe7-status-strip article:nth-child(3)::before {
  background: linear-gradient(180deg, var(--fe7-accent-caution), rgba(215, 146, 50, 0.12));
}

.fe7-stat-grid .fe7-stat-card:nth-child(4)::before,
.fe7-settings-summary-grid .fe7-settings-summary-card:nth-child(4)::before,
.fe7-status-strip article:nth-child(4)::before {
  background: linear-gradient(180deg, #64a7ff, rgba(100, 167, 255, 0.1));
}

.fe7-card-header,
.nexus-ref-panel-head,
.fe7-preview-table-head,
.fe7-watchlist-table-head,
.search-result-table-head,
.player-match-record-table-head,
.provider-management-head {
  background: var(--fe7-zone-band) !important;
}

:root[data-theme="night"] .fe7-card-header,
:root[data-theme="night"] .nexus-ref-panel-head,
:root[data-theme="night"] .fe7-preview-table-head,
:root[data-theme="night"] .fe7-watchlist-table-head,
:root[data-theme="night"] .search-result-table-head,
:root[data-theme="night"] .player-match-record-table-head,
:root[data-theme="night"] .provider-management-head {
  background: rgba(16, 48, 75, 0.78) !important;
}

.fe7-watchlist-player-row:nth-child(even),
.search-result-card:nth-child(even),
.player-match-record-table-row:nth-child(even),
.fe7-preview-table-row:nth-child(even),
.provider-management-row:nth-child(even),
.fe7-table-row:nth-child(even) {
  background: var(--fe7-row-alt);
}

.fe7-watchlist-player-row:hover,
.search-result-card:hover,
.player-match-record-table-row:hover,
.provider-management-row:hover {
  background: var(--fe7-row-hover);
}

.fe7-watchlist-player-row,
.search-result-card,
.player-match-record-table-row,
.provider-management-row,
.fe7-preview-table-row {
  transition: background 140ms ease, border-color 140ms ease;
}

.fe7-watchlist-player-actions .ghost-button,
.player-match-action-cell .ghost-button,
.search-result-title,
.fe7-card-action-link {
  white-space: nowrap;
}

.fe7-preview-route {
  display: flex;
  flex-direction: column;
}

.fe7-preview-route .fe7-preview-head {
  order: 0;
}

.fe7-preview-route .fe7-placeholder-notice {
  order: 1;
}

.fe7-preview-route .fe7-status-strip {
  order: 2;
}

.fe7-preview-route .fe7-stat-grid {
  order: 3;
}

.fe7-preview-route .fe7-page-tabs,
.fe7-preview-route .fe7-toolbar {
  order: 4;
}

.fe7-preview-route .fe7-market-grid,
.fe7-preview-route .fe7-two-col,
.fe7-preview-route .fe7-three-col,
.fe7-preview-route .fe7-four-col,
.fe7-preview-route .fe7-match-hero,
.fe7-preview-route > .fe7-card {
  order: 5;
}

.fe7-watchlist-toolbar,
.fe7-toolbar,
.nexus-feed-composer-actions,
.fe7-page-tabs,
.nx-profile-tabs {
  border-color: var(--fe7-neutral-line) !important;
  background: var(--fe7-zone-soft);
}

:root[data-theme="night"] .fe7-watchlist-toolbar,
:root[data-theme="night"] .fe7-toolbar,
:root[data-theme="night"] .nexus-feed-composer-actions,
:root[data-theme="night"] .fe7-page-tabs,
:root[data-theme="night"] .nx-profile-tabs {
  background: rgba(6, 18, 31, 0.66);
}

.fe7-preview-chart-shell {
  border-style: solid;
  background:
    linear-gradient(rgba(120, 160, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 190, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(19, 200, 232, 0.09), transparent 30%),
    var(--fe7-zone-soft);
}

.fe7-page-analytics .fe7-heatmap {
  min-height: 164px;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(120, 160, 190, 0.12) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(225deg, rgba(120, 160, 190, 0.1) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--fe7-zone-soft);
}

.fe7-page-analytics .fe7-heatmap::after {
  content: "Preview placeholder";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(19, 200, 232, 0.32);
  border-radius: 999px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--fe7-zone-soft) 86%, transparent);
  color: var(--fe7-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.fe7-page-analytics .fe7-heatmap span {
  opacity: 0.35;
  filter: grayscale(0.6);
}

.fe7-player-card {
  gap: 8px;
}

.fe7-player-card > strong,
.fe7-player-card > span {
  display: block;
}

.fe7-preview-table-shell {
  background: var(--fe7-zone-soft);
}

.fe7-status-strip article,
.fe7-settings-summary-card,
.fe7-side-metrics div,
.fe7-inbox-aside-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fe7-neutral-line);
  background: var(--fe7-zone-soft);
}

.fe7-settings-summary-card::before,
.fe7-status-strip article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(19, 200, 232, 0.72), rgba(13, 99, 165, 0.12));
}

.fe7-feed-composer-card,
.route-page-feed .social-post-card,
.fe7-feed-right-rail .nexus-ref-panel {
  border-color: var(--fe7-neutral-line) !important;
}

.route-page-feed .social-post-actions,
.route-page-feed .social-reply-actions {
  padding-top: 10px;
  border-top: 1px solid var(--fe7-neutral-line);
}

.fe7-profile-rank-card,
.fe7-org-summary-card {
  background: var(--fe7-zone-soft) !important;
  border-color: var(--fe7-neutral-line) !important;
}

.fe7-profile-chip,
.fe7-provider-chip,
.nexus-badge,
.preview-chip,
.fe7-inbox-row-chips em {
  border-color: rgba(19, 200, 232, 0.28);
  background: rgba(19, 200, 232, 0.075);
}

.is-faceit,
.player-stats-mode-banner {
  border-color: rgba(255, 126, 38, 0.34) !important;
  background: rgba(255, 126, 38, 0.085) !important;
}

.fe7-premium-cta {
  border-color: rgba(199, 142, 44, 0.34) !important;
  background:
    linear-gradient(135deg, rgba(199, 142, 44, 0.09), rgba(19, 200, 232, 0.045)),
    var(--fe7-zone-soft) !important;
}

.fe7-premium-button[disabled] {
  cursor: not-allowed;
}

:root[data-theme="night"] .ui-placeholder,
:root[data-theme="night"] .nx-placeholder,
:root[data-theme="night"] .nexus-ref-empty,
:root[data-theme="night"] .empty-state {
  color: #c5d7e8;
}

:root[data-theme="night"] .ui-placeholder {
  border-color: rgba(19, 200, 232, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(12, 43, 69, 0.78), rgba(7, 25, 41, 0.74)) !important;
}

:root[data-theme="night"] .nexus-ref-copy,
:root[data-theme="night"] .route-detail-copy,
:root[data-theme="night"] .section-note,
:root[data-theme="night"] .nx-empty,
:root[data-theme="night"] .fe7-placeholder-copy {
  color: #aec3d7;
}

.route-page-feed .fe7-feed-composer-card {
  padding: 0;
}

.route-page-feed .fe7-feed-composer-head {
  align-items: center;
  min-height: 92px;
}

.route-page-feed .fe7-feed-demo-post {
  border-style: solid;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 246, 252, 0.92)) !important;
}

:root[data-theme="night"] .route-page-feed .fe7-feed-demo-post {
  background:
    linear-gradient(180deg, rgba(13, 43, 68, 0.92), rgba(7, 25, 42, 0.9)) !important;
}

.route-page-feed .fe7-feed-media-preview {
  border: 1px dashed rgba(19, 200, 232, 0.28);
  background:
    linear-gradient(135deg, rgba(19, 200, 232, 0.12), transparent 38%),
    var(--fe7-zone-soft);
}

.fe7-org-profile .nx-profile-name,
.route-page-organization .nx-profile-name {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.fe7-org-panel,
.fe7-org-summary-card,
.fe7-org-empty-profile .fe7-org-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 246, 252, 0.92)) !important;
}

:root[data-theme="night"] .fe7-org-panel,
:root[data-theme="night"] .fe7-org-summary-card,
:root[data-theme="night"] .fe7-org-empty-profile .fe7-org-panel {
  background:
    linear-gradient(180deg, rgba(12, 42, 67, 0.92), rgba(7, 25, 42, 0.9)) !important;
}

.fe7-org-trophy-grid,
.fe7-org-games,
.fe7-partner-grid {
  gap: 10px;
}

.fe7-org-trophy-grid .fe7-placeholder-mini,
.fe7-org-games .fe7-placeholder-mini,
.fe7-partner-grid .fe7-placeholder-mini {
  grid-column: 1 / -1;
}

@media (min-width: 1181px) {
  .fe7-feed-page {
    grid-template-columns: minmax(460px, 760px) minmax(270px, 330px);
    justify-content: center;
  }

  .fe7-inbox-shell {
    grid-template-columns: minmax(260px, 330px) minmax(420px, 1fr) minmax(250px, 310px);
  }
}

@media (max-width: 1180px) {
  .fe7-watchlist-player-row,
  .search-result-card,
  .player-match-record-table-row,
  .fe7-preview-table-row {
    padding: 12px;
    border: 1px solid var(--fe7-neutral-line);
    border-radius: 10px;
  }
}

@media (max-width: 760px) {
  .nexus-sidebar .fe7-sidebar-logo .fe7-logo-mark {
    width: 38px !important;
    height: 38px !important;
  }

  .nexus-home-brand-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .nexus-home-brand-mark {
    width: 58px !important;
    height: 58px !important;
  }

  .fe7-page-head,
  .nexus-home-dashboard-head,
  .search-route-hero,
  .fe7-profile-hero,
  .fe7-org-hero,
  .fe7-settings-head {
    padding: 14px !important;
  }

  .fe7-watchlist-toolbar,
  .fe7-toolbar,
  .fe7-page-tabs,
  .nx-profile-tabs {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .fe7-watchlist-toolbar::-webkit-scrollbar,
  .fe7-toolbar::-webkit-scrollbar,
  .fe7-page-tabs::-webkit-scrollbar,
  .nx-profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .fe7-watchlist-player-actions,
  .player-match-action-cell,
  .fe7-inbox-aside-actions,
  .nexus-home-head-actions {
    width: 100%;
  }

  .fe7-watchlist-player-actions .ghost-button,
  .fe7-watchlist-player-actions .nexus-button,
  .player-match-action-cell .ghost-button,
  .nexus-home-head-actions .ghost-button,
  .nexus-home-head-actions .solid-button {
    width: 100%;
  }

  .fe7-mover-grid {
    grid-template-columns: 1fr !important;
  }

  .fe7-mover-card {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    text-align: left;
  }

  .fe7-mover-card .fe7-slot-label {
    grid-column: 1 / -1;
  }

  .fe7-mover-card .fe7-player-portrait {
    width: 44px;
    height: 44px;
  }

  body .nexus-app-frame,
  body .nxp-board {
    grid-template-columns: 1fr !important;
  }

  body .nexus-sidebar,
  body .nxp-sidebar {
    position: sticky !important;
    top: 0;
    z-index: 50;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body .nexus-sidebar-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px !important;
  }

  body .nexus-sidebar-search {
    min-width: 0;
  }

  body .nexus-sidebar-nav {
    grid-column: 1 / -1;
    display: flex !important;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body .nexus-sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  body .nexus-sidebar-link {
    flex: 0 0 auto;
    min-width: max-content;
    padding-inline: 9px !important;
  }

  body .nexus-sidebar-user {
    grid-column: 1 / -1;
  }

  .fe7-org-profile .nx-profile-name,
  .route-page-organization .nx-profile-name {
    font-size: clamp(24px, 8vw, 34px) !important;
    line-height: 1.08;
  }

  .route-page-feed .fe7-feed-composer-head {
    min-height: 0;
    grid-template-columns: 1fr;
  }
}

/* FE-7.2l production-backed QA fixes and small-size logo tuning. */
.fe7-logo-mark {
  filter: drop-shadow(0 4px 10px rgba(8, 137, 183, 0.14));
}

.nexus-sidebar .fe7-sidebar-logo .fe7-logo-mark {
  filter: drop-shadow(0 8px 18px rgba(19, 200, 232, 0.14));
}

.route-page-feed .nexus-feed-composer-actions {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.route-page-feed .nexus-composer-chip,
.route-page-feed .nx-disabled-chip {
  border: 1px solid var(--fe7-neutral-line) !important;
  background: var(--fe7-zone-soft) !important;
  color: var(--fe7-muted);
}

:root[data-theme="night"] .route-page-feed .nexus-composer-chip,
:root[data-theme="night"] .route-page-feed .nx-disabled-chip {
  background: rgba(10, 35, 57, 0.72) !important;
}

.search-route-grid,
.search-results-shell,
.search-results-grid,
.search-group-panel,
.search-result-table,
.search-result-table-body,
.search-result-card {
  min-width: 0 !important;
  max-width: 100%;
}

.search-results-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)) !important;
}

.search-result-table-head,
.search-result-card {
  grid-template-columns: minmax(0, 1.2fr) minmax(78px, 0.44fr) minmax(0, 1fr) minmax(92px, 0.6fr) !important;
}

.search-result-route-cell,
.search-result-meta,
.search-result-title {
  overflow-wrap: anywhere;
}

.fe7-org-hero-main .fe7-org-summary-card {
  grid-area: auto !important;
}

.route-page-organization,
.route-page-organization .fe7-org-profile,
.route-page-organization .fe7-org-hero,
.route-page-organization .fe7-org-hero-main,
.route-page-organization .fe7-org-grid,
.route-page-organization .fe7-org-col,
.route-page-organization .fe7-org-panel,
.route-page-organization .fe7-org-summary-card {
  min-width: 0 !important;
  max-width: 100% !important;
}

.route-page-organization .fe7-org-hero,
.route-page-organization .fe7-org-grid {
  width: 100% !important;
}

.route-page-organization .fe7-org-grid {
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.2fr) minmax(240px, 0.85fr) !important;
}

.fe7-inbox-guest-grid .route-module-card {
  padding: 16px !important;
}

.fe7-inbox-guest-grid .route-module-card h3 {
  margin-bottom: 8px;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .route-page-organization .fe7-org-hero-main,
  .route-page-organization .fe7-org-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-page-organization .fe7-org-summary-card {
    justify-self: stretch;
  }

  .search-route-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .nexus-home-dashboard-head {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start;
  }

  .nexus-home-head-actions {
    justify-content: flex-start;
  }

  .nexus-home-dashboard-head h1 {
    font-size: clamp(28px, 6vw, 38px);
  }
}

@media (max-width: 760px) {
  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-mark {
    width: 40px !important;
    height: 40px !important;
    filter: none;
  }

  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-word {
    font-size: 21px;
    line-height: 1.08;
    letter-spacing: 0.05em !important;
  }

  body .nexus-sidebar-nav {
    position: relative;
    padding-right: 34px !important;
    scroll-padding-inline: 10px 34px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
  }

  body .nexus-sidebar-link {
    min-height: 36px !important;
  }

  .route-page-organization .fe7-org-profile,
  .route-page-organization .fe7-org-hero,
  .route-page-organization .fe7-org-hero-main,
  .route-page-organization .fe7-org-grid {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .route-page-organization .fe7-org-hero-main,
  .route-page-organization .fe7-org-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-page-organization .fe7-org-identity-block,
  .route-page-organization .fe7-org-copy,
  .route-page-organization .fe7-org-summary,
  .route-page-organization .fe7-org-actions,
  .route-page-organization .fe7-org-tabs {
    width: 100% !important;
    max-width: 100% !important;
  }

  .route-page-organization .fe7-org-summary {
    overflow-wrap: anywhere !important;
  }

  .route-page-feed .nexus-feed-composer-actions {
    justify-content: flex-start !important;
  }
}

/* FE-7.2n global design-system contrast pass. */
:root {
  --nexus-bg: #f4f7fb;
  --nexus-section: #eaf1f7;
  --nexus-surface: #ffffff;
  --nexus-surface-raised: #f7fbff;
  --nexus-surface-active: #edf6fb;
  --nexus-sidebar-bg: #f8fbff;
  --nexus-border: #d7e4ef;
  --nexus-border-strong: #94c9dd;
  --nexus-cyan: #12bfe3;
  --nexus-blue: #2563b8;
  --nexus-success: #17a872;
  --nexus-warning: #c8841e;
  --nexus-danger: #e24f66;
  --nexus-text: #0b1735;
  --nexus-text-muted: #63748a;
  --nexus-text-soft: #8293a8;
  --nexus-shadow-soft: 0 14px 34px rgba(15, 42, 74, 0.08);
  --nexus-shadow-raised: 0 18px 42px rgba(15, 42, 74, 0.11);
  --nexus-shadow-active: 0 18px 44px rgba(18, 191, 227, 0.12);

  --bg-start: #f8fbff;
  --bg-end: var(--nexus-bg);
  --panel: color-mix(in srgb, var(--nexus-surface) 92%, transparent);
  --panel-strong: var(--nexus-surface);
  --panel-border: var(--nexus-border);
  --ink: var(--nexus-text);
  --ink-strong: #071226;
  --muted: var(--nexus-text-muted);
  --muted-strong: #43546a;
  --line: var(--nexus-border);
  --line-strong: var(--nexus-border-strong);
  --accent: var(--nexus-cyan);
  --accent-soft: rgba(18, 191, 227, 0.12);
  --accent-2: var(--nexus-blue);
  --accent-2-soft: rgba(37, 99, 184, 0.1);
  --warning: var(--nexus-warning);
  --loss: var(--nexus-danger);
  --signal: var(--nexus-cyan);
  --shadow: var(--nexus-shadow-soft);
  --shadow-soft: 0 10px 24px rgba(15, 42, 74, 0.06);
  --shadow-glow: 0 0 0 1px rgba(18, 191, 227, 0.06);

  --fe7-bg: var(--nexus-bg);
  --fe7-shell: var(--nexus-section);
  --fe7-surface: var(--nexus-surface);
  --fe7-surface-2: var(--nexus-surface-raised);
  --fe7-zone-raised: var(--nexus-surface);
  --fe7-zone-soft: var(--nexus-surface-raised);
  --fe7-zone-band: var(--nexus-surface-active);
  --fe7-panel-alt: var(--nexus-section);
  --fe7-panel-band: rgba(18, 191, 227, 0.055);
  --fe7-border: var(--nexus-border);
  --fe7-border-strong: var(--nexus-border-strong);
  --fe7-neutral-line: var(--nexus-border);
  --fe7-text: var(--nexus-text);
  --fe7-muted: var(--nexus-text-muted);
  --fe7-cyan: var(--nexus-cyan);
  --fe7-cyan-2: #0d91b2;
  --fe7-blue: var(--nexus-blue);
  --fe7-green: var(--nexus-success);
  --fe7-gold: var(--nexus-warning);
  --fe7-red: var(--nexus-danger);
  --fe7-accent-safe: var(--nexus-success);
  --fe7-accent-caution: var(--nexus-warning);
  --fe7-row-alt: rgba(37, 99, 184, 0.045);
  --fe7-row-hover: rgba(18, 191, 227, 0.09);
  --fe7-card-shadow: var(--nexus-shadow-soft);
  --fe7-glow: var(--nexus-shadow-active);

  --nexus-ref-surface: var(--nexus-surface);
  --nexus-ref-surface-2: var(--nexus-surface-raised);
  --nexus-ref-border: var(--nexus-border);
  --nexus-ref-muted: var(--nexus-text-muted);
}

:root[data-theme="night"] {
  --nexus-bg: #07111d;
  --nexus-section: #0a1725;
  --nexus-surface: #0d1c2d;
  --nexus-surface-raised: #13263a;
  --nexus-surface-active: #183149;
  --nexus-sidebar-bg: #08131f;
  --nexus-border: #1e4a66;
  --nexus-border-strong: #27759b;
  --nexus-cyan: #26d9ff;
  --nexus-blue: #6aa8ff;
  --nexus-success: #32d583;
  --nexus-warning: #f5b546;
  --nexus-danger: #ff5d73;
  --nexus-text: #f3f7fc;
  --nexus-text-muted: #9eb1c5;
  --nexus-text-soft: #7890a8;
  --nexus-shadow-soft: 0 18px 38px rgba(0, 0, 0, 0.28);
  --nexus-shadow-raised: 0 24px 48px rgba(0, 0, 0, 0.34);
  --nexus-shadow-active: 0 0 0 1px rgba(38, 217, 255, 0.12), 0 20px 44px rgba(0, 0, 0, 0.34);

  --bg-start: #07111d;
  --bg-end: #091725;
  --panel: color-mix(in srgb, var(--nexus-surface) 90%, transparent);
  --panel-strong: var(--nexus-surface);
  --panel-border: var(--nexus-border);
  --ink: var(--nexus-text);
  --ink-strong: #ffffff;
  --muted: var(--nexus-text-muted);
  --muted-strong: #c7d5e4;
  --line: var(--nexus-border);
  --line-strong: var(--nexus-border-strong);
  --accent: var(--nexus-cyan);
  --accent-soft: rgba(38, 217, 255, 0.11);
  --accent-2: var(--nexus-blue);
  --accent-2-soft: rgba(106, 168, 255, 0.11);
  --warning: var(--nexus-warning);
  --loss: var(--nexus-danger);
  --signal: var(--nexus-cyan);
  --shadow: var(--nexus-shadow-soft);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.24);
  --shadow-glow: 0 0 0 1px rgba(38, 217, 255, 0.08);

  --fe7-bg: var(--nexus-bg);
  --fe7-shell: var(--nexus-section);
  --fe7-surface: var(--nexus-surface);
  --fe7-surface-2: var(--nexus-surface-raised);
  --fe7-zone-raised: var(--nexus-surface);
  --fe7-zone-soft: var(--nexus-surface-raised);
  --fe7-zone-band: var(--nexus-surface-active);
  --fe7-panel-alt: var(--nexus-section);
  --fe7-panel-band: rgba(38, 217, 255, 0.06);
  --fe7-border: var(--nexus-border);
  --fe7-border-strong: var(--nexus-border-strong);
  --fe7-neutral-line: var(--nexus-border);
  --fe7-text: var(--nexus-text);
  --fe7-muted: var(--nexus-text-muted);
  --fe7-cyan: var(--nexus-cyan);
  --fe7-cyan-2: #18b7df;
  --fe7-blue: var(--nexus-blue);
  --fe7-green: var(--nexus-success);
  --fe7-gold: var(--nexus-warning);
  --fe7-red: var(--nexus-danger);
  --fe7-accent-safe: var(--nexus-success);
  --fe7-accent-caution: var(--nexus-warning);
  --fe7-row-alt: rgba(255, 255, 255, 0.035);
  --fe7-row-hover: rgba(38, 217, 255, 0.085);
  --fe7-card-shadow: var(--nexus-shadow-soft);
  --fe7-glow: var(--nexus-shadow-active);

  --nexus-ref-surface: var(--nexus-surface);
  --nexus-ref-surface-2: var(--nexus-surface-raised);
  --nexus-ref-border: var(--nexus-border);
  --nexus-ref-muted: var(--nexus-text-muted);
}

html,
body,
body.nx-active {
  color: var(--nexus-text);
  background: linear-gradient(180deg, #f8fbff 0%, var(--nexus-bg) 100%) !important;
  font-family: var(--font-body, Inter, system-ui, sans-serif);
  letter-spacing: 0 !important;
}

:root[data-theme="night"] body,
:root[data-theme="night"] body.nx-active {
  background: linear-gradient(180deg, #07111d 0%, #091725 58%, #07111d 100%) !important;
}

body::before,
body::after,
body.nx-active::before,
body.nx-active::after {
  display: none !important;
}

.noise {
  opacity: 0.025 !important;
}

:root[data-theme="night"] .noise {
  opacity: 0.035 !important;
}

.site-shell,
.nexus-app-frame,
.nxp-page,
.nxp-board,
.route-page,
.fe7-page,
.nexus-main-stage,
.nx-main,
.nxp-main {
  color: var(--nexus-text);
}

.nexus-main-stage,
.nx-main,
.nxp-main {
  background: transparent !important;
}

.nexus-sidebar,
.nxp-sidebar,
.nexus-sidebar.panel,
.nexus-sidebar.nexus-surface {
  border: 1px solid var(--nexus-border) !important;
  background: var(--nexus-sidebar-bg) !important;
  box-shadow: var(--nexus-shadow-soft) !important;
}

.nexus-sidebar-inner {
  gap: 16px;
}

.nexus-sidebar-search input,
.site-search input,
.nexus-header-search,
.fe7-inline-search,
.fe7-watchlist-sort,
.settings-field input,
.settings-field textarea,
.settings-field select {
  border-color: var(--nexus-border) !important;
  background: var(--nexus-surface-raised) !important;
  color: var(--nexus-text) !important;
  box-shadow: none !important;
}

.nexus-sidebar-search input::placeholder,
.site-search input::placeholder,
.settings-field input::placeholder,
.settings-field textarea::placeholder {
  color: var(--nexus-text-soft);
}

.nexus-sidebar-link,
.nx-sidebar-link {
  color: var(--nexus-text-muted) !important;
  border: 1px solid transparent !important;
  border-left: 3px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nexus-sidebar-link:hover,
.nx-sidebar-link:hover {
  color: var(--nexus-text) !important;
  border-color: var(--nexus-border) !important;
  border-left-color: rgba(38, 217, 255, 0.42) !important;
  background: var(--nexus-surface-raised) !important;
}

.nexus-sidebar-link.is-active,
.nx-sidebar-link.is-active {
  color: var(--nexus-text) !important;
  border-color: var(--nexus-border) !important;
  border-left-color: var(--nexus-cyan) !important;
  background: var(--nexus-surface-active) !important;
  box-shadow: inset 3px 0 0 var(--nexus-cyan) !important;
}

.nexus-sidebar-link.is-active::before,
.nx-sidebar-link.is-active::before {
  opacity: 0 !important;
  box-shadow: none !important;
}

.nexus-sidebar-link-icon,
.fe7-sidebar-link-icon,
.nxp-sidebar-icon {
  color: currentColor !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nexus-sidebar-user,
.fe7-sidebar-user,
.nexus-sidebar-user-guest,
.nexus-top-header,
.site-header.nexus-top-header {
  border-color: var(--nexus-border) !important;
  background: var(--nexus-surface) !important;
  box-shadow: var(--nexus-shadow-soft) !important;
}

.nexus-reference-card,
.nexus-ref-panel,
.nexus-surface.panel,
.fe7-card,
.route-module-card,
.social-post-card,
.inbox-chat-sidebar,
.inbox-chat-main,
.inbox-chat-detail,
.fe7-stat-card,
.nexus-stat-card,
.nx-metric,
.nexus-home-module,
.nxp-profile-card,
.nxp-module,
.nxp-card,
.fe7-settings-summary-card,
.fe7-inbox-aside-card,
.fe7-side-metrics div,
.search-group-panel,
.provider-management-panel,
.profile-settings-shell,
.avatar-crop-dialog {
  border: 1px solid var(--nexus-border) !important;
  background: var(--nexus-surface) !important;
  color: var(--nexus-text);
  box-shadow: var(--nexus-shadow-soft) !important;
}

.fe7-page-head,
.nexus-home-dashboard-head,
.search-route-hero,
.fe7-profile-hero,
.fe7-org-hero,
.fe7-preview-route .fe7-preview-head,
.fe7-settings-head {
  border: 1px solid var(--nexus-border) !important;
  background: var(--nexus-surface-raised) !important;
  box-shadow: var(--nexus-shadow-raised) !important;
}

.fe7-card .fe7-card,
.nexus-reference-card .nexus-reference-card,
.nexus-ref-panel .nexus-ref-panel,
.route-module-card .route-module-card,
.fe7-card-body .route-module-card,
.inbox-chat-main .social-post-card,
.fe7-watchlist-spotlight,
.fe7-watchlist-table-card,
.fe7-watchlist-side .fe7-card,
.fe7-profile-rank-card,
.fe7-org-summary-card,
.nexus-home-score-shell,
.route-page-feed .nexus-rail-empty,
.fe7-preview-table-shell,
.fe7-preview-chart-shell,
.fe7-settings-mini-card,
.provider-management-row,
.search-result-card,
.player-match-record-table-row {
  border-color: var(--nexus-border) !important;
  background: var(--nexus-surface-raised) !important;
  box-shadow: none !important;
}

.fe7-card-header,
.nexus-ref-panel-head,
.fe7-preview-table-head,
.fe7-watchlist-table-head,
.search-result-table-head,
.player-match-record-table-head,
.provider-management-head,
.inbox-chat-thread-head,
.inbox-chat-search-row,
.fe7-card-kicker,
.fe7-settings-card-kicker {
  border-color: var(--nexus-border) !important;
  background: var(--nexus-surface-active) !important;
  color: var(--nexus-text-muted) !important;
}

.fe7-watchlist-player-row,
.search-result-card,
.player-match-record-table-row,
.provider-management-row,
.fe7-preview-table-row,
.fe7-table-row,
.inbox-conversation-preview,
.fe7-alert-item,
.nexus-home-activity-list article {
  border-color: var(--nexus-border) !important;
  background: transparent;
}

.fe7-watchlist-player-row:nth-child(even),
.search-result-card:nth-child(even),
.player-match-record-table-row:nth-child(even),
.provider-management-row:nth-child(even),
.fe7-preview-table-row:nth-child(even),
.fe7-table-row:nth-child(even) {
  background: rgba(37, 99, 184, 0.035);
}

:root[data-theme="night"] .fe7-watchlist-player-row:nth-child(even),
:root[data-theme="night"] .search-result-card:nth-child(even),
:root[data-theme="night"] .player-match-record-table-row:nth-child(even),
:root[data-theme="night"] .provider-management-row:nth-child(even),
:root[data-theme="night"] .fe7-preview-table-row:nth-child(even),
:root[data-theme="night"] .fe7-table-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.035);
}

.fe7-watchlist-player-row:hover,
.search-result-card:hover,
.player-match-record-table-row:hover,
.provider-management-row:hover,
.inbox-conversation-preview:hover {
  border-color: var(--nexus-border-strong) !important;
  background: var(--nexus-surface-active) !important;
}

.nexus-home-module::before,
.fe7-card::before,
.nexus-ref-panel::before,
.route-module-card::before,
.fe7-stat-card::before,
.nexus-stat-card::before,
.nx-metric::before,
.fe7-settings-summary-card::before,
.fe7-status-strip article::before {
  width: 3px;
  background: linear-gradient(180deg, var(--nexus-cyan), rgba(38, 217, 255, 0.08)) !important;
  opacity: 0.78;
  box-shadow: none !important;
}

.fe7-stat-grid .fe7-stat-card:nth-child(2)::before,
.fe7-settings-summary-grid .fe7-settings-summary-card:nth-child(2)::before,
.fe7-status-strip article:nth-child(2)::before {
  background: linear-gradient(180deg, var(--nexus-success), rgba(50, 213, 131, 0.08)) !important;
}

.fe7-stat-grid .fe7-stat-card:nth-child(3)::before,
.fe7-settings-summary-grid .fe7-settings-summary-card:nth-child(3)::before,
.fe7-status-strip article:nth-child(3)::before {
  background: linear-gradient(180deg, var(--nexus-warning), rgba(245, 181, 70, 0.08)) !important;
}

.fe7-stat-grid .fe7-stat-card:nth-child(4)::before,
.fe7-settings-summary-grid .fe7-settings-summary-card:nth-child(4)::before,
.fe7-status-strip article:nth-child(4)::before {
  background: linear-gradient(180deg, var(--nexus-blue), rgba(106, 168, 255, 0.08)) !important;
}

.solid-button,
.nexus-button--primary,
.action-button-positive,
.provider-connect-action {
  border-color: color-mix(in srgb, var(--nexus-cyan) 58%, var(--nexus-border)) !important;
  background: linear-gradient(135deg, #0d91b2, var(--nexus-blue)) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(13, 145, 178, 0.16) !important;
}

.solid-button:hover,
.nexus-button--primary:hover,
.action-button-positive:hover,
.provider-connect-action:hover {
  border-color: var(--nexus-cyan) !important;
  box-shadow: 0 14px 28px rgba(13, 145, 178, 0.2) !important;
}

.ghost-button,
.nexus-button--secondary,
.nexus-icon-button,
.nexus-login-action,
.nexus-profile-action,
.fe7-head-action,
.fe7-card-action-link,
.provider-coming-soon-action {
  border-color: var(--nexus-border) !important;
  background: var(--nexus-surface-raised) !important;
  color: var(--nexus-text) !important;
  box-shadow: none !important;
}

.ghost-button:hover,
.nexus-button--secondary:hover,
.nexus-icon-button:hover,
.nexus-login-action:hover,
.nexus-profile-action:hover,
.fe7-head-action:hover {
  border-color: var(--nexus-border-strong) !important;
  background: var(--nexus-surface-active) !important;
  color: var(--nexus-text) !important;
}

.fe7-profile-chip,
.fe7-provider-chip,
.nexus-badge,
.preview-chip,
.placeholder-chip,
.provider-status-pill,
.fe7-inbox-row-chips em,
.nav-soon-pill,
.nexus-tab-soon {
  border-color: color-mix(in srgb, var(--nexus-cyan) 30%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-cyan) 10%, var(--nexus-surface-raised)) !important;
  color: var(--nexus-text) !important;
}

.is-faceit,
.fe7-provider-chip.is-faceit,
.platform-badge.is-provider-verified,
.player-stats-mode-banner {
  border-color: rgba(255, 126, 38, 0.38) !important;
  background: rgba(255, 126, 38, 0.1) !important;
  color: color-mix(in srgb, #ff9f43 88%, var(--nexus-text)) !important;
}

.ui-placeholder,
.nx-placeholder,
.nexus-ref-empty,
.empty-state,
.fe7-placeholder-notice {
  border-color: color-mix(in srgb, var(--nexus-warning) 42%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-warning) 8%, var(--nexus-surface-raised)) !important;
  color: var(--nexus-text-muted) !important;
}

.ui-placeholder::after {
  border-color: color-mix(in srgb, var(--nexus-warning) 44%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-warning) 14%, var(--nexus-surface-active)) !important;
  color: var(--nexus-warning) !important;
}

.fe7-preview-route,
.fe7-page-predictions,
.fe7-page-market,
.fe7-page-matches,
.fe7-page-analytics {
  background: transparent !important;
}

.fe7-preview-chart-shell,
.fe7-page-analytics .fe7-heatmap,
.nexus-home-score-shell,
.route-page-feed .fe7-feed-media-preview {
  background:
    linear-gradient(rgba(99, 116, 138, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 116, 138, 0.1) 1px, transparent 1px),
    var(--nexus-surface-raised) !important;
  background-size: 28px 28px;
}

.fe7-play-button {
  width: 92px !important;
  height: 92px !important;
  padding: 10px;
  text-align: center;
  line-height: 1.15;
}

:root[data-theme="night"] .fe7-preview-chart-shell,
:root[data-theme="night"] .fe7-page-analytics .fe7-heatmap,
:root[data-theme="night"] .nexus-home-score-shell,
:root[data-theme="night"] .route-page-feed .fe7-feed-media-preview {
  background:
    linear-gradient(rgba(158, 177, 197, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 177, 197, 0.08) 1px, transparent 1px),
    var(--nexus-surface-raised) !important;
  background-size: 28px 28px;
}

.fe7-pending-value {
  color: var(--nexus-warning) !important;
}

.fe7-mini-trend.is-up,
.stat-positive,
.is-positive,
.provider-status-pill.is-connected,
.provider-status-pill.is-verified {
  color: var(--nexus-success) !important;
}

.fe7-mini-trend.is-down,
.stat-negative,
.is-negative,
.provider-status-pill.is-error {
  color: var(--nexus-danger) !important;
}

.fe7-mini-trend.is-flat,
.stat-muted,
.is-muted,
.provider-status-pill.is-inactive,
.provider-status-pill.is-unavailable {
  color: var(--nexus-text-muted) !important;
}

.fe7-logo-word,
.nx-logo-word,
.nexus-wordmark,
.nxp-logo-word {
  font-family: var(--font-body, Inter, system-ui, sans-serif) !important;
  font-weight: 900 !important;
  letter-spacing: 0.045em !important;
  color: var(--nexus-text) !important;
}

.fe7-logo-tagline,
.nx-logo-tagline,
.nexus-brand-tagline,
.nxp-logo-tagline {
  color: var(--nexus-text-muted) !important;
  letter-spacing: 0.105em !important;
}

.fe7-logo-mark,
.nexus-brand-mark,
.nx-logo-mark,
.nxp-logo-mark,
.nexus-home-brand-mark {
  filter: drop-shadow(0 8px 18px rgba(18, 191, 227, 0.14)) !important;
}

:root[data-theme="night"] .fe7-logo-mark,
:root[data-theme="night"] .nexus-brand-mark,
:root[data-theme="night"] .nx-logo-mark,
:root[data-theme="night"] .nxp-logo-mark,
:root[data-theme="night"] .nexus-home-brand-mark {
  filter: drop-shadow(0 8px 18px rgba(38, 217, 255, 0.12)) !important;
}

.nexus-sidebar .fe7-sidebar-logo .fe7-logo-mark {
  width: 84px !important;
  height: 84px !important;
}

.nexus-sidebar .fe7-sidebar-logo .fe7-logo-word {
  font-size: 24px !important;
  letter-spacing: 0.052em !important;
}

.fe7-stat-label,
.nx-metric-label,
.nexus-ref-metric-label,
.fe7-card-title,
.nexus-ref-panel-title,
.route-module-card h3,
.fe7-preview-table-head,
.fe7-watchlist-table-head,
.search-result-table-head,
.player-match-record-table-head,
.provider-management-head {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

.fe7-stat-value,
.nx-metric-value,
.nexus-ref-metric-value,
.route-module-value,
.fe7-profile-rank-value,
.fe7-org-rank-value {
  font-family: var(--font-body, Inter, system-ui, sans-serif) !important;
  color: var(--nexus-text) !important;
}

.fe7-watchlist-table-cell small,
.search-result-cell small,
.player-match-record-cell small,
.provider-management-row small,
.fe7-table-row small {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.nexus-ref-copy,
.route-detail-copy,
.section-note,
.nx-empty,
.fe7-placeholder-copy,
.fe7-stat-detail,
.fe7-profile-bio,
.fe7-profile-subtitle,
.fe7-org-summary,
.search-result-meta,
.fe7-watchlist-signal-cell,
.player-match-record-cell span {
  color: var(--nexus-text-muted) !important;
}

@media (max-width: 760px) {
  .fe7-player-profile-page .fe7-profile-hero,
  .fe7-player-profile-page .fe7-profile-identity-block,
  .fe7-player-profile-page .fe7-profile-copy,
  .fe7-player-profile-page .fe7-profile-name-row,
  .fe7-player-profile-page .fe7-profile-title,
  .fe7-player-profile-page .fe7-profile-subtitle,
  .fe7-player-profile-page .fe7-profile-bio,
  .fe7-player-profile-page .fe7-profile-actions,
  .fe7-player-profile-page .fe7-profile-chip-row,
  .fe7-player-profile-page .fe7-profile-social-row {
    justify-content: center !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .fe7-player-profile-page .fe7-profile-title,
  .fe7-player-profile-page .fe7-profile-subtitle,
  .fe7-player-profile-page .fe7-profile-bio {
    width: 100% !important;
    margin-inline: auto !important;
  }

  body .nexus-sidebar,
  body .nxp-sidebar {
    background: var(--nexus-sidebar-bg) !important;
  }

  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-mark {
    width: 42px !important;
    height: 42px !important;
  }

  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-word {
    font-size: 21px !important;
  }

  body .nexus-sidebar-link.is-active,
  body .nx-sidebar-link.is-active {
    box-shadow: inset 0 -2px 0 var(--nexus-cyan) !important;
    border-left-color: transparent !important;
  }
}

/* FE-7.2o hierarchy and information-architecture pass. */
:root {
  --nexus-module-hero-shadow: 0 28px 62px rgba(15, 42, 74, 0.14);
  --nexus-module-large-shadow: 0 18px 40px rgba(15, 42, 74, 0.1);
  --nexus-module-small-shadow: 0 8px 20px rgba(15, 42, 74, 0.06);
}

:root[data-theme="night"] {
  --nexus-module-hero-shadow: 0 30px 72px rgba(0, 0, 0, 0.42);
  --nexus-module-large-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
  --nexus-module-small-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.fe7-page-head,
.nexus-home-dashboard-head,
.search-route-hero,
.fe7-profile-hero,
.fe7-org-hero,
.fe7-preview-route .fe7-preview-head,
.fe7-settings-head,
.placeholder-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.fe7-page-head::after,
.nexus-home-dashboard-head::after,
.search-route-hero::after,
.fe7-profile-hero::after,
.fe7-org-hero::after,
.fe7-preview-route .fe7-preview-head::after,
.fe7-settings-head::after {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nexus-cyan), transparent 72%);
  opacity: 0.42;
  pointer-events: none;
}

.fe7-card,
.nexus-reference-card,
.route-module-card,
.social-post-card,
.nexus-home-module,
.nxp-module,
.fe7-settings-card,
.search-group-panel,
.fe7-inbox-aside-card {
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.nexus-home-module-hero,
.fe7-watchlist-spotlight,
.player-faceit-stats-panel,
.player-match-records-panel,
.fe7-spotlight-card,
.fe7-live-match,
.fe7-chart-card,
.fe7-settings-profile,
.fe7-inbox-main,
.search-results-shell .search-group-panel:first-child {
  border-color: var(--nexus-border-strong) !important;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--nexus-surface-active) 54%, transparent), transparent 68%),
    var(--nexus-surface-raised) !important;
  box-shadow: var(--nexus-module-hero-shadow) !important;
}

.nexus-home-module-hero::before,
.fe7-watchlist-spotlight::before,
.player-faceit-stats-panel::before,
.player-match-records-panel::before,
.fe7-spotlight-card::before,
.fe7-live-match::before,
.fe7-chart-card::before,
.fe7-settings-profile::before,
.fe7-inbox-main::before {
  width: 5px !important;
  opacity: 1 !important;
}

.nexus-home-module-large,
.fe7-watchlist-table-card,
.fe7-page-analytics .fe7-breakdown-card,
.fe7-market-main > .nexus-ref-panel,
.fe7-settings-providers,
.fe7-org-grid .fe7-org-col-center .fe7-org-panel:first-child,
.fe7-player-overview-grid .fe7-player-overview-wide,
.nxp-stats-summary-row > .player-profile-module:first-child,
.search-result-table,
.inbox-chat-sidebar {
  background: var(--nexus-surface-raised) !important;
  box-shadow: var(--nexus-module-large-shadow) !important;
}

.nexus-home-module-small,
.fe7-watchlist-side .fe7-card,
.fe7-watchlist-side .nexus-ref-panel,
.fe7-feed-right-rail .nexus-ref-panel,
.fe7-inbox-detail-rail,
.search-route-sidebar .nexus-ref-panel,
.fe7-settings-preferences,
.fe7-settings-account-state,
.fe7-org-col-right .fe7-org-panel,
.fe7-preview-route > .fe7-placeholder-notice,
.fe7-preview-route > .nexus-ref-panel:last-child {
  border-color: color-mix(in srgb, var(--nexus-border) 72%, transparent) !important;
  background: color-mix(in srgb, var(--nexus-surface) 78%, transparent) !important;
  box-shadow: var(--nexus-module-small-shadow) !important;
}

.nexus-home-command-grid {
  align-items: stretch;
}

.nexus-home-module-hero {
  min-height: 260px;
}

.nexus-home-module-hero .nexus-home-score-shell {
  min-height: 168px;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
}

.nexus-home-module-hero .nexus-home-score-shell strong {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.nexus-home-module-large .nexus-home-activity-list article {
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.4fr) auto;
  min-height: 52px;
  padding-block: 11px;
}

.nexus-home-module-small {
  gap: 12px;
  padding: 16px;
}

.nexus-home-module-small h2,
.fe7-feed-right-rail .nexus-ref-panel-title,
.fe7-watchlist-side .fe7-card-title,
.search-route-sidebar .nexus-ref-panel-title,
.fe7-inbox-aside-card h3 {
  font-size: 0.92rem !important;
}

.nexus-feed-center {
  min-width: 0;
}

.route-page-feed .fe7-feed-composer-card {
  border-color: color-mix(in srgb, var(--nexus-border) 70%, transparent) !important;
  background: color-mix(in srgb, var(--nexus-surface) 82%, transparent) !important;
  box-shadow: var(--nexus-module-small-shadow) !important;
}

.route-page-feed .feed-post-list {
  display: grid;
  gap: 14px;
}

.route-page-feed .social-post-card {
  border-color: var(--nexus-border-strong) !important;
}

.route-page-feed .social-post-card:first-child {
  background: var(--nexus-surface-raised) !important;
  box-shadow: var(--nexus-module-large-shadow) !important;
}

.nexus-feed-empty-state {
  display: grid;
  gap: 10px;
  min-height: 220px;
  align-content: center;
  border: 1px dashed color-mix(in srgb, var(--nexus-warning) 48%, var(--nexus-border)) !important;
  border-radius: 18px;
  padding: clamp(22px, 5vw, 42px);
  background: color-mix(in srgb, var(--nexus-warning) 6%, var(--nexus-surface-raised)) !important;
  color: var(--nexus-text);
}

.nexus-feed-empty-kicker {
  width: max-content;
  border: 1px solid color-mix(in srgb, var(--nexus-warning) 42%, var(--nexus-border));
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--nexus-warning);
  font-size: 0.75rem;
  font-weight: 800;
}

.nexus-feed-empty-state strong {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1;
}

.nexus-feed-empty-state p {
  max-width: 58ch;
  margin: 0;
  color: var(--nexus-text-muted);
}

.fe7-feed-right-rail {
  gap: 12px;
}

.fe7-feed-right-rail .nexus-ref-panel-body {
  padding: 12px !important;
}

.nexus-follow-row,
.nexus-live-match-card,
.fe7-alert-item,
.inbox-conversation-preview,
.search-result-card,
.provider-management-row {
  min-height: auto;
}

.fe7-watchlist-main {
  align-items: start;
}

.fe7-watchlist-spotlight {
  margin-bottom: 14px;
}

.fe7-watchlist-spotlight-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.8fr);
  gap: 18px;
}

.fe7-watchlist-spotlight-note {
  grid-column: 1 / -1;
  border-top: 1px solid var(--nexus-border);
  padding-top: 12px;
}

.fe7-watchlist-table-card .fe7-card-body {
  padding-top: 0;
}

.fe7-watchlist-player-row,
.player-match-record-table-row,
.search-result-card,
.provider-management-row,
.fe7-preview-table-row {
  padding-block: 10px !important;
}

.fe7-watchlist-table-head,
.player-match-record-table-head,
.search-result-table-head,
.provider-management-table-head,
.fe7-preview-table-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 38px;
}

.fe7-watchlist-side {
  gap: 12px;
}

.fe7-watchlist-side .fe7-card-body {
  padding: 12px !important;
}

.search-route-grid {
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  align-items: start;
}

.search-route-sidebar {
  gap: 12px;
}

.search-results-grid {
  display: grid;
  gap: 14px;
}

.search-results-shell .search-group-panel:first-child {
  min-height: 260px;
}

.search-route-sidebar .nexus-ref-metric-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.search-route-sidebar .nexus-ref-metric,
.fe7-settings-summary-card,
.fe7-side-metrics div {
  padding: 12px !important;
}

.inbox-chat-shell {
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.55fr) minmax(220px, 0.55fr);
  gap: 14px;
}

.fe7-inbox-sidebar {
  box-shadow: var(--nexus-module-small-shadow) !important;
}

.fe7-inbox-main {
  min-height: 640px;
}

.fe7-inbox-detail-rail {
  align-self: start;
}

.inbox-conversation-preview {
  border-radius: 12px !important;
  padding: 12px !important;
}

.fe7-settings-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.fe7-settings-summary-card strong {
  font-size: clamp(1rem, 1.4vw, 1.28rem) !important;
  line-height: 1.1;
}

.fe7-settings-grid {
  align-items: start;
}

.fe7-settings-profile {
  grid-row: span 2;
}

.fe7-settings-providers {
  grid-column: span 1;
}

.settings-choice-card,
.provider-management-card,
.fe7-settings-mini-card {
  border-color: color-mix(in srgb, var(--nexus-border) 70%, transparent) !important;
}

.fe7-profile-hero,
.fe7-org-hero {
  margin-bottom: 18px;
}

.fe7-player-overview-grid,
.fe7-org-grid {
  gap: 16px;
}

.fe7-player-overview-wide,
.fe7-org-col-center .fe7-org-panel:first-child {
  min-height: 240px;
}

.fe7-player-links-module,
.fe7-player-name-history-module,
.fe7-org-col-right .fe7-org-panel {
  font-size: 0.92rem;
}

.player-stats-mode-tabs {
  margin-bottom: 14px;
}

.nxp-stats-summary-row {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 14px;
}

.player-faceit-stats-panel .nexus-ref-metric-grid,
.faceit-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.player-match-records-panel .nxp-module-body {
  gap: 12px;
}

.player-match-record-scroll {
  max-height: min(68vh, 760px);
  overflow: auto;
}

.fe7-preview-route {
  display: grid;
  gap: 16px;
}

.fe7-preview-route .fe7-placeholder-notice {
  order: 8;
}

.fe7-preview-route .fe7-status-strip {
  order: 7;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fe7-preview-route .fe7-stat-grid {
  order: 2;
}

.fe7-page-predictions > .fe7-two-col,
.fe7-page-market .fe7-market-main,
.fe7-page-matches .fe7-match-hero,
.fe7-page-analytics > .fe7-two-col {
  order: 1;
}

.fe7-page-predictions .fe7-market-grid,
.fe7-page-market .fe7-two-col:not(.fe7-market-main),
.fe7-page-matches .fe7-three-col,
.fe7-page-analytics .fe7-four-col,
.fe7-page-analytics > .fe7-card {
  order: 3;
}

.fe7-preview-route .fe7-page-tabs,
.fe7-preview-route .fe7-toolbar {
  order: 4;
}

.fe7-page-predictions > .fe7-two-col {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.65fr);
}

.fe7-page-predictions .fe7-spotlight-card {
  min-height: 360px;
}

.fe7-market-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.fe7-match-tile {
  min-height: auto;
}

.fe7-page-market .fe7-market-main {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.fe7-page-market .fe7-mover-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.fe7-page-market .fe7-mover-card {
  padding: 12px !important;
}

.fe7-page-matches .fe7-match-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
}

.fe7-page-matches .fe7-live-match {
  min-height: 360px;
}

.fe7-page-matches .fe7-three-col,
.fe7-page-analytics .fe7-four-col {
  gap: 12px;
}

.fe7-page-analytics > .fe7-two-col {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
}

.fe7-page-analytics .fe7-chart-card {
  min-height: 390px;
}

.fe7-page-analytics .fe7-preview-chart-shell {
  min-height: 260px;
}

.fe7-preview-route > .nexus-ref-panel:last-child {
  order: 10;
}

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

  .inbox-chat-shell,
  .search-route-grid,
  .fe7-page-predictions > .fe7-two-col,
  .fe7-page-market .fe7-market-main,
  .fe7-page-matches .fe7-match-hero,
  .fe7-page-analytics > .fe7-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .fe7-inbox-detail-rail {
    display: none;
  }
}

@media (max-width: 760px) {
  .nexus-home-module-hero,
  .fe7-page-predictions .fe7-spotlight-card,
  .fe7-page-matches .fe7-live-match,
  .fe7-page-analytics .fe7-chart-card,
  .fe7-inbox-main {
    min-height: auto;
  }

  .nexus-home-module-hero .nexus-home-score-shell,
  .fe7-page-analytics .fe7-preview-chart-shell {
    min-height: 180px;
  }

  .fe7-settings-summary-grid,
  .fe7-preview-route .fe7-status-strip,
  .search-route-sidebar .nexus-ref-metric-grid,
  .fe7-watchlist-spotlight-grid,
  .nxp-stats-summary-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-route-sidebar {
    order: 2;
  }

  .search-results-shell {
    order: 1;
  }

  .route-page-feed .fe7-feed-composer-card {
    padding: 14px !important;
  }

  .nexus-feed-empty-state {
    min-height: 180px;
  }
}

/* FE-7.2p surface differentiation and visual contrast pass. */
:root {
  --nexus-bg: #f3f5f8;
  --nexus-section: #e8edf3;
  --nexus-surface: #ffffff;
  --nexus-surface-raised: #f7f9fb;
  --nexus-surface-active: #eef3f7;
  --nexus-sidebar-bg: #f9fbfd;
  --nexus-border: #ccd6e1;
  --nexus-border-strong: #8fa6ba;
  --nexus-cyan: #12b7d6;
  --nexus-blue: #477fca;
  --nexus-text: #101827;
  --nexus-text-muted: #607085;
  --nexus-text-soft: #8290a2;
  --nexus-nav-surface: #f8fafc;
  --nexus-hero-surface: #f8fbff;
  --nexus-dashboard-surface: #ffffff;
  --nexus-table-surface: #f9fbfd;
  --nexus-table-head-surface: #e9eff5;
  --nexus-chart-surface: #f4f7fa;
  --nexus-feed-surface: #fffdf9;
  --nexus-provider-surface: #f8fafc;
  --nexus-preview-surface: #fbf8ef;
  --nexus-utility-surface: #f2f5f8;
  --nexus-shadow-soft: 0 12px 28px rgba(20, 32, 44, 0.08);
  --nexus-shadow-raised: 0 18px 42px rgba(20, 32, 44, 0.12);
  --nexus-module-hero-shadow: 0 28px 62px rgba(20, 32, 44, 0.16);
  --nexus-module-large-shadow: 0 18px 40px rgba(20, 32, 44, 0.1);
  --nexus-module-small-shadow: 0 8px 20px rgba(20, 32, 44, 0.06);

  --fe7-bg: var(--nexus-bg);
  --fe7-shell: var(--nexus-section);
  --fe7-surface: var(--nexus-surface);
  --fe7-surface-2: var(--nexus-surface-raised);
  --fe7-zone-raised: var(--nexus-dashboard-surface);
  --fe7-zone-soft: var(--nexus-utility-surface);
  --fe7-zone-band: var(--nexus-surface-active);
  --fe7-border: var(--nexus-border);
  --fe7-border-strong: var(--nexus-border-strong);
  --fe7-row-alt: rgba(16, 24, 39, 0.035);
  --fe7-row-hover: rgba(18, 183, 214, 0.08);
  --panel: color-mix(in srgb, var(--nexus-surface) 94%, transparent);
  --panel-strong: var(--nexus-dashboard-surface);
  --panel-border: var(--nexus-border);
  --line: var(--nexus-border);
  --line-strong: var(--nexus-border-strong);
}

:root[data-theme="night"] {
  --nexus-bg: #070b12;
  --nexus-section: #0b1018;
  --nexus-surface: #101722;
  --nexus-surface-raised: #172230;
  --nexus-surface-active: #1d2b3d;
  --nexus-sidebar-bg: #080d14;
  --nexus-border: #233243;
  --nexus-border-strong: #35516b;
  --nexus-cyan: #26d9ff;
  --nexus-blue: #6aa8ff;
  --nexus-text: #f3f7fc;
  --nexus-text-muted: #a4b2c3;
  --nexus-text-soft: #7f91a5;
  --nexus-nav-surface: #090e15;
  --nexus-hero-surface: #111b28;
  --nexus-dashboard-surface: #101722;
  --nexus-table-surface: #0e141d;
  --nexus-table-head-surface: #182434;
  --nexus-chart-surface: #0c121b;
  --nexus-feed-surface: #12141b;
  --nexus-provider-surface: #111923;
  --nexus-preview-surface: #151716;
  --nexus-utility-surface: #0d131c;
  --nexus-shadow-soft: 0 18px 38px rgba(0, 0, 0, 0.32);
  --nexus-shadow-raised: 0 24px 48px rgba(0, 0, 0, 0.4);
  --nexus-module-hero-shadow: 0 30px 72px rgba(0, 0, 0, 0.48);
  --nexus-module-large-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
  --nexus-module-small-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);

  --fe7-bg: var(--nexus-bg);
  --fe7-shell: var(--nexus-section);
  --fe7-surface: var(--nexus-surface);
  --fe7-surface-2: var(--nexus-surface-raised);
  --fe7-zone-raised: var(--nexus-dashboard-surface);
  --fe7-zone-soft: var(--nexus-utility-surface);
  --fe7-zone-band: var(--nexus-surface-active);
  --fe7-border: var(--nexus-border);
  --fe7-border-strong: var(--nexus-border-strong);
  --fe7-row-alt: rgba(255, 255, 255, 0.026);
  --fe7-row-hover: rgba(38, 217, 255, 0.075);
  --panel: color-mix(in srgb, var(--nexus-surface) 92%, transparent);
  --panel-strong: var(--nexus-dashboard-surface);
  --panel-border: var(--nexus-border);
  --line: var(--nexus-border);
  --line-strong: var(--nexus-border-strong);
}

html,
body,
body.nx-active {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nexus-section) 64%, transparent) 0%, var(--nexus-bg) 48%, var(--nexus-bg) 100%) !important;
}

:root[data-theme="night"] body,
:root[data-theme="night"] body.nx-active {
  background:
    radial-gradient(circle at 28% 0%, rgba(38, 217, 255, 0.035), transparent 32%),
    linear-gradient(180deg, #070b12 0%, #080c13 44%, #070b12 100%) !important;
}

.nexus-sidebar,
.nxp-sidebar,
.nexus-sidebar.panel,
.nexus-sidebar.nexus-surface {
  border-color: color-mix(in srgb, var(--nexus-border) 84%, transparent) !important;
  background: var(--nexus-nav-surface) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2) !important;
}

.nexus-sidebar-search input {
  border-color: color-mix(in srgb, var(--nexus-border) 72%, transparent) !important;
  background: color-mix(in srgb, var(--nexus-nav-surface) 82%, var(--nexus-surface-raised)) !important;
}

.nexus-sidebar-link,
.nx-sidebar-link {
  border-color: transparent !important;
  border-left-color: transparent !important;
  background: transparent !important;
}

.nexus-sidebar-link:hover,
.nx-sidebar-link:hover {
  border-color: color-mix(in srgb, var(--nexus-border) 64%, transparent) !important;
  border-left-color: color-mix(in srgb, var(--nexus-cyan) 32%, transparent) !important;
  background: color-mix(in srgb, var(--nexus-surface-raised) 48%, transparent) !important;
}

.nexus-sidebar-link.is-active,
.nx-sidebar-link.is-active {
  border-color: var(--nexus-border) !important;
  border-left-color: var(--nexus-cyan) !important;
  background: color-mix(in srgb, var(--nexus-surface-active) 66%, var(--nexus-nav-surface)) !important;
  box-shadow: inset 3px 0 0 var(--nexus-cyan) !important;
}

.nexus-sidebar-user,
.fe7-sidebar-user,
.nexus-sidebar-user-guest {
  background: color-mix(in srgb, var(--nexus-nav-surface) 72%, var(--nexus-surface-raised)) !important;
}

.fe7-page-head,
.nexus-home-dashboard-head,
.search-route-hero,
.fe7-profile-hero,
.fe7-org-hero,
.fe7-preview-route .fe7-preview-head,
.fe7-settings-head,
.placeholder-hero,
.nexus-home-module-hero,
.fe7-watchlist-spotlight,
.fe7-spotlight-card,
.fe7-live-match,
.fe7-chart-card,
.fe7-settings-profile,
.fe7-inbox-main,
.player-faceit-stats-panel,
.player-match-records-panel {
  border-color: color-mix(in srgb, var(--nexus-border-strong) 72%, var(--nexus-border)) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nexus-hero-surface) 92%, transparent), color-mix(in srgb, var(--nexus-surface-active) 42%, transparent)),
    var(--nexus-hero-surface) !important;
  box-shadow: var(--nexus-module-hero-shadow) !important;
}

.fe7-page-head::after,
.nexus-home-dashboard-head::after,
.search-route-hero::after,
.fe7-profile-hero::after,
.fe7-org-hero::after,
.fe7-preview-route .fe7-preview-head::after,
.fe7-settings-head::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--nexus-cyan) 62%, var(--nexus-border)), transparent 72%) !important;
  opacity: 0.28 !important;
}

.fe7-card,
.nexus-reference-card,
.nexus-ref-panel,
.route-module-card,
.nexus-home-module,
.nxp-module,
.nxp-card,
.fe7-settings-card,
.search-group-panel {
  border-color: color-mix(in srgb, var(--nexus-border) 84%, transparent) !important;
  background: var(--nexus-dashboard-surface) !important;
}

.fe7-card::before,
.nexus-ref-panel::before,
.route-module-card::before,
.nexus-home-module::before,
.fe7-stat-card::before,
.nexus-stat-card::before,
.nx-metric::before,
.fe7-settings-summary-card::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nexus-border-strong) 70%, transparent), transparent) !important;
  opacity: 0.5 !important;
  box-shadow: none !important;
}

.nexus-home-module-hero::before,
.fe7-watchlist-spotlight::before,
.fe7-spotlight-card::before,
.fe7-live-match::before,
.fe7-chart-card::before,
.fe7-settings-profile::before,
.fe7-inbox-main::before,
.player-faceit-stats-panel::before,
.player-match-records-panel::before {
  background: linear-gradient(180deg, var(--nexus-cyan), color-mix(in srgb, var(--nexus-blue) 42%, transparent)) !important;
  opacity: 0.92 !important;
}

.fe7-stat-card,
.nexus-stat-card,
.nx-metric,
.fe7-settings-summary-card {
  border-color: color-mix(in srgb, var(--nexus-border) 76%, transparent) !important;
  background: color-mix(in srgb, var(--nexus-dashboard-surface) 86%, var(--nexus-utility-surface)) !important;
  box-shadow: var(--nexus-module-small-shadow) !important;
}

.fe7-stat-grid .fe7-stat-card:nth-child(2)::before,
.fe7-settings-summary-grid .fe7-settings-summary-card:nth-child(2)::before,
.fe7-status-strip article:nth-child(2)::before {
  background: linear-gradient(180deg, var(--nexus-success), transparent) !important;
}

.fe7-stat-grid .fe7-stat-card:nth-child(3)::before,
.fe7-settings-summary-grid .fe7-settings-summary-card:nth-child(3)::before,
.fe7-status-strip article:nth-child(3)::before {
  background: linear-gradient(180deg, var(--nexus-warning), transparent) !important;
}

.fe7-stat-grid .fe7-stat-card:nth-child(4)::before,
.fe7-settings-summary-grid .fe7-settings-summary-card:nth-child(4)::before,
.fe7-status-strip article:nth-child(4)::before {
  background: linear-gradient(180deg, var(--nexus-blue), transparent) !important;
}

.fe7-preview-chart-shell,
.fe7-page-analytics .fe7-heatmap,
.nexus-home-score-shell {
  border-color: color-mix(in srgb, var(--nexus-cyan) 24%, var(--nexus-border)) !important;
  background:
    linear-gradient(rgba(18, 183, 214, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 183, 214, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--nexus-cyan) 12%, transparent), transparent 32%),
    var(--nexus-chart-surface) !important;
  background-size: 30px 30px, 30px 30px, auto, auto !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--nexus-module-large-shadow) !important;
}

:root[data-theme="night"] .fe7-preview-chart-shell,
:root[data-theme="night"] .fe7-page-analytics .fe7-heatmap,
:root[data-theme="night"] .nexus-home-score-shell {
  background:
    linear-gradient(rgba(38, 217, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 168, 255, 0.052) 1px, transparent 1px),
    radial-gradient(circle at 16% 18%, rgba(38, 217, 255, 0.11), transparent 34%),
    var(--nexus-chart-surface) !important;
  background-size: 30px 30px, 30px 30px, auto, auto !important;
}

.faceit-analytics-section,
.player-stats-mode-tabs,
.faceit-window-shell,
.fe7-preview-route .fe7-toolbar {
  border-color: color-mix(in srgb, var(--nexus-cyan) 18%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-chart-surface) 78%, var(--nexus-surface)) !important;
}

.fe7-watchlist-table,
.search-result-table,
.provider-management-table,
.player-match-record-table,
.fe7-preview-table-shell {
  border: 1px solid var(--nexus-border) !important;
  border-radius: 14px !important;
  background: var(--nexus-table-surface) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.fe7-watchlist-table-card,
.player-match-records-panel,
.search-results-shell .search-group-panel,
.provider-management-panel {
  background: color-mix(in srgb, var(--nexus-table-surface) 76%, var(--nexus-dashboard-surface)) !important;
}

.fe7-watchlist-table-head,
.search-result-table-head,
.player-match-record-table-head,
.provider-management-table-head,
.fe7-preview-table-head {
  border-bottom: 1px solid var(--nexus-border) !important;
  background: var(--nexus-table-head-surface) !important;
  box-shadow: none !important;
}

.fe7-watchlist-player-row,
.search-result-card,
.player-match-record-table-row,
.provider-management-row,
.fe7-preview-table-row,
.fe7-table-row {
  border-width: 0 0 1px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fe7-watchlist-player-row:nth-child(even),
.search-result-card:nth-child(even),
.player-match-record-table-row:nth-child(even),
.provider-management-row:nth-child(even),
.fe7-preview-table-row:nth-child(even),
.fe7-table-row:nth-child(even) {
  background: var(--fe7-row-alt) !important;
}

.fe7-watchlist-player-row:hover,
.search-result-card:hover,
.player-match-record-table-row:hover,
.provider-management-row:hover,
.fe7-preview-table-row:hover,
.fe7-table-row:hover {
  background: var(--fe7-row-hover) !important;
  border-color: var(--nexus-border-strong) !important;
}

.route-page-feed .social-post-card,
.nexus-feed-empty-state,
.route-page-feed .fe7-feed-composer-card {
  border-color: color-mix(in srgb, var(--nexus-border) 72%, transparent) !important;
  background: var(--nexus-feed-surface) !important;
  box-shadow: var(--nexus-module-small-shadow) !important;
}

.route-page-feed .social-post-card::before,
.route-page-feed .fe7-feed-composer-card::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nexus-blue) 44%, var(--nexus-border)), transparent) !important;
}

.route-page-feed .social-post-card:first-child {
  border-color: color-mix(in srgb, var(--nexus-border-strong) 74%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-feed-surface) 86%, var(--nexus-surface-raised)) !important;
}

.social-post-actions,
.social-reply-actions,
.social-card-preview,
.social-replies-shell {
  border-color: color-mix(in srgb, var(--nexus-border) 68%, transparent) !important;
  background: color-mix(in srgb, var(--nexus-feed-surface) 72%, var(--nexus-utility-surface)) !important;
}

.provider-management-card,
.player-provider-list .route-module-card,
.provider-management-row,
.provider-management-preview,
.player-stats-mode-banner {
  background: var(--nexus-provider-surface) !important;
}

.provider-management-card::before,
.player-provider-list .route-module-card::before,
.provider-management-row::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nexus-border-strong) 76%, transparent), transparent) !important;
}

.is-faceit,
.fe7-provider-chip.is-faceit,
.platform-badge.is-provider-verified,
.player-stats-mode-banner,
.faceit-provider-label {
  border-color: rgba(255, 126, 38, 0.46) !important;
  background: rgba(255, 126, 38, 0.11) !important;
  color: color-mix(in srgb, #ff9f43 90%, var(--nexus-text)) !important;
}

.fe7-preview-route .fe7-placeholder-notice,
.fe7-preview-route > .nexus-ref-panel:last-child,
.fe7-preview-route .fe7-status-strip,
.fe7-preview-route .fe7-status-strip article,
.ui-placeholder,
.nx-placeholder,
.nexus-ref-empty,
.empty-state {
  border-color: color-mix(in srgb, var(--nexus-warning) 34%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-warning) 7%, var(--nexus-preview-surface)) !important;
}

.fe7-preview-route .fe7-status-strip article::before,
.ui-placeholder::after {
  color: var(--nexus-warning) !important;
}

.fe7-watchlist-side .fe7-card,
.fe7-feed-right-rail .nexus-ref-panel,
.fe7-inbox-detail-rail,
.search-route-sidebar .nexus-ref-panel,
.fe7-settings-preferences,
.fe7-settings-account-state,
.fe7-org-col-right .fe7-org-panel,
.fe7-inbox-aside-card {
  background: var(--nexus-utility-surface) !important;
  box-shadow: var(--nexus-module-small-shadow) !important;
}

.ghost-button,
.nexus-button--secondary,
.nexus-icon-button,
.nexus-login-action,
.nexus-profile-action,
.fe7-head-action,
.fe7-card-action-link,
.provider-coming-soon-action {
  border-color: color-mix(in srgb, var(--nexus-border) 84%, transparent) !important;
  background: color-mix(in srgb, var(--nexus-utility-surface) 74%, var(--nexus-surface-raised)) !important;
}

.solid-button,
.nexus-button--primary,
.action-button-positive,
.provider-connect-action {
  border-color: color-mix(in srgb, var(--nexus-cyan) 48%, var(--nexus-border)) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--nexus-cyan) 72%, #0a5670), color-mix(in srgb, var(--nexus-blue) 82%, #0c2238)) !important;
}

@media (max-width: 760px) {
  body .nexus-sidebar,
  body .nxp-sidebar {
    background: var(--nexus-nav-surface) !important;
  }

  body .nexus-sidebar-link.is-active,
  body .nx-sidebar-link.is-active {
    box-shadow: inset 0 -2px 0 var(--nexus-cyan) !important;
  }

  .fe7-watchlist-table,
  .search-result-table,
  .provider-management-table,
  .player-match-record-table,
  .fe7-preview-table-shell {
    border-radius: 12px !important;
  }
}

/* FE-7.2p scoped refinements from route-surface audit. */
.route-page-inbox .fe7-inbox-shell {
  gap: 16px;
}

.route-page-inbox .fe7-inbox-sidebar {
  background: var(--nexus-nav-surface) !important;
  box-shadow: var(--nexus-module-small-shadow) !important;
}

.route-page-inbox .fe7-inbox-main {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nexus-hero-surface) 88%, transparent), var(--nexus-dashboard-surface)),
    var(--nexus-dashboard-surface) !important;
}

.route-page-inbox .fe7-inbox-detail-rail {
  border-color: color-mix(in srgb, var(--nexus-border) 70%, transparent) !important;
  background: var(--nexus-utility-surface) !important;
}

.route-page-feed .fe7-feed-right-rail > .nexus-ref-panel {
  border-color: color-mix(in srgb, var(--nexus-border) 70%, transparent) !important;
  background: var(--nexus-utility-surface) !important;
}

.route-page-feed .fe7-feed-right-rail > .nexus-ref-panel:nth-child(1) {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nexus-success) 5%, transparent), transparent 72%),
    var(--nexus-utility-surface) !important;
}

.route-page-feed .fe7-feed-right-rail > .nexus-ref-panel:nth-child(2) {
  background: color-mix(in srgb, var(--nexus-warning) 6%, var(--nexus-preview-surface)) !important;
}

.route-page-feed .fe7-feed-right-rail > .nexus-ref-panel:nth-child(3) {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nexus-cyan) 7%, transparent), transparent 70%),
    var(--nexus-utility-surface) !important;
}

.route-page-feed .social-post-card,
.route-page-feed .fe7-feed-composer-card,
.route-page-feed .fe7-feed-right-rail > .nexus-ref-panel {
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.route-page-feed .social-post-card:hover {
  transform: translateY(-1px);
}

.search-result-table .search-result-card::before,
.provider-management-table .provider-management-row::before,
.player-match-record-table .player-match-record-table-row::before,
.fe7-watchlist-table .fe7-watchlist-player-row::before,
.fe7-preview-table-shell .fe7-preview-table-row::before,
.fe7-preview-table-shell .fe7-table-row::before {
  content: none !important;
}

.search-result-table .search-result-card:last-child,
.provider-management-table .provider-management-row:last-child,
.player-match-record-table .player-match-record-table-row:last-child,
.fe7-watchlist-table .fe7-watchlist-player-row:last-child,
.fe7-preview-table-shell .fe7-preview-table-row:last-child,
.fe7-preview-table-shell .fe7-table-row:last-child {
  border-bottom-width: 0 !important;
}

.player-faceit-stats-panel .faceit-stat-grid > .nexus-ref-metric,
.faceit-analytics-section .nexus-ref-metric {
  border-color: color-mix(in srgb, #ff7e26 26%, var(--nexus-border)) !important;
  background:
    linear-gradient(180deg, rgba(255, 126, 38, 0.07), transparent 70%),
    color-mix(in srgb, var(--nexus-chart-surface) 82%, var(--nexus-provider-surface)) !important;
}

.player-match-records-panel .player-match-record-table {
  background: var(--nexus-table-surface) !important;
}

.player-match-records-panel .player-match-enrichment-chip {
  border-color: color-mix(in srgb, var(--nexus-border-strong) 62%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-table-head-surface) 72%, transparent) !important;
  color: var(--nexus-text-muted) !important;
}

.provider-management-table .provider-management-row {
  background: transparent !important;
}

.provider-management-table .provider-management-row.ui-placeholder {
  background: color-mix(in srgb, var(--nexus-warning) 7%, transparent) !important;
}

.provider-management-table .provider-management-preview {
  border-color: color-mix(in srgb, var(--nexus-border) 74%, transparent) !important;
  background: color-mix(in srgb, var(--nexus-provider-surface) 72%, var(--nexus-table-surface)) !important;
}

.fe7-preview-route > .fe7-status-strip {
  order: 2 !important;
}

.fe7-preview-route > .fe7-placeholder-notice {
  order: 3 !important;
}

.nexus-app-frame[data-nexus-preview-route="predictions"] .fe7-preview-head,
.fe7-page-predictions .fe7-spotlight-card {
  border-color: color-mix(in srgb, var(--nexus-cyan) 28%, var(--nexus-border-strong)) !important;
}

.nexus-app-frame[data-nexus-preview-route="market"] .fe7-preview-head,
.fe7-page-market .fe7-market-main > .nexus-ref-panel:first-child {
  border-color: color-mix(in srgb, var(--nexus-warning) 26%, var(--nexus-border-strong)) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nexus-warning) 7%, transparent), transparent 72%),
    var(--nexus-hero-surface) !important;
}

.fe7-page-market .fe7-market-main > .nexus-ref-panel:nth-child(2) {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--nexus-cyan) 10%, transparent), transparent 38%),
    var(--nexus-chart-surface) !important;
}

.nexus-app-frame[data-nexus-preview-route="matches"] .fe7-preview-head,
.fe7-page-matches .fe7-live-match {
  border-color: color-mix(in srgb, var(--nexus-success) 24%, var(--nexus-border-strong)) !important;
}

.nexus-app-frame[data-nexus-preview-route="analytics"] .fe7-preview-head,
.fe7-page-analytics .fe7-chart-card,
.fe7-page-analytics .fe7-breakdown-card {
  border-color: color-mix(in srgb, var(--nexus-cyan) 30%, var(--nexus-border-strong)) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nexus-cyan) 7%, transparent), transparent 74%),
    var(--nexus-chart-surface) !important;
}

.fe7-player-profile-page .fe7-profile-hero,
.route-page-organization .fe7-org-hero {
  border-color: color-mix(in srgb, var(--nexus-border-strong) 82%, var(--nexus-border)) !important;
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--nexus-cyan) 12%, transparent), transparent 32%),
    linear-gradient(135deg, var(--nexus-hero-surface), color-mix(in srgb, var(--nexus-surface-active) 56%, var(--nexus-dashboard-surface))) !important;
}

/* FE-7.2q Nexus identity, surface rebalance, and layout expansion pass. */
:root {
  --nexus-bg: #080a0d;
  --nexus-section: #0b0f14;
  --nexus-surface: #11161c;
  --nexus-surface-raised: #171e26;
  --nexus-surface-active: #1c2631;
  --nexus-sidebar-bg: #0c1117;
  --nexus-border: #25313d;
  --nexus-border-strong: #405467;
  --nexus-cyan: #26d9ff;
  --nexus-blue: #5b9dff;
  --nexus-text: #edf4fb;
  --nexus-text-muted: #a8b5c3;
  --nexus-text-soft: #778596;
  --nexus-nav-surface: #0c1117;
  --nexus-hero-surface: #1c2631;
  --nexus-dashboard-surface: #11161c;
  --nexus-table-surface: #141a21;
  --nexus-table-head-surface: #1a2430;
  --nexus-chart-surface: #0d1319;
  --nexus-feed-surface: #121820;
  --nexus-provider-surface: #141b22;
  --nexus-preview-surface: #1a1812;
  --nexus-utility-surface: #0f141a;
  --nexus-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.3);
  --nexus-shadow-raised: 0 26px 56px rgba(0, 0, 0, 0.38);
  --nexus-module-hero-shadow: 0 34px 76px rgba(0, 0, 0, 0.44);
  --nexus-module-large-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  --nexus-module-small-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  --fe7-bg: var(--nexus-bg);
  --fe7-shell: var(--nexus-section);
  --fe7-surface: var(--nexus-surface);
  --fe7-surface-2: var(--nexus-surface-raised);
  --fe7-zone-raised: var(--nexus-dashboard-surface);
  --fe7-zone-soft: var(--nexus-utility-surface);
  --fe7-zone-band: var(--nexus-surface-active);
  --fe7-border: var(--nexus-border);
  --fe7-border-strong: var(--nexus-border-strong);
  --fe7-row-alt: rgba(255, 255, 255, 0.025);
  --fe7-row-hover: rgba(38, 217, 255, 0.07);
  --panel: color-mix(in srgb, var(--nexus-surface) 94%, transparent);
  --panel-strong: var(--nexus-dashboard-surface);
  --panel-border: var(--nexus-border);
  --line: var(--nexus-border);
  --line-strong: var(--nexus-border-strong);
}

:root[data-theme="night"] {
  --nexus-bg: #06080b;
  --nexus-section: #090d12;
  --nexus-surface: #10151b;
  --nexus-surface-raised: #151d25;
  --nexus-surface-active: #1a2430;
  --nexus-sidebar-bg: #080c11;
  --nexus-border: #21303c;
  --nexus-border-strong: #3b5266;
  --nexus-hero-surface: #1a2430;
  --nexus-dashboard-surface: #10151b;
  --nexus-table-surface: #121820;
  --nexus-table-head-surface: #192330;
  --nexus-chart-surface: #0a1016;
  --nexus-feed-surface: #11171f;
  --nexus-provider-surface: #131a21;
  --nexus-preview-surface: #19170f;
  --nexus-utility-surface: #0d1218;
}

html,
body,
body.nx-active,
:root[data-theme="night"] body,
:root[data-theme="night"] body.nx-active {
  color: var(--nexus-text) !important;
  background:
    radial-gradient(circle at 16% -8%, rgba(38, 217, 255, 0.08), transparent 28%),
    radial-gradient(circle at 86% 4%, rgba(245, 181, 70, 0.045), transparent 26%),
    linear-gradient(180deg, var(--nexus-section) 0%, var(--nexus-bg) 48%, #050608 100%) !important;
}

.nexus-app-frame,
.nxp-board {
  width: min(100% - 16px, 92vw) !important;
  max-width: 1980px !important;
  min-height: calc(100vh - 16px) !important;
  margin: 8px auto !important;
  grid-template-columns: clamp(168px, 10.6vw, 214px) minmax(0, 1fr) !important;
  border-color: color-mix(in srgb, var(--nexus-border-strong) 58%, var(--nexus-border)) !important;
  background:
    linear-gradient(90deg, var(--nexus-nav-surface) 0%, var(--nexus-section) 22%, var(--nexus-bg) 100%) !important;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.48) !important;
}

.nexus-main-stage,
.nx-main {
  padding: clamp(18px, 1.4vw, 28px) !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(38, 217, 255, 0.035), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--nexus-section) 74%, transparent), var(--nexus-bg)) !important;
}

.nexus-route-stage,
.route-page,
.nx-page {
  width: 100%;
  max-width: none !important;
}

.route-page-organization,
.fe7-org-settings-page,
.nexus-search-reference,
.nexus-settings-reference,
.nexus-inbox-reference,
.fe7-watchlist-page,
.fe7-preview-route {
  width: 100% !important;
  max-width: none !important;
}

.nexus-sidebar,
.nxp-sidebar,
.nexus-sidebar.panel,
.nexus-sidebar.nexus-surface,
body .nexus-sidebar,
body .nxp-sidebar {
  background:
    linear-gradient(180deg, #0d141b 0%, var(--nexus-sidebar-bg) 58%, #080b10 100%) !important;
  box-shadow: inset -1px 0 0 color-mix(in srgb, var(--nexus-border) 76%, transparent) !important;
}

.nexus-sidebar-link.is-active,
.nx-sidebar-link.is-active {
  border-color: color-mix(in srgb, var(--nexus-border-strong) 74%, transparent) !important;
  background:
    linear-gradient(90deg, rgba(38, 217, 255, 0.18), rgba(38, 217, 255, 0.035) 52%, transparent) !important;
  color: var(--nexus-text) !important;
}

.nexus-sidebar-link:hover,
.nx-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.045) !important;
}

.nexus-sidebar-search input,
.nexus-header-search,
.fe7-inline-search input,
.fe7-watchlist-sort select,
.fe7-watchlist-add-form input,
.fe7-watchlist-add-form select,
.fe7-inbox-search input,
.fe7-feed-composer-entry textarea,
.fe7-feed-reply-entry textarea {
  border-color: color-mix(in srgb, var(--nexus-border) 78%, transparent) !important;
  background: color-mix(in srgb, var(--nexus-utility-surface) 78%, #05070a) !important;
  color: var(--nexus-text) !important;
}

.fe7-page-head,
.nexus-home-dashboard-head,
.search-route-hero,
.fe7-profile-hero,
.fe7-org-hero,
.fe7-preview-route .fe7-preview-head,
.fe7-settings-head,
.placeholder-hero,
.nexus-home-module-hero,
.fe7-watchlist-spotlight,
.fe7-spotlight-card,
.fe7-live-match,
.fe7-chart-card,
.fe7-settings-profile,
.fe7-inbox-main,
.player-faceit-stats-panel,
.player-match-records-panel {
  border-color: color-mix(in srgb, var(--nexus-border-strong) 76%, var(--nexus-border)) !important;
  background:
    radial-gradient(circle at 8% 8%, rgba(38, 217, 255, 0.105), transparent 32%),
    linear-gradient(135deg, var(--nexus-hero-surface), color-mix(in srgb, var(--nexus-surface-active) 62%, #0b0f14)) !important;
  box-shadow: var(--nexus-module-hero-shadow) !important;
}

.fe7-page-head::after,
.nexus-home-dashboard-head::after,
.search-route-hero::after,
.fe7-profile-hero::after,
.fe7-org-hero::after,
.fe7-preview-route .fe7-preview-head::after,
.fe7-settings-head::after {
  background: linear-gradient(90deg, var(--nexus-cyan), rgba(38, 217, 255, 0.18), transparent 76%) !important;
  opacity: 0.34 !important;
}

.fe7-card,
.nexus-reference-card,
.nexus-ref-panel,
.route-module-card,
.nexus-home-module,
.nxp-module,
.nxp-card,
.fe7-settings-card,
.search-group-panel {
  border-color: color-mix(in srgb, var(--nexus-border) 82%, transparent) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 46%),
    var(--nexus-dashboard-surface) !important;
  box-shadow: var(--nexus-module-small-shadow) !important;
}

.fe7-card::before,
.nexus-ref-panel::before,
.route-module-card::before,
.nexus-home-module::before,
.fe7-stat-card::before,
.nexus-stat-card::before,
.nx-metric::before,
.fe7-settings-summary-card::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nexus-border-strong) 78%, transparent), transparent) !important;
  opacity: 0.42 !important;
}

.fe7-stat-card,
.nexus-stat-card,
.nx-metric,
.fe7-settings-summary-card {
  border-color: color-mix(in srgb, var(--nexus-border) 80%, transparent) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 58%),
    color-mix(in srgb, var(--nexus-surface-raised) 72%, var(--nexus-utility-surface)) !important;
}

.fe7-watchlist-table,
.search-result-table,
.provider-management-table,
.player-match-record-table,
.fe7-preview-table-shell {
  border-color: color-mix(in srgb, var(--nexus-border-strong) 48%, var(--nexus-border)) !important;
  border-radius: 10px !important;
  background: var(--nexus-table-surface) !important;
}

.fe7-watchlist-table-head,
.search-result-table-head,
.player-match-record-table-head,
.provider-management-table-head,
.fe7-preview-table-head {
  min-height: 34px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--nexus-table-head-surface) !important;
  color: var(--nexus-text-soft) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe7-watchlist-player-row,
.search-result-card,
.player-match-record-table-row,
.provider-management-row,
.fe7-preview-table-row,
.fe7-table-row {
  min-height: 52px !important;
  padding-block: 8px !important;
  border-color: color-mix(in srgb, var(--nexus-border) 76%, transparent) !important;
}

.fe7-watchlist-player-row:hover,
.search-result-card:hover,
.player-match-record-table-row:hover,
.provider-management-row:hover,
.fe7-preview-table-row:hover,
.fe7-table-row:hover {
  background:
    linear-gradient(90deg, rgba(38, 217, 255, 0.08), rgba(38, 217, 255, 0.018) 46%, transparent) !important;
}

.fe7-watchlist-main {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.48fr) !important;
}

.fe7-watchlist-row {
  grid-template-columns:
    minmax(220px, 1.45fr)
    minmax(112px, 0.58fr)
    minmax(120px, 0.62fr)
    minmax(220px, 1.18fr)
    minmax(128px, 0.7fr) !important;
}

.fe7-watchlist-player-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

.route-page-feed.fe7-feed-page {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.42fr) !important;
  gap: clamp(18px, 1.6vw, 28px) !important;
}

.route-page-feed .fe7-feed-composer-card,
.route-page-feed .social-post-card {
  border-color: color-mix(in srgb, var(--nexus-border) 78%, transparent) !important;
  background:
    linear-gradient(90deg, rgba(91, 157, 255, 0.05), transparent 26%),
    var(--nexus-feed-surface) !important;
  box-shadow: var(--nexus-module-large-shadow) !important;
}

.route-page-feed .fe7-feed-composer-card::before,
.route-page-feed .social-post-card::before {
  width: 3px !important;
  background: linear-gradient(180deg, var(--nexus-blue), transparent) !important;
}

.route-page-feed .fe7-feed-right-rail > .nexus-ref-panel,
.fe7-watchlist-side .fe7-card,
.search-route-sidebar .nexus-ref-panel,
.fe7-inbox-detail-rail,
.fe7-settings-preferences,
.fe7-settings-account-state,
.fe7-org-col-right .fe7-org-panel,
.fe7-inbox-aside-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--nexus-utility-surface) !important;
}

.route-page-inbox .fe7-inbox-shell {
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.58fr) minmax(270px, 0.54fr) !important;
}

.route-page-inbox .fe7-inbox-sidebar {
  background: #0b1017 !important;
}

.route-page-inbox .fe7-inbox-main .inbox-message-bubble {
  background: color-mix(in srgb, var(--nexus-surface-raised) 78%, #05070a) !important;
}

.route-page-inbox .fe7-inbox-main .inbox-message-bubble.is-own {
  background:
    linear-gradient(135deg, rgba(38, 217, 255, 0.18), rgba(91, 157, 255, 0.08)),
    var(--nexus-surface-active) !important;
}

.search-route-grid {
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr) !important;
}

.fe7-settings-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.fe7-settings-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr) !important;
}

.fe7-settings-profile {
  background:
    radial-gradient(circle at 0% 0%, rgba(38, 217, 255, 0.07), transparent 34%),
    var(--nexus-hero-surface) !important;
}

.fe7-player-profile-page .fe7-profile-hero,
.route-page-organization .fe7-org-hero {
  background:
    radial-gradient(circle at 10% 18%, rgba(38, 217, 255, 0.13), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(245, 181, 70, 0.055), transparent 24%),
    linear-gradient(135deg, var(--nexus-hero-surface), #111820 68%, #0b0f14) !important;
}

.fe7-player-overview-grid,
.fe7-org-grid {
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.34fr) minmax(300px, 0.82fr) !important;
  gap: clamp(16px, 1.4vw, 24px) !important;
}

.nxp-stats-summary-row,
.fe7-page-analytics > .fe7-two-col {
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.62fr) !important;
}

.player-faceit-stats-panel,
.faceit-analytics-section,
.faceit-window-shell,
.fe7-page-analytics .fe7-chart-card,
.fe7-page-analytics .fe7-breakdown-card,
.fe7-preview-chart-shell,
.fe7-page-analytics .fe7-heatmap,
.nexus-home-score-shell {
  border-color: color-mix(in srgb, var(--nexus-cyan) 28%, var(--nexus-border)) !important;
  background:
    linear-gradient(rgba(38, 217, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 157, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(38, 217, 255, 0.12), transparent 34%),
    var(--nexus-chart-surface) !important;
  background-size: 32px 32px, 32px 32px, auto, auto !important;
  box-shadow: var(--nexus-module-large-shadow) !important;
}

.fe7-page-analytics .fe7-chart-card,
.fe7-page-analytics .fe7-breakdown-card {
  min-height: clamp(390px, 38vh, 560px) !important;
}

.player-faceit-stats-panel .faceit-stat-grid > .nexus-ref-metric,
.faceit-analytics-section .nexus-ref-metric,
.player-provider-list .route-module-card,
.provider-management-card,
.provider-management-row,
.provider-management-preview,
.player-stats-mode-banner {
  background:
    linear-gradient(180deg, rgba(255, 126, 38, 0.065), transparent 68%),
    var(--nexus-provider-surface) !important;
}

.is-faceit,
.fe7-provider-chip.is-faceit,
.platform-badge.is-provider-verified,
.faceit-provider-label {
  border-color: rgba(255, 126, 38, 0.52) !important;
  background: rgba(255, 126, 38, 0.12) !important;
  color: #ffad61 !important;
}

.fe7-preview-route .fe7-preview-head,
.fe7-preview-route .fe7-placeholder-notice,
.fe7-preview-route > .nexus-ref-panel:last-child,
.fe7-preview-route .fe7-status-strip,
.fe7-preview-route .fe7-status-strip article,
.fe7-preview-route .ui-placeholder,
.ui-placeholder.nexus-preview-card,
.nx-placeholder,
.nexus-ref-empty,
.empty-state {
  border-color: color-mix(in srgb, var(--nexus-warning) 40%, var(--nexus-border)) !important;
  background:
    linear-gradient(135deg, rgba(245, 181, 70, 0.075), transparent 62%),
    var(--nexus-preview-surface) !important;
}

.fe7-preview-route .fe7-status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.fe7-page-predictions > .fe7-two-col,
.fe7-page-market .fe7-market-main,
.fe7-page-matches .fe7-match-hero {
  grid-template-columns: minmax(0, 1.52fr) minmax(330px, 0.58fr) !important;
}

.fe7-page-predictions .fe7-market-grid,
.fe7-page-market .fe7-mover-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

.nexus-app-frame[data-nexus-preview-route="predictions"] .fe7-preview-head,
.fe7-page-predictions .fe7-spotlight-card {
  background:
    radial-gradient(circle at 18% 18%, rgba(38, 217, 255, 0.12), transparent 34%),
    var(--nexus-hero-surface) !important;
}

.nexus-app-frame[data-nexus-preview-route="market"] .fe7-preview-head,
.fe7-page-market .fe7-market-main > .nexus-ref-panel:first-child {
  background:
    radial-gradient(circle at 18% 14%, rgba(245, 181, 70, 0.13), transparent 32%),
    var(--nexus-hero-surface) !important;
}

.nexus-app-frame[data-nexus-preview-route="matches"] .fe7-preview-head,
.fe7-page-matches .fe7-live-match {
  background:
    radial-gradient(circle at 12% 16%, rgba(50, 213, 131, 0.105), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255, 93, 115, 0.07), transparent 24%),
    var(--nexus-hero-surface) !important;
}

.nexus-app-frame[data-nexus-preview-route="analytics"] .fe7-preview-head,
.fe7-page-analytics .fe7-chart-card,
.fe7-page-analytics .fe7-breakdown-card {
  background:
    linear-gradient(rgba(38, 217, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 157, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 16% 12%, rgba(38, 217, 255, 0.14), transparent 34%),
    var(--nexus-chart-surface) !important;
  background-size: 32px 32px, 32px 32px, auto, auto !important;
}

.ghost-button,
.nexus-button--secondary,
.nexus-icon-button,
.nexus-login-action,
.nexus-profile-action,
.fe7-head-action,
.fe7-card-action-link,
.provider-coming-soon-action {
  border-color: color-mix(in srgb, var(--nexus-border) 82%, transparent) !important;
  background: color-mix(in srgb, var(--nexus-utility-surface) 82%, #05070a) !important;
  color: var(--nexus-text) !important;
}

.solid-button,
.nexus-button--primary,
.action-button-positive,
.provider-connect-action {
  color: #061018 !important;
  background: linear-gradient(135deg, #36ddff, #6aa8ff) !important;
  border-color: rgba(38, 217, 255, 0.62) !important;
}

@media (min-width: 1500px) {
  .nexus-app-frame,
  .nxp-board {
    width: min(90vw, 1980px) !important;
  }

  .fe7-watchlist-main,
  .route-page-feed.fe7-feed-page,
  .route-page-inbox .fe7-inbox-shell {
    gap: clamp(20px, 1.7vw, 30px) !important;
  }
}

@media (max-width: 1180px) {
  .fe7-watchlist-main,
  .route-page-feed.fe7-feed-page,
  .route-page-inbox .fe7-inbox-shell,
  .search-route-grid,
  .fe7-settings-grid,
  .fe7-player-overview-grid,
  .fe7-org-grid,
  .nxp-stats-summary-row,
  .fe7-page-predictions > .fe7-two-col,
  .fe7-page-market .fe7-market-main,
  .fe7-page-matches .fe7-match-hero,
  .fe7-page-analytics > .fe7-two-col {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-settings-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .nexus-app-frame,
  .nxp-board {
    width: min(100% - 10px, 100%) !important;
    margin: 5px auto !important;
    border-radius: 10px !important;
  }

  .nexus-main-stage,
  .nx-main {
    padding: 12px !important;
  }

  .fe7-settings-summary-grid,
  .fe7-preview-route .fe7-status-strip,
  .fe7-stat-grid,
  .fe7-stat-grid-six {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-watchlist-row,
  .fe7-watchlist-row-head {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* FE-7.2r visual QA stabilization and safe override cleanup. */
:root {
  --nexus-r-compact-gap: 12px;
  --nexus-r-compact-pad: 14px;
  --nexus-r-card-border: color-mix(in srgb, var(--nexus-border) 78%, transparent);
  --nexus-r-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 52%), var(--nexus-dashboard-surface);
  --nexus-r-preview-border: color-mix(in srgb, var(--nexus-warning) 24%, var(--nexus-border));
  --nexus-r-cyan-border: color-mix(in srgb, var(--nexus-cyan) 20%, var(--nexus-border));
}

.fe7-feed-route-head {
  min-height: 0 !important;
  padding: 18px 20px !important;
}

.fe7-feed-route-head h1 {
  margin: 4px 0 6px !important;
}

.route-page-feed .fe7-feed-composer-card {
  margin-top: 0 !important;
}

.fe7-card,
.nexus-ref-panel,
.route-module-card,
.fe7-settings-card,
.fe7-org-panel {
  border-color: var(--nexus-r-card-border) !important;
}

.fe7-preview-route .fe7-preview-head,
.fe7-preview-route .fe7-placeholder-notice,
.fe7-preview-route .fe7-status-strip article,
.fe7-preview-route .ui-placeholder,
.ui-placeholder.nexus-preview-card,
.nx-placeholder,
.nexus-ref-empty,
.empty-state {
  border-color: var(--nexus-r-preview-border) !important;
}

.fe7-preview-route .fe7-status-strip article {
  background:
    linear-gradient(180deg, rgba(245, 181, 70, 0.035), transparent 70%),
    var(--nexus-utility-surface) !important;
}

.nexus-app-frame[data-nexus-preview-route="predictions"] .fe7-preview-head,
.fe7-page-predictions .fe7-spotlight-card,
.nexus-app-frame[data-nexus-preview-route="analytics"] .fe7-preview-head,
.fe7-page-analytics .fe7-chart-card,
.fe7-page-analytics .fe7-breakdown-card {
  border-color: var(--nexus-r-cyan-border) !important;
}

.nexus-app-frame[data-nexus-preview-route="market"] .fe7-preview-head,
.fe7-page-market .fe7-market-main > .nexus-ref-panel:first-child {
  border-color: color-mix(in srgb, var(--nexus-warning) 20%, var(--nexus-border)) !important;
}

.fe7-page-market .fe7-market-main > .nexus-ref-panel:nth-child(2),
.fe7-page-predictions .fe7-market-grid > *,
.fe7-page-market .fe7-mover-grid > * {
  background: var(--nexus-r-card-bg) !important;
}

@media (max-width: 760px) {
  .nexus-main-stage,
  .nx-main,
  body .nxp-main {
    padding: 10px !important;
  }

  .fe7-page-head,
  .fe7-preview-route .fe7-preview-head,
  .fe7-settings-head,
  .search-route-hero,
  .placeholder-hero,
  .nexus-home-dashboard-head,
  .fe7-feed-route-head {
    padding: var(--nexus-r-compact-pad) !important;
    gap: var(--nexus-r-compact-gap) !important;
    min-height: 0 !important;
  }

  .fe7-page-head h1,
  .fe7-preview-route .fe7-preview-head h1,
  .fe7-settings-head h1,
  .search-route-hero h1,
  .placeholder-hero h1,
  .placeholder-hero .nexus-ref-panel-title,
  .nexus-home-dashboard-head h1,
  .fe7-feed-route-head h1 {
    font-size: clamp(24px, 8vw, 32px) !important;
    line-height: 1.04 !important;
  }

  .fe7-page-head p,
  .fe7-preview-route .fe7-preview-head p,
  .fe7-settings-head p,
  .search-route-hero p,
  .placeholder-hero p,
  .nexus-home-dashboard-head p,
  .fe7-feed-route-head p {
    line-height: 1.42 !important;
  }

  .nexus-home-dashboard-head {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .nexus-home-brand-row {
    align-items: center !important;
    gap: 10px !important;
  }

  .nexus-home-brand-mark {
    width: 34px !important;
    height: 34px !important;
  }

  .nexus-home-head-actions {
    gap: 8px !important;
  }

  .nexus-home-head-actions > * {
    flex: 1 1 132px !important;
    justify-content: center !important;
  }

  .fe7-player-profile-page .fe7-profile-hero,
  .route-page-organization .fe7-org-hero {
    padding: var(--nexus-r-compact-pad) !important;
    gap: var(--nexus-r-compact-gap) !important;
  }

  .fe7-player-profile-page .fe7-profile-identity-block,
  .route-page-organization .fe7-org-identity-block {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    justify-items: stretch !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: left !important;
  }

  .fe7-player-profile-page .fe7-profile-avatar,
  .route-page-organization .fe7-org-avatar {
    width: 76px !important;
    height: 76px !important;
    padding: 2px !important;
    border-width: 1px !important;
    box-shadow: 0 0 0 3px rgba(38, 217, 255, 0.06) !important;
  }

  .fe7-player-profile-page .fe7-profile-eyebrow,
  .route-page-organization .fe7-profile-eyebrow {
    margin-bottom: 4px !important;
    font-size: 10px !important;
  }

  .fe7-player-profile-page .fe7-profile-title,
  .route-page-organization .fe7-org-hero .nx-profile-name {
    font-size: clamp(24px, 8vw, 31px) !important;
    line-height: 1.05 !important;
  }

  .fe7-player-profile-page .fe7-profile-subtitle,
  .route-page-organization .fe7-org-hero .nx-profile-subtitle {
    margin-top: 3px !important;
    font-size: 12px !important;
  }

  .fe7-player-profile-page .fe7-profile-bio,
  .route-page-organization .fe7-org-summary {
    display: -webkit-box !important;
    margin-top: 8px !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .fe7-player-profile-page .fe7-profile-chip-row,
  .fe7-player-profile-page .fe7-profile-social-row,
  .fe7-player-profile-page .fe7-profile-actions,
  .route-page-organization .fe7-profile-chip-row,
  .route-page-organization .fe7-profile-social-row,
  .route-page-organization .fe7-org-actions,
  .route-page-organization .fe7-org-action-row {
    justify-content: flex-start !important;
    margin-top: 8px !important;
  }

  .fe7-profile-chip,
  .fe7-provider-chip,
  .fe7-profile-source {
    min-height: 25px !important;
    padding-inline: 8px !important;
    font-size: 10.5px !important;
  }

  .fe7-player-profile-page .fe7-profile-rank-card,
  .route-page-organization .fe7-org-summary-card {
    min-height: 68px !important;
    align-content: center !important;
    gap: 3px !important;
    padding: 9px 10px !important;
    text-align: left !important;
  }

  .fe7-player-profile-page .fe7-profile-rank-card strong,
  .route-page-organization .fe7-org-summary-card strong {
    font-size: clamp(20px, 8vw, 28px) !important;
  }

  .fe7-player-profile-page .fe7-profile-actions,
  .route-page-organization .fe7-org-actions {
    gap: 8px !important;
  }

  .fe7-player-profile-page .fe7-profile-actions > *,
  .route-page-organization .fe7-org-action-row > *,
  .route-page-organization .fe7-org-actions > .ghost-button {
    flex: 1 1 132px !important;
    justify-content: center !important;
  }

  .route-page-organization .fe7-org-tabs {
    margin-top: 2px !important;
    padding-bottom: 2px !important;
  }

  .fe7-preview-route .fe7-status-strip {
    gap: 8px !important;
  }

  .fe7-preview-route .fe7-status-strip article {
    min-height: 0 !important;
    padding: 10px !important;
  }
}

@media (max-width: 760px) {
  .route-page-organization .fe7-org-empty-hero .fe7-org-identity-block {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: stretch !important;
    text-align: left !important;
  }

  .route-page-organization .fe7-org-empty-hero .fe7-org-avatar {
    width: 76px !important;
    height: 76px !important;
    margin-inline: 0 !important;
    justify-self: start !important;
  }

  .route-page-organization .fe7-org-empty-hero .fe7-org-copy {
    text-align: left !important;
  }

  .route-page-organization .fe7-org-empty-hero .fe7-org-summary-card {
    width: 100% !important;
    max-width: none !important;
  }

  .route-page-organization .fe7-org-tabs {
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-height: 38px !important;
    height: auto !important;
    padding-inline: 0 !important;
  }

  .route-page-organization .fe7-org-tabs .nexus-tab {
    flex: 0 0 auto !important;
  }
}

/* Viewport-anchored global chrome: keep the shared sidebar on the screen edge at desktop zoom levels. */
@media (min-width: 761px) {
  :root {
    --nexus-viewport-sidebar-width: clamp(168px, 10.6vw, 214px);
    --nexus-viewport-main-pad: clamp(18px, 1.4vw, 28px);
  }

  body.nexus-app-layout .site-shell.nexus-app-shell-mode,
  body.nexus-home-layout .site-shell.nexus-home-shell-mode,
  body.nxp-profile-layout .site-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body.nexus-app-layout #nexusReactRouteRoot,
  body.nexus-home-layout #nexusReactRouteRoot,
  body.nxp-profile-layout #nexusReactRouteRoot,
  body.nxp-profile-layout .nxp-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.nexus-app-layout .nexus-app-frame,
  body.nexus-home-layout .nexus-app-frame,
  body.nxp-profile-layout .nxp-board {
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    grid-template-columns: var(--nexus-viewport-sidebar-width) minmax(0, 1fr) !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
  }

  body.nexus-app-layout .nexus-app-frame > .nexus-sidebar,
  body.nexus-home-layout .nexus-app-frame > .nexus-sidebar,
  body.nxp-profile-layout .nxp-board > .nexus-sidebar {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    align-self: start !important;
    width: var(--nexus-viewport-sidebar-width) !important;
    min-width: var(--nexus-viewport-sidebar-width) !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  body.nexus-app-layout .nexus-main-stage,
  body.nexus-home-layout .nexus-main-stage,
  body.nxp-profile-layout .nxp-main {
    min-height: 100dvh !important;
    padding: var(--nexus-viewport-main-pad) !important;
  }
}

/* NEXUS-UI-RECON-1: all-page reference reconstruction and analytics readability pass. */
:root {
  --nxr-max-wide: 1500px;
  --nxr-max-route: 1320px;
  --nxr-max-profile: 1280px;
  --nxr-card-radius: 8px;
  --nxr-gap: clamp(12px, 1vw, 18px);
  --nxr-pad: clamp(14px, 1.2vw, 22px);
  --nxr-row: color-mix(in srgb, var(--nexus-surface-raised) 80%, transparent);
  --nxr-row-hover: color-mix(in srgb, var(--nexus-surface-active) 86%, transparent);
  --nxr-cyan-line: color-mix(in srgb, var(--nexus-cyan) 62%, var(--nexus-border));
  --nxr-gold-line: color-mix(in srgb, var(--nexus-warning) 52%, var(--nexus-border));
}

body.nexus-app-layout .nexus-main-stage,
body.nexus-home-layout .nexus-main-stage,
body.nxp-profile-layout .nxp-main {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nexus-bg) 92%, transparent), transparent 220px),
    var(--nexus-bg) !important;
}

.nexus-route-stage {
  width: 100%;
  min-width: 0;
}

.nexus-route-stage > .route-page,
.route-page-home.nexus-home-board,
.fe7-preview-route,
.nexus-search-reference,
.fe7-settings-page,
.nexus-inbox-reference,
.fe7-watchlist-page,
.route-page-login {
  width: min(100%, var(--nxr-max-route));
  max-width: var(--nxr-max-route);
  margin-inline: auto;
}

.fe7-watchlist-page,
.fe7-page-analytics,
.fe7-page-market,
.fe7-page-matches,
.fe7-page-predictions {
  --nxr-max-route: 1440px;
}

.fe7-player-profile-shell,
.route-page-organization {
  width: min(100%, var(--nxr-max-profile)) !important;
  max-width: var(--nxr-max-profile) !important;
}

.nexus-app-frame > .nexus-sidebar,
.nxp-board > .nexus-sidebar {
  border-right-color: color-mix(in srgb, var(--nexus-border) 80%, var(--nexus-cyan)) !important;
}

.nexus-sidebar-inner {
  gap: clamp(12px, 1.2vw, 18px) !important;
}

.nexus-sidebar .fe7-sidebar-logo {
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--nexus-border) 78%, transparent);
}

.nexus-sidebar-search input {
  height: 36px !important;
  border-radius: var(--nxr-card-radius) !important;
  font-size: 12px !important;
}

.nexus-sidebar-link {
  min-height: 38px !important;
  border-radius: var(--nxr-card-radius) !important;
  font-size: 13px !important;
}

.nexus-sidebar-link.is-active {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--nexus-cyan) 17%, transparent), transparent),
    var(--nexus-surface-active) !important;
}

.fe7-page-head,
.nexus-home-dashboard-head,
.search-route-hero,
.fe7-settings-head,
.fe7-inbox-toolbar,
.fe7-preview-route .fe7-preview-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--nxr-gap);
  min-height: 94px;
  padding: var(--nxr-pad) !important;
  border-radius: var(--nxr-card-radius) !important;
}

.fe7-page-head h1,
.nexus-home-dashboard-head h1,
.search-route-hero h1,
.fe7-settings-head h1,
.fe7-inbox-toolbar h1,
.fe7-preview-route .fe7-preview-head h1 {
  margin: 0 !important;
  color: var(--nexus-text) !important;
  font-size: clamp(26px, 2.4vw, 42px) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.04 !important;
}

.fe7-page-head p,
.nexus-home-dashboard-head p,
.search-route-hero p,
.fe7-settings-head p,
.fe7-inbox-toolbar p,
.fe7-preview-route .fe7-preview-head p {
  max-width: 76ch;
  margin-top: 6px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.fe7-page-head::after,
.nexus-home-dashboard-head::after,
.search-route-hero::after,
.fe7-settings-head::after,
.fe7-inbox-toolbar::after,
.fe7-profile-hero::after,
.fe7-org-hero::after,
.fe7-preview-route .fe7-preview-head::after {
  inset-inline: var(--nxr-pad) !important;
  background: linear-gradient(90deg, var(--nexus-cyan), transparent 62%) !important;
  opacity: 0.48 !important;
}

.fe7-card,
.nexus-reference-card,
.nexus-ref-panel,
.route-module-card,
.social-post-card,
.fe7-stat-card,
.nexus-stat-card,
.nx-metric,
.nexus-home-module,
.fe7-settings-summary-card,
.fe7-settings-mini-card,
.fe7-inbox-aside-card,
.fe7-side-metrics div {
  border-radius: var(--nxr-card-radius) !important;
}

.fe7-card-header,
.nexus-ref-panel-head {
  min-height: 52px;
  padding: 12px 14px !important;
  align-items: center !important;
}

.fe7-card-body,
.nexus-ref-panel-body {
  padding: 14px !important;
}

.fe7-card-title,
.nexus-ref-panel-title,
.route-module-card h3,
.nxp-module-subtitle {
  color: var(--nexus-text) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

.fe7-card-copy,
.nexus-ref-note,
.nexus-ref-copy,
.route-detail-copy,
.nx-empty,
.nxp-empty,
.section-note,
.empty-state {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.fe7-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: var(--nxr-gap) !important;
}

.fe7-stat-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.fe7-stat-card,
.nexus-stat-card,
.nx-metric,
.fe7-settings-summary-card {
  min-height: 110px;
  padding: 14px 14px 12px 16px !important;
  display: grid;
  align-content: start;
  gap: 8px;
}

.fe7-stat-card::after,
.nexus-stat-card::after,
.nx-metric::after {
  content: "";
  align-self: end;
  display: block;
  width: 100%;
  height: 22px;
  margin-top: 4px;
  border-bottom: 2px solid color-mix(in srgb, var(--nexus-cyan) 72%, transparent);
  border-radius: 0 0 6px 6px;
  background:
    linear-gradient(135deg, transparent 0 20%, color-mix(in srgb, var(--nexus-cyan) 26%, transparent) 21% 23%, transparent 24% 42%, color-mix(in srgb, var(--nexus-cyan) 34%, transparent) 43% 45%, transparent 46% 68%, color-mix(in srgb, var(--nexus-cyan) 22%, transparent) 69% 71%, transparent 72%);
  opacity: 0.72;
}

.ui-placeholder.fe7-stat-card::after,
.ui-placeholder .fe7-stat-card::after,
.ui-placeholder.nexus-stat-card::after {
  border-bottom-color: color-mix(in srgb, var(--nexus-warning) 64%, transparent);
  background:
    linear-gradient(135deg, transparent 0 18%, color-mix(in srgb, var(--nexus-warning) 22%, transparent) 19% 22%, transparent 23% 58%, color-mix(in srgb, var(--nexus-warning) 18%, transparent) 59% 62%, transparent 63%);
}

.fe7-stat-head {
  min-width: 0;
}

.fe7-stat-label,
.nx-metric-label,
.nexus-ref-metric-label {
  color: var(--nexus-text-muted) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

.fe7-stat-value,
.nx-metric-value,
.nexus-ref-metric-value {
  margin: 0 !important;
  color: var(--nexus-text) !important;
  font-size: clamp(22px, 2vw, 30px) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.fe7-stat-detail {
  margin: 0 !important;
  color: var(--nexus-text-muted) !important;
}

.fe7-page-tabs,
.fe7-tabs,
.nxp-tabs,
.nexus-tab-row {
  min-height: 48px !important;
  gap: clamp(16px, 2vw, 30px) !important;
  padding-inline: 12px !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nxr-card-radius) !important;
  background: var(--nexus-surface) !important;
}

.fe7-page-tabs span,
.fe7-page-tabs button,
.fe7-tab,
.nxp-tab,
.nexus-tab {
  min-height: 46px;
  padding-block: 14px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  white-space: nowrap;
}

.nexus-home-dashboard-head {
  min-height: 128px;
}

.nexus-home-command-grid {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.2fr) minmax(260px, 0.86fr) !important;
  gap: var(--nxr-gap) !important;
}

.nexus-home-module {
  min-height: 176px;
  padding: 16px !important;
}

.nexus-home-module-hero {
  min-height: 318px;
}

.nexus-home-module-large {
  min-height: 214px;
}

.nexus-home-activity-list article {
  grid-template-columns: minmax(120px, 0.66fr) minmax(0, 1fr) auto !important;
  min-height: 50px;
}

.nexus-home-score-shell {
  min-height: 190px !important;
  border-style: solid !important;
}

.route-page-feed.fe7-feed-page {
  width: min(100%, 1240px);
  max-width: 1240px;
  grid-template-columns: minmax(0, 780px) minmax(280px, 330px) !important;
  justify-content: center;
  gap: var(--nxr-gap) !important;
}

.fe7-feed-route-head {
  min-height: 86px;
}

.route-page-feed .fe7-feed-composer-card {
  padding: 16px !important;
}

.route-page-feed .fe7-feed-composer-head {
  min-height: 72px;
}

.route-page-feed .social-post-card {
  padding: 16px !important;
}

.route-page-feed .social-post-body {
  font-size: 15px !important;
}

.route-page-feed .nexus-ref-panel {
  min-height: 150px;
}

.search-route-grid {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) !important;
  gap: var(--nxr-gap) !important;
}

.search-route-sidebar {
  display: grid;
  gap: var(--nxr-gap);
}

.search-results-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--nxr-gap) !important;
}

.search-result-table {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nxr-card-radius);
  background: var(--nexus-surface-raised);
}

.search-result-table-head,
.search-result-card {
  grid-template-columns: minmax(210px, 1.2fr) minmax(120px, 0.5fr) minmax(220px, 1fr) minmax(130px, 0.55fr) !important;
}

.search-result-card {
  border: 0 !important;
  border-top: 1px solid var(--nexus-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 12px 14px !important;
}

.fe7-player-profile-shell {
  gap: var(--nxr-gap) !important;
}

.fe7-profile-hero,
.fe7-org-hero {
  padding: clamp(18px, 1.8vw, 28px) !important;
  border-radius: var(--nxr-card-radius) !important;
}

.fe7-profile-hero {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 190px) !important;
}

.fe7-profile-identity-block,
.fe7-org-identity-block {
  gap: clamp(16px, 2vw, 28px) !important;
}

.fe7-profile-avatar,
.fe7-org-avatar {
  width: clamp(108px, 9vw, 142px) !important;
  height: clamp(108px, 9vw, 142px) !important;
}

.fe7-profile-title,
.fe7-org-hero .nx-profile-name {
  font-size: clamp(34px, 3.2vw, 50px) !important;
}

.fe7-profile-bio,
.fe7-org-summary {
  max-width: 74ch !important;
}

.fe7-player-overview-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

.fe7-player-overview-wide {
  grid-column: 1 / -1 !important;
}

.fe7-player-overview-grid .nxp-history-module,
.fe7-player-trophies-module,
.fe7-player-heatmap-module,
.fe7-player-post-module,
.fe7-player-name-history-module {
  grid-column: span 6 !important;
}

.fe7-player-overview-wide .nxp-about-list {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.nxp-stats-layout {
  gap: var(--nxr-gap) !important;
}

.player-stats-mode-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.player-stats-mode-tab {
  border-radius: var(--nxr-card-radius) !important;
  min-height: 72px;
}

.nxp-stats-summary-row {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr) !important;
  gap: var(--nxr-gap) !important;
}

.faceit-analytics-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nxr-card-radius);
  background: var(--nxr-row);
}

.faceit-analytics-section + .faceit-analytics-section {
  margin-top: 0 !important;
}

.faceit-analytics-section .nexus-ref-metric-grid,
.faceit-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

.faceit-window-shell {
  padding: 12px;
  border: 1px solid color-mix(in srgb, #ff8a2a 26%, var(--nexus-border));
  border-radius: var(--nxr-card-radius);
  background: color-mix(in srgb, #ff8a2a 7%, var(--nexus-surface-raised));
}

.faceit-window-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-provider-list {
  gap: 8px !important;
}

.player-provider-list .nexus-ref-inline-card {
  border-radius: var(--nxr-card-radius) !important;
}

.player-match-record-table {
  overflow: hidden;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nxr-card-radius);
  background: var(--nexus-surface-raised);
}

.player-match-record-table-head,
.player-match-record-table-row {
  grid-template-columns: minmax(92px, 0.72fr) minmax(92px, 0.62fr) minmax(180px, 1.1fr) minmax(88px, 0.55fr) minmax(72px, 0.44fr) minmax(72px, 0.44fr) minmax(120px, 0.76fr) minmax(136px, auto) !important;
}

.player-match-record-table-row {
  border: 0 !important;
  border-top: 1px solid var(--nexus-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 12px 14px !important;
}

.route-page-organization .fe7-org-grid {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.25fr) minmax(260px, 0.86fr) !important;
  gap: var(--nxr-gap) !important;
}

.fe7-org-panel {
  min-height: 150px;
  padding: 14px !important;
}

.fe7-org-trophy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.fe7-watchlist-page {
  gap: var(--nxr-gap) !important;
}

.fe7-watchlist-main {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
  gap: var(--nxr-gap) !important;
}

.fe7-watchlist-toolbar {
  padding: 12px;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nxr-card-radius);
}

.fe7-watchlist-spotlight-grid {
  grid-template-columns: minmax(230px, 0.82fr) minmax(0, 1.4fr) !important;
}

.fe7-watchlist-spotlight-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.fe7-watchlist-table {
  background: var(--nexus-surface-raised);
}

.fe7-watchlist-table-head,
.fe7-watchlist-player-row {
  grid-template-columns: minmax(210px, 1.2fr) minmax(150px, 0.8fr) minmax(100px, 0.52fr) minmax(180px, 1fr) minmax(92px, 0.5fr) minmax(170px, auto) !important;
}

.fe7-watchlist-player-row {
  min-height: 72px;
  border-top-color: var(--nexus-border) !important;
}

.fe7-watchlist-side .fe7-card,
.fe7-watchlist-side .nexus-ref-panel {
  min-height: 0;
}

.fe7-side-metrics {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nxr-card-radius);
}

.fe7-side-metrics div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 44px;
  padding: 9px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--nexus-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.fe7-side-metrics div:last-child {
  border-bottom: 0 !important;
}

.fe7-settings-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.fe7-settings-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr) !important;
  gap: var(--nxr-gap) !important;
}

.fe7-settings-profile {
  grid-row: span 3 !important;
}

.fe7-settings-providers {
  grid-row: span 2;
}

.fe7-settings-card {
  min-height: 0;
}

.provider-management-table {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nxr-card-radius);
}

.provider-management-table-head,
.provider-management-row {
  grid-template-columns: minmax(128px, 0.8fr) minmax(120px, 0.64fr) minmax(210px, 1.3fr) minmax(160px, auto) !important;
}

.provider-management-row {
  border: 0 !important;
  border-top: 1px solid var(--nexus-border) !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
}

.fe7-settings-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.fe7-settings-org-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.fe7-inbox-shell {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(260px, 320px) !important;
  gap: var(--nxr-gap) !important;
}

.fe7-inbox-sidebar,
.fe7-inbox-main,
.fe7-inbox-detail-rail {
  border-radius: var(--nxr-card-radius) !important;
}

.fe7-inbox-list-head,
.fe7-inbox-tabs,
.fe7-inbox-search {
  padding: 14px !important;
}

.fe7-inbox-list-body {
  max-height: clamp(420px, 68vh, 790px) !important;
}

.fe7-inbox-conversation-row {
  border: 1px solid var(--nexus-border) !important;
  background: var(--nxr-row) !important;
}

.fe7-inbox-conversation-row.is-active {
  border-color: var(--nxr-cyan-line) !important;
  background: var(--nexus-surface-active) !important;
}

.fe7-inbox-main .inbox-thread-shell {
  min-height: clamp(560px, 74vh, 880px) !important;
}

.fe7-inbox-main .inbox-message-bubble {
  border-radius: var(--nxr-card-radius) !important;
}

.fe7-preview-route {
  gap: var(--nxr-gap) !important;
}

.fe7-preview-route .fe7-preview-head {
  min-height: 108px;
}

.fe7-status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.fe7-status-strip article {
  min-height: 76px;
  padding: 12px !important;
}

.fe7-preview-route .fe7-stat-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.fe7-preview-route .fe7-two-col,
.fe7-preview-route .fe7-match-hero {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.86fr) !important;
}

.fe7-preview-route .fe7-three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.fe7-preview-route .fe7-four-col,
.fe7-market-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.fe7-preview-chart-shell {
  min-height: 230px;
}

.route-page-login {
  display: grid;
  min-height: min(760px, calc(100dvh - 80px));
  align-items: center;
  padding: clamp(16px, 3vw, 36px);
}

.login-route-panel {
  width: min(100%, 980px);
  margin-inline: auto;
}

.login-auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nxr-gap);
}

.login-auth-grid .auth-form {
  border: 1px solid var(--nexus-border);
  border-radius: var(--nxr-card-radius);
  background: var(--nexus-surface-raised);
  padding: 16px;
}

@media (max-width: 1320px) {
  .fe7-stat-grid-six,
  .fe7-preview-route .fe7-stat-grid-six,
  .fe7-settings-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .fe7-inbox-shell,
  .fe7-settings-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-watchlist-side {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  .nexus-home-command-grid,
  .route-page-feed.fe7-feed-page,
  .search-route-grid,
  .nxp-stats-summary-row,
  .route-page-organization .fe7-org-grid,
  .fe7-preview-route .fe7-two-col,
  .fe7-preview-route .fe7-three-col,
  .fe7-preview-route .fe7-four-col,
  .fe7-preview-route .fe7-match-hero,
  .fe7-market-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-player-overview-grid .nxp-history-module,
  .fe7-player-trophies-module,
  .fe7-player-heatmap-module,
  .fe7-player-post-module,
  .fe7-player-name-history-module {
    grid-column: 1 / -1 !important;
  }

  .fe7-player-overview-wide .nxp-about-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .fe7-watchlist-table-head,
  .search-result-table-head,
  .player-match-record-table-head,
  .provider-management-table-head {
    display: none !important;
  }

  .fe7-watchlist-player-row,
  .search-result-card,
  .player-match-record-table-row,
  .provider-management-row {
    grid-template-columns: minmax(0, 1fr) !important;
    border: 1px solid var(--nexus-border) !important;
    border-radius: var(--nxr-card-radius) !important;
    margin: 8px;
  }
}

@media (max-width: 760px) {
  :root {
    --nxr-pad: 14px;
    --nxr-gap: 10px;
  }

  .nexus-route-stage > .route-page,
  .route-page-home.nexus-home-board,
  .fe7-preview-route,
  .nexus-search-reference,
  .fe7-settings-page,
  .nexus-inbox-reference,
  .fe7-watchlist-page,
  .route-page-login {
    width: 100%;
    max-width: 100%;
  }

  .fe7-page-head,
  .nexus-home-dashboard-head,
  .search-route-hero,
  .fe7-settings-head,
  .fe7-inbox-toolbar,
  .fe7-preview-route .fe7-preview-head {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0;
  }

  .fe7-page-head > *,
  .nexus-home-dashboard-head > *,
  .search-route-hero > *,
  .fe7-settings-head > *,
  .fe7-inbox-toolbar > *,
  .fe7-preview-route .fe7-preview-head > * {
    min-width: 0;
  }

  .fe7-page-head h1,
  .nexus-home-dashboard-head h1,
  .search-route-hero h1,
  .fe7-settings-head h1,
  .fe7-inbox-toolbar h1,
  .fe7-preview-route .fe7-preview-head h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(24px, 7vw, 30px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-wrap: balance;
  }

  .nexus-home-dashboard-head p,
  .search-route-hero p,
  .fe7-page-head p,
  .fe7-settings-head p,
  .fe7-inbox-toolbar p,
  .fe7-preview-route .fe7-preview-head p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere !important;
  }

  .fe7-stat-grid,
  .fe7-stat-grid-six,
  .fe7-preview-route .fe7-stat-grid-six,
  .fe7-status-strip,
  .fe7-settings-summary-grid,
  .fe7-settings-mini-grid,
  .fe7-watchlist-side,
  .login-auth-grid,
  .player-stats-mode-tabs,
  .fe7-watchlist-spotlight-grid,
  .fe7-watchlist-spotlight-metrics {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-profile-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-player-profile-page .fe7-profile-identity-block,
  .route-page-organization .fe7-org-identity-block,
  .route-page-organization .fe7-org-empty-hero .fe7-org-identity-block {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 12px !important;
    text-align: left !important;
  }

  .fe7-player-profile-page .fe7-profile-copy,
  .route-page-organization .fe7-org-copy,
  .route-page-organization .fe7-org-empty-hero .fe7-org-copy {
    text-align: left !important;
  }

  .fe7-player-profile-page .fe7-profile-avatar,
  .route-page-organization .fe7-org-avatar {
    width: 82px !important;
    height: 82px !important;
  }

  .fe7-profile-title,
  .fe7-org-hero .nx-profile-name {
    font-size: clamp(24px, 8vw, 32px) !important;
  }

  .fe7-player-overview-wide .nxp-about-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-player-overview-wide .nxp-about-row {
    border-right: 0 !important;
    border-bottom: 1px solid var(--nexus-border) !important;
  }

  .fe7-page-tabs,
  .fe7-tabs,
  .nxp-tabs,
  .nexus-tab-row {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .fe7-page-tabs::-webkit-scrollbar,
  .fe7-tabs::-webkit-scrollbar,
  .nxp-tabs::-webkit-scrollbar,
  .nexus-tab-row::-webkit-scrollbar {
    display: none;
  }

  .fe7-watchlist-toolbar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-watchlist-player-actions,
  .fe7-watchlist-add-actions,
  .nexus-home-head-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-watchlist-player-actions > *,
  .fe7-watchlist-add-actions > *,
  .nexus-home-head-actions > * {
    width: 100% !important;
  }

  .fe7-inbox-main .inbox-thread-shell {
    min-height: 0 !important;
  }
}

@media (max-width: 760px) {
  .route-page-home .nexus-home-dashboard-head .nexus-home-hero-copy,
  .route-page-home .nexus-home-dashboard-head .nexus-home-brand-row,
  .route-page-home .nexus-home-dashboard-head .nexus-home-head-actions {
    width: 100% !important;
    max-width: 31ch !important;
    margin-inline: auto !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .route-page-home .nexus-home-dashboard-head h1 {
    width: 100% !important;
    max-width: 15ch !important;
    margin-inline: auto !important;
    font-size: clamp(23px, 6.6vw, 26px) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .route-page-home .nexus-home-dashboard-head p {
    width: 100% !important;
    max-width: 31ch !important;
    margin-inline: auto !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
  }
}

/* NEXUS-UI-RECON-2: targeted visual QA, empty-state, and mobile readability fixes. */
:root {
  --nxr2-focus-border: color-mix(in srgb, var(--nexus-cyan) 46%, var(--nexus-border));
  --nxr2-soft-card: color-mix(in srgb, var(--nexus-surface-raised) 82%, #060b12);
  --nxr2-muted-card: color-mix(in srgb, var(--nexus-surface) 74%, #070c13);
}

.search-route-hero .nexus-ref-panel-head,
.placeholder-hero .nexus-ref-panel-head,
.inbox-route-guest-mount .nexus-ref-panel-head {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 6px !important;
}

.search-route-hero .nexus-ref-panel-title,
.search-route-hero .fe7-search-route-title,
.search-route-hero h1 {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.search-route-hero .nexus-ref-note,
.placeholder-hero .nexus-ref-note,
.inbox-route-guest-mount .nexus-ref-note {
  max-width: 78ch !important;
}

.search-route-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

.search-route-form input {
  min-width: 0 !important;
  width: 100% !important;
}

.search-route-grid {
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr) !important;
  gap: var(--nxr-gap) !important;
}

.search-route-sidebar .nexus-ref-inline-card,
.search-result-card,
.provider-management-row,
.player-match-record-table-row,
.fe7-watchlist-player-row {
  min-width: 0 !important;
}

.search-result-card,
.player-match-record-table-row,
.provider-management-row {
  align-items: center !important;
}

.placeholder-hero,
.inbox-route-guest-mount .placeholder-hero {
  width: min(100%, 1040px) !important;
  margin-inline: auto !important;
}

.nexus-settings-reference:not(.fe7-settings-page),
.inbox-route-guest-mount .route-page {
  width: min(100%, 1060px) !important;
  max-width: 1060px !important;
  margin-inline: auto !important;
}

.settings-auth-preview-grid,
.fe7-inbox-guest-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 14px 0 !important;
}

.settings-auth-preview-card,
.fe7-inbox-guest-grid .route-module-card {
  min-height: 126px !important;
  padding: 14px !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nxr-card-radius) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--nxr2-soft-card) !important;
}

.settings-auth-preview-card strong,
.fe7-inbox-guest-grid strong {
  color: var(--nexus-text) !important;
  font-size: 13px !important;
}

.fe7-profile-shell-notice,
.player-stats-mode-banner {
  border: 1px solid color-mix(in srgb, var(--nexus-warning) 42%, var(--nexus-border)) !important;
  border-left: 3px solid var(--nexus-warning) !important;
  border-radius: var(--nxr-card-radius) !important;
  background: color-mix(in srgb, var(--nexus-warning) 8%, var(--nexus-surface-raised)) !important;
  color: var(--nexus-text-muted) !important;
  box-shadow: none !important;
}

.player-stats-mode-tabs {
  padding: 8px !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nxr-card-radius) !important;
  background: var(--nxr2-muted-card) !important;
}

.player-stats-mode-tab {
  min-height: 64px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
}

.player-stats-mode-tab.is-active {
  border-color: var(--nxr2-focus-border) !important;
  background: color-mix(in srgb, var(--nexus-cyan) 8%, var(--nexus-surface-raised)) !important;
}

.faceit-analytics-section,
.player-provider-list .nexus-ref-inline-card,
.fe7-locked-grid .route-module-card {
  border-color: color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--nxr2-soft-card) !important;
}

.nexus-watchlist-hero .overview-stat-grid,
.fe7-watchlist-spotlight-metrics,
.fe7-watchlist-side {
  gap: 10px !important;
}

.fe7-watchlist-login-cta,
.fe7-watchlist-empty-state,
.range-empty-state {
  border-color: color-mix(in srgb, var(--nexus-warning) 44%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-warning) 8%, var(--nexus-surface-raised)) !important;
}

.fe7-preview-route .fe7-preview-head,
.fe7-preview-route .fe7-status-strip article,
.fe7-preview-route .ui-placeholder {
  min-width: 0 !important;
}

.fe7-mover-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
  gap: 10px !important;
}

.fe7-mover-card {
  min-width: 0 !important;
  align-content: start !important;
  gap: 8px !important;
}

.fe7-mover-card strong,
.fe7-mover-card p,
.fe7-mover-card em,
.fe7-slot-label,
.fe7-table-row span,
.fe7-table-row strong {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

.fe7-preview-route .fe7-status-strip article {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}

@media (max-width: 900px) {
  .settings-auth-preview-grid,
  .fe7-inbox-guest-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .search-route-hero,
  .placeholder-hero,
  .inbox-route-guest-mount .placeholder-hero {
    padding: 14px !important;
  }

  .search-route-hero .nexus-ref-panel-head,
  .placeholder-hero .nexus-ref-panel-head,
  .inbox-route-guest-mount .nexus-ref-panel-head {
    grid-template-columns: minmax(0, 1fr) !important;
    text-align: left !important;
  }

  .search-route-hero h1,
  .search-route-hero .fe7-search-route-title {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    font-size: clamp(26px, 8vw, 32px) !important;
    line-height: 1.04 !important;
    text-align: left !important;
    overflow-wrap: normal !important;
  }

  .search-route-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .search-route-form button,
  .search-route-form .nexus-button,
  .placeholder-hero .action-row > *,
  .inbox-route-guest-mount .action-row > * {
    width: 100% !important;
    justify-content: center !important;
  }

  .search-route-grid,
  .search-route-sidebar,
  .search-results-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .search-result-card,
  .player-match-record-table-row,
  .provider-management-row,
  .fe7-watchlist-player-row {
    margin: 8px 0 !important;
    padding: 12px !important;
  }

  .fe7-preview-route .fe7-stat-grid,
  .fe7-preview-route .fe7-stat-grid-six,
  .fe7-preview-route .fe7-status-strip,
  .fe7-preview-route .fe7-two-col,
  .fe7-preview-route .fe7-three-col,
  .fe7-preview-route .fe7-four-col,
  .fe7-preview-route .fe7-match-hero,
  .fe7-market-grid,
  .fe7-page-predictions .fe7-market-grid,
  .fe7-mover-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-mover-card {
    min-height: 0 !important;
    justify-items: start !important;
    text-align: left !important;
  }

  .fe7-status-strip article,
  .fe7-preview-route .fe7-status-strip article {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .player-stats-mode-tabs {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .player-stats-mode-tab {
    min-height: 58px !important;
  }

  .settings-auth-preview-grid,
  .fe7-inbox-guest-grid,
  .placeholder-hero .action-row,
  .inbox-route-guest-mount .action-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* NEXUS-FIDELITY-1c: product-density rails for honest unavailable states. */
.fe7-profile-hero-summary,
.fe7-profile-coverage-grid,
.fe7-org-empty-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

.fe7-profile-hero-summary {
  margin-top: 14px !important;
}

.fe7-org-empty-summary-grid {
  grid-column: 1 / -1 !important;
  margin-top: 10px !important;
}

.fe7-profile-hero-summary article,
.fe7-profile-coverage-grid article,
.fe7-org-empty-summary-grid article,
.fe7-watchlist-auth-rails article {
  min-width: 0 !important;
  min-height: 92px !important;
  display: grid !important;
  align-content: start !important;
  gap: 5px !important;
  padding: 12px !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nxr-card-radius) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 72%),
    color-mix(in srgb, var(--nexus-surface-raised) 78%, #06111c) !important;
}

.fe7-profile-hero-summary span,
.fe7-profile-coverage-grid span,
.fe7-org-empty-summary-grid span,
.fe7-watchlist-auth-rails span {
  color: var(--nexus-text-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.fe7-profile-hero-summary strong,
.fe7-profile-coverage-grid strong,
.fe7-org-empty-summary-grid strong,
.fe7-watchlist-auth-rails strong {
  color: var(--nexus-text) !important;
  font-size: clamp(13px, 1vw, 15px) !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere !important;
}

.fe7-profile-hero-summary small,
.fe7-profile-coverage-grid small,
.fe7-org-empty-summary-grid small,
.fe7-watchlist-auth-rails small {
  color: var(--nexus-text-soft) !important;
  line-height: 1.35 !important;
}

.fe7-player-coverage-module {
  min-height: 232px !important;
}

.fe7-player-coverage-module .nxp-module-body,
.fe7-player-coverage-module .nexus-ref-panel-body {
  height: 100% !important;
}

.fe7-profile-coverage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  height: 100% !important;
}

.fe7-watchlist-auth-console {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr) !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
  padding: 12px !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nxr-card-radius) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nexus-cyan) 11%, transparent), transparent 48%),
    color-mix(in srgb, var(--nexus-surface) 82%, #07101a) !important;
}

.fe7-watchlist-auth-table {
  min-width: 0 !important;
  display: grid !important;
  gap: 7px !important;
}

.fe7-watchlist-auth-table-head,
.fe7-watchlist-auth-row {
  display: grid !important;
  grid-template-columns: minmax(160px, 1.35fr) repeat(4, minmax(96px, 1fr)) !important;
  gap: 8px !important;
  align-items: center !important;
}

.fe7-watchlist-auth-table-head {
  padding: 0 8px 4px !important;
  color: var(--nexus-text-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.fe7-watchlist-auth-row {
  min-height: 50px !important;
  padding: 9px 10px !important;
  border: 1px solid color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
  border-radius: calc(var(--nxr-card-radius) - 2px) !important;
  background: color-mix(in srgb, var(--nexus-surface-raised) 74%, transparent) !important;
}

.fe7-watchlist-auth-row strong {
  color: var(--nexus-text) !important;
}

.fe7-watchlist-auth-row span {
  min-width: 0 !important;
  color: var(--nexus-text-muted) !important;
  overflow-wrap: anywhere !important;
}

.fe7-watchlist-auth-rails {
  min-width: 0 !important;
  display: grid !important;
  gap: 10px !important;
}

.nexus-settings-reference:not(.fe7-settings-page),
.inbox-route-guest-mount .route-page {
  width: min(100%, 1240px) !important;
  max-width: 1240px !important;
}

.nexus-settings-reference:not(.fe7-settings-page) > .placeholder-hero,
.inbox-route-guest-mount .placeholder-hero {
  width: 100% !important;
  max-width: 1240px !important;
  min-height: min(620px, calc(100vh - 80px)) !important;
  align-content: start !important;
}

.nexus-settings-reference:not(.fe7-settings-page) .settings-auth-preview-grid,
.inbox-route-guest-mount .fe7-inbox-guest-grid {
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.3fr) minmax(220px, 0.8fr) !important;
  align-items: stretch !important;
}

.nexus-settings-reference:not(.fe7-settings-page) .settings-auth-preview-card,
.inbox-route-guest-mount .fe7-inbox-guest-grid .route-module-card {
  min-height: 184px !important;
}

@media (max-width: 1100px) {
  .fe7-profile-hero-summary,
  .fe7-profile-coverage-grid,
  .fe7-org-empty-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .fe7-watchlist-auth-console {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .fe7-profile-hero-summary,
  .fe7-profile-coverage-grid,
  .fe7-org-empty-summary-grid,
  .nexus-settings-reference:not(.fe7-settings-page) .settings-auth-preview-grid,
  .inbox-route-guest-mount .fe7-inbox-guest-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-profile-hero-summary article,
  .fe7-profile-coverage-grid article,
  .fe7-org-empty-summary-grid article,
  .fe7-watchlist-auth-rails article {
    min-height: 78px !important;
  }

  .fe7-watchlist-auth-console {
    padding: 10px !important;
  }

  .fe7-watchlist-auth-table-head {
    display: none !important;
  }

  .fe7-watchlist-auth-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .nexus-settings-reference:not(.fe7-settings-page) > .placeholder-hero,
  .inbox-route-guest-mount .placeholder-hero {
    min-height: 0 !important;
  }
}

/* NEXUS-FIDELITY-1d: tighten profile heroes and enrich honest skeleton modules. */
.fe7-player-profile-page .fe7-profile-hero {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 158px) !important;
  gap: 14px !important;
  padding: clamp(16px, 1.35vw, 22px) !important;
}

.fe7-player-profile-page .fe7-profile-identity-block {
  gap: clamp(14px, 1.45vw, 20px) !important;
  align-items: center !important;
}

.fe7-player-profile-page .fe7-profile-avatar {
  width: clamp(94px, 7.4vw, 118px) !important;
  height: clamp(94px, 7.4vw, 118px) !important;
}

.fe7-player-profile-page .fe7-profile-title {
  font-size: clamp(30px, 2.45vw, 42px) !important;
  line-height: 1.02 !important;
}

.fe7-player-profile-page .fe7-profile-bio {
  margin-top: 8px !important;
  max-width: 64ch !important;
}

.fe7-player-profile-page .fe7-profile-hero-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.fe7-player-profile-page .fe7-profile-hero-summary article {
  min-height: 58px !important;
  padding: 8px 10px !important;
  gap: 2px !important;
}

.fe7-player-profile-page .fe7-profile-hero-summary small {
  display: none !important;
}

.fe7-player-profile-page .fe7-profile-rank-card {
  min-height: 0 !important;
  padding: 12px !important;
}

.fe7-player-profile-page .fe7-profile-rank-card strong {
  font-size: clamp(24px, 2.4vw, 36px) !important;
}

.route-page-organization .fe7-org-empty-profile {
  max-width: var(--nxr-max-profile) !important;
}

.route-page-organization .fe7-org-empty-hero {
  grid-template-columns: minmax(0, 1fr) minmax(128px, 158px) !important;
  gap: 14px !important;
  padding: clamp(16px, 1.4vw, 22px) !important;
}

.route-page-organization .fe7-org-empty-hero .fe7-org-identity-block {
  gap: clamp(14px, 1.45vw, 20px) !important;
  align-items: center !important;
}

.route-page-organization .fe7-org-empty-hero .fe7-org-avatar {
  width: clamp(94px, 7.2vw, 118px) !important;
  height: clamp(94px, 7.2vw, 118px) !important;
}

.route-page-organization .fe7-org-empty-hero .nx-profile-name {
  font-size: clamp(34px, 3vw, 48px) !important;
  line-height: 1.02 !important;
}

.route-page-organization .fe7-org-empty-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.route-page-organization .fe7-org-empty-summary-grid article {
  min-height: 62px !important;
  padding: 8px 10px !important;
  gap: 2px !important;
}

.route-page-organization .fe7-org-empty-summary-grid small {
  display: none !important;
}

.route-page-organization .fe7-org-empty-hero .fe7-org-summary-card {
  min-height: 0 !important;
  padding: 12px !important;
}

.fe7-history-timeline {
  display: grid !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.fe7-history-timeline article {
  display: grid !important;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 0.45fr) minmax(180px, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 8px 10px !important;
  border-top: 1px solid color-mix(in srgb, var(--nexus-border) 84%, transparent) !important;
}

.fe7-history-timeline span,
.fe7-history-timeline small {
  color: var(--nexus-text-muted) !important;
}

.fe7-history-timeline strong {
  color: var(--nexus-text) !important;
}

.fe7-player-heatmap-preview {
  display: grid !important;
  grid-template-columns: minmax(200px, 1fr) minmax(170px, 0.55fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.fe7-player-heatmap-preview .fe7-heatmap {
  min-height: 168px !important;
}

.fe7-heatmap-metric-list {
  display: grid !important;
  gap: 0 !important;
  margin: 0 !important;
}

.fe7-heatmap-metric-list div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--nexus-border) 82%, transparent) !important;
}

.fe7-heatmap-metric-list dt {
  color: var(--nexus-text-muted) !important;
  font-weight: 700 !important;
}

.fe7-heatmap-metric-list dd {
  margin: 0 !important;
  color: var(--nexus-text) !important;
  font-weight: 800 !important;
}

.fe7-org-unavailable-trophy-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.fe7-org-unavailable-trophy-grid article {
  min-height: 112px !important;
  display: grid !important;
  place-items: center !important;
  gap: 6px !important;
  padding: 10px !important;
  border-right: 1px solid color-mix(in srgb, var(--nexus-border) 70%, transparent) !important;
  text-align: center !important;
}

.fe7-org-unavailable-trophy-grid article:last-child {
  border-right: 0 !important;
}

.fe7-org-unavailable-trophy-grid article > span {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 48%),
    color-mix(in srgb, var(--nexus-warning) 24%, var(--nexus-surface-raised)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nexus-warning) 42%, var(--nexus-border)) !important;
}

.fe7-org-unavailable-trophy-grid strong,
.fe7-org-unavailable-row strong,
.fe7-org-unavailable-achievement strong {
  color: var(--nexus-text) !important;
}

.fe7-org-unavailable-trophy-grid small,
.fe7-org-unavailable-row span,
.fe7-org-unavailable-achievement span,
.fe7-org-unavailable-achievement p {
  color: var(--nexus-text-muted) !important;
}

.fe7-org-unavailable-table {
  display: grid !important;
  gap: 0 !important;
}

.fe7-org-unavailable-row {
  display: grid !important;
  grid-template-columns: minmax(150px, 1.1fr) minmax(90px, 0.7fr) minmax(90px, 0.7fr) minmax(130px, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--nexus-border) 82%, transparent) !important;
}

.fe7-org-unavailable-row.is-head {
  min-height: 32px !important;
  color: var(--nexus-text-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.fe7-org-unavailable-partners {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.fe7-org-unavailable-partners span {
  min-height: 54px !important;
  display: grid !important;
  place-items: center !important;
  padding: 10px !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nxr-card-radius) !important;
  color: var(--nexus-text) !important;
  font-weight: 800 !important;
  background: color-mix(in srgb, var(--nexus-surface-raised) 78%, transparent) !important;
}

.fe7-org-unavailable-post-actions {
  display: flex !important;
  gap: 16px !important;
  margin-top: 10px !important;
}

.fe7-org-unavailable-post-actions span {
  width: 54px !important;
  height: 10px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--nexus-cyan) 34%, var(--nexus-border)) !important;
}

.fe7-org-unavailable-achievement {
  display: grid !important;
  grid-template-columns: minmax(160px, 0.48fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
}

.fe7-org-unavailable-achievement > div {
  min-height: 112px !important;
  border-radius: var(--nxr-card-radius) !important;
  background:
    linear-gradient(135deg, rgba(245, 181, 70, 0.24), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    color-mix(in srgb, var(--nexus-surface-raised) 76%, #090f15) !important;
  border: 1px solid color-mix(in srgb, var(--nexus-warning) 34%, var(--nexus-border)) !important;
}

.nexus-settings-reference:not(.fe7-settings-page),
.inbox-route-guest-mount .route-page {
  width: min(100%, var(--nxr-max-route)) !important;
  max-width: var(--nxr-max-route) !important;
}

.nexus-settings-reference:not(.fe7-settings-page) > .placeholder-hero,
.inbox-route-guest-mount .placeholder-hero {
  max-width: var(--nxr-max-route) !important;
  min-height: min(680px, calc(100vh - 70px)) !important;
}

.inbox-route-guest-mount .fe7-inbox-guest-grid {
  grid-template-columns: minmax(270px, 0.42fr) minmax(0, 1fr) minmax(250px, 0.36fr) !important;
}

.inbox-route-guest-mount .fe7-inbox-guest-thread-card {
  min-height: 280px !important;
}

.nexus-settings-reference:not(.fe7-settings-page) .settings-auth-preview-grid {
  grid-template-columns: minmax(290px, 0.42fr) minmax(0, 1fr) minmax(280px, 0.4fr) !important;
}

@media (max-width: 1100px) {
  .fe7-player-profile-page .fe7-profile-hero,
  .route-page-organization .fe7-org-empty-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-player-profile-page .fe7-profile-hero-summary,
  .route-page-organization .fe7-org-empty-summary-grid,
  .fe7-org-unavailable-trophy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .fe7-player-heatmap-preview,
  .fe7-org-unavailable-achievement {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .fe7-player-profile-page .fe7-profile-hero-summary,
  .route-page-organization .fe7-org-empty-summary-grid,
  .fe7-org-unavailable-trophy-grid,
  .fe7-org-unavailable-partners,
  .inbox-route-guest-mount .fe7-inbox-guest-grid,
  .nexus-settings-reference:not(.fe7-settings-page) .settings-auth-preview-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-history-timeline article,
  .fe7-org-unavailable-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-page-organization .fe7-org-empty-hero .fe7-org-identity-block {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .route-page-organization .fe7-org-empty-hero .nx-profile-name {
    max-width: 100% !important;
    font-size: clamp(29px, 9vw, 34px) !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .fe7-player-profile-page .fe7-profile-hero-summary article,
  .route-page-organization .fe7-org-empty-summary-grid article {
    min-height: 54px !important;
  }
}

/* NEXUS-FIDELITY-1e: reference-canvas geometry and muted blue night palette. */
:root[data-theme="night"] {
  --nexus-bg: #071421;
  --nexus-section: #0b1b2b;
  --nexus-surface: #10263a;
  --nexus-surface-raised: #153149;
  --nexus-surface-active: #1b3a54;
  --nexus-sidebar-bg: #081927;
  --nexus-nav-surface: #081927;
  --nexus-hero-surface: #112b42;
  --nexus-dashboard-surface: #0f2538;
  --nexus-table-surface: #10283d;
  --nexus-table-head-surface: #163650;
  --nexus-chart-surface: #0b1e2f;
  --nexus-feed-surface: #10263a;
  --nexus-provider-surface: #112a40;
  --nexus-preview-surface: #152837;
  --nexus-utility-surface: #0d2133;
  --nexus-border: #28475f;
  --nexus-border-strong: #3b6e90;
  --panel: color-mix(in srgb, var(--nexus-surface) 93%, transparent);
  --panel-strong: var(--nexus-dashboard-surface);
  --panel-border: var(--nexus-border);
  --line: var(--nexus-border);
  --line-strong: var(--nexus-border-strong);
  --bg-start: #081827;
  --bg-end: #071421;
}

:root[data-theme="night"] body,
:root[data-theme="night"] body.nx-active {
  background:
    radial-gradient(circle at 14% -8%, rgba(38, 217, 255, 0.12), transparent 30%),
    radial-gradient(circle at 86% 2%, rgba(106, 168, 255, 0.07), transparent 28%),
    linear-gradient(180deg, #0a1b2b 0%, #071421 58%, #06111c 100%) !important;
}

@media (min-width: 1000px) {
  .nexus-app-frame,
  .nxp-board {
    width: min(calc(100vw - 12px), 1672px) !important;
    max-width: 1672px !important;
    min-height: calc(100vh - 12px) !important;
    margin: 6px auto !important;
    grid-template-columns: clamp(204px, 13vw, 228px) minmax(0, 1fr) !important;
  }

  .nexus-main-stage,
  .nx-main {
    padding: clamp(14px, 1vw, 20px) !important;
  }

  .nexus-route-stage > .route-page,
  .route-page-home.nexus-home-board,
  .fe7-preview-route,
  .nexus-search-reference,
  .nexus-settings-reference,
  .fe7-settings-page,
  .nexus-inbox-reference,
  .fe7-watchlist-page,
  .route-page-login,
  .fe7-player-profile-shell,
  .route-page-organization {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  .fe7-page-head,
  .nexus-home-dashboard-head,
  .search-route-hero,
  .fe7-settings-head,
  .fe7-inbox-toolbar,
  .fe7-preview-route .fe7-preview-head,
  .fe7-profile-hero,
  .fe7-org-empty-hero {
    min-height: 86px !important;
    padding: clamp(14px, 1vw, 20px) !important;
  }

  .fe7-player-profile-page .fe7-profile-hero {
    grid-template-columns: minmax(290px, 0.86fr) minmax(520px, 1.14fr) minmax(160px, 0.38fr) !important;
  }

  .route-page-organization .fe7-org-empty-hero {
    grid-template-columns: minmax(320px, 0.9fr) minmax(540px, 1.12fr) minmax(148px, 0.34fr) !important;
  }

  .fe7-player-profile-page .fe7-profile-hero-summary,
  .route-page-organization .fe7-org-empty-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .fe7-player-profile-page .fe7-profile-hero-summary article,
  .route-page-organization .fe7-org-empty-summary-grid article {
    min-height: 68px !important;
  }

  .fe7-page-analytics > .fe7-two-col,
  .fe7-page-market .fe7-market-main,
  .fe7-page-matches .fe7-match-hero,
  .fe7-page-predictions > .fe7-two-col,
  .route-page-feed.fe7-feed-page,
  .route-page-organization .fe7-org-empty-grid {
    gap: clamp(12px, 0.9vw, 16px) !important;
  }
}

/* NEXUS-FIDELITY-2: sampled mockup palette tokens and softer shared surfaces. */
:root {
  --nxf2-light-bg: #fcfcfc;
  --nxf2-light-section: #f8f8fc;
  --nxf2-light-surface: #ffffff;
  --nxf2-light-raised: #fcfcff;
  --nxf2-light-active: #f0f4fc;
  --nxf2-light-border: #e4e8ec;
  --nxf2-light-border-strong: #c8ccd8;
  --nxf2-light-text: #0c1828;
  --nxf2-light-muted: #5c6878;
  --nxf2-light-soft: #a0a8b8;
  --nxf2-dark-bg: #0c2030;
  --nxf2-dark-section: #102434;
  --nxf2-dark-surface: #102438;
  --nxf2-dark-raised: #142838;
  --nxf2-dark-active: #14283c;
  --nxf2-dark-utility: #0c2034;
  --nxf2-dark-border: #203040;
  --nxf2-dark-border-strong: #2c3c4c;
  --nxf2-dark-text: #f4f8fc;
  --nxf2-dark-muted: #a4acb8;
  --nxf2-dark-soft: #64707c;
  --nxf2-cyan: #48a0e8;
  --nxf2-blue: #2054b8;
  --nxf2-purple: #5440b0;
  --nxf2-success: #3cac70;
  --nxf2-warning: #f8c884;
  --nxf2-danger: #f06c58;
  --nxf2-shadow-light: 0 14px 32px rgba(12, 24, 40, 0.07);
  --nxf2-shadow-raised-light: 0 18px 42px rgba(12, 24, 40, 0.09);
  --nxf2-shadow-dark: 0 16px 34px rgba(4, 16, 28, 0.24);
  --nxf2-shadow-raised-dark: 0 20px 44px rgba(4, 16, 28, 0.3);
}

:root:not([data-theme="night"]) {
  --nexus-bg: var(--nxf2-light-bg);
  --nexus-section: var(--nxf2-light-section);
  --nexus-surface: var(--nxf2-light-surface);
  --nexus-surface-raised: var(--nxf2-light-raised);
  --nexus-surface-active: var(--nxf2-light-active);
  --nexus-sidebar-bg: #ffffff;
  --nexus-nav-surface: #ffffff;
  --nexus-hero-surface: #ffffff;
  --nexus-dashboard-surface: #ffffff;
  --nexus-table-surface: #ffffff;
  --nexus-table-head-surface: var(--nxf2-light-active);
  --nexus-chart-surface: #f8f8fc;
  --nexus-feed-surface: #ffffff;
  --nexus-provider-surface: #fcfcff;
  --nexus-preview-surface: #f8f8fc;
  --nexus-utility-surface: #f4f4f8;
  --nexus-border: var(--nxf2-light-border);
  --nexus-border-strong: var(--nxf2-light-border-strong);
  --nexus-cyan: var(--nxf2-cyan);
  --nexus-blue: var(--nxf2-blue);
  --nexus-purple: var(--nxf2-purple);
  --nexus-success: var(--nxf2-success);
  --nexus-warning: var(--nxf2-warning);
  --nexus-danger: var(--nxf2-danger);
  --nexus-text: var(--nxf2-light-text);
  --nexus-text-muted: var(--nxf2-light-muted);
  --nexus-text-soft: var(--nxf2-light-soft);
  --nexus-text-disabled: #acb4c4;
  --nexus-grid-line: #e8ecf0;
  --nexus-chip-bg: #f0f4fc;
  --nexus-tab-bg: #fcfcff;
  --nexus-tab-active-bg: #f0f4fc;
  --nexus-shadow-soft: var(--nxf2-shadow-light);
  --nexus-shadow-raised: var(--nxf2-shadow-raised-light);
  --nexus-shadow-active: 0 0 0 1px color-mix(in srgb, var(--nxf2-cyan) 18%, transparent), 0 12px 28px rgba(72, 160, 232, 0.08);
  --bg-start: #ffffff;
  --bg-end: #fcfcfc;
  --panel: color-mix(in srgb, var(--nexus-surface) 96%, transparent);
  --panel-strong: var(--nexus-surface);
  --panel-border: var(--nexus-border);
  --ink: var(--nexus-text);
  --ink-strong: var(--nexus-text);
  --muted: var(--nexus-text-muted);
  --muted-strong: #505c6c;
  --line: var(--nexus-border);
  --line-strong: var(--nexus-border-strong);
  --accent: var(--nexus-cyan);
  --accent-soft: color-mix(in srgb, var(--nexus-cyan) 10%, transparent);
  --accent-2: var(--nexus-blue);
  --accent-2-soft: color-mix(in srgb, var(--nexus-blue) 8%, transparent);
  --warning: var(--nexus-warning);
  --loss: var(--nexus-danger);
  --signal: var(--nexus-cyan);
  --shadow: var(--nexus-shadow-soft);
  --shadow-soft: var(--nexus-shadow-soft);
  --shadow-glow: 0 0 0 1px color-mix(in srgb, var(--nexus-cyan) 10%, transparent);
  --grid-line: var(--nexus-grid-line);
  --fe7-bg: var(--nexus-bg);
  --fe7-shell: var(--nexus-section);
  --fe7-surface: var(--nexus-surface);
  --fe7-surface-2: var(--nexus-surface-raised);
  --fe7-zone-raised: var(--nexus-dashboard-surface);
  --fe7-zone-soft: var(--nexus-utility-surface);
  --fe7-zone-band: var(--nexus-surface-active);
  --fe7-panel-alt: var(--nexus-section);
  --fe7-panel-band: color-mix(in srgb, var(--nexus-cyan) 5%, var(--nexus-surface-active));
  --fe7-border: var(--nexus-border);
  --fe7-border-strong: var(--nexus-border-strong);
  --fe7-neutral-line: var(--nexus-border);
  --fe7-text: var(--nexus-text);
  --fe7-muted: var(--nexus-text-muted);
  --fe7-cyan: var(--nexus-cyan);
  --fe7-cyan-2: #1898a8;
  --fe7-blue: var(--nexus-blue);
  --fe7-green: var(--nexus-success);
  --fe7-gold: var(--nexus-warning);
  --fe7-red: var(--nexus-danger);
  --fe7-row-alt: color-mix(in srgb, var(--nexus-blue) 3%, transparent);
  --fe7-row-hover: color-mix(in srgb, var(--nexus-cyan) 7%, var(--nexus-surface-active));
  --fe7-card-shadow: var(--nexus-shadow-soft);
  --fe7-glow: var(--nexus-shadow-active);
}

:root[data-theme="night"] {
  --nexus-bg: var(--nxf2-dark-bg);
  --nexus-section: var(--nxf2-dark-section);
  --nexus-surface: var(--nxf2-dark-surface);
  --nexus-surface-raised: var(--nxf2-dark-raised);
  --nexus-surface-active: var(--nxf2-dark-active);
  --nexus-sidebar-bg: #0c2030;
  --nexus-nav-surface: #102034;
  --nexus-hero-surface: #102438;
  --nexus-dashboard-surface: #102438;
  --nexus-table-surface: #102438;
  --nexus-table-head-surface: #14283c;
  --nexus-chart-surface: #0c2034;
  --nexus-feed-surface: #102438;
  --nexus-provider-surface: #102438;
  --nexus-preview-surface: #142838;
  --nexus-utility-surface: var(--nxf2-dark-utility);
  --nexus-border: var(--nxf2-dark-border);
  --nexus-border-strong: var(--nxf2-dark-border-strong);
  --nexus-cyan: var(--nxf2-cyan);
  --nexus-blue: var(--nxf2-blue);
  --nexus-purple: var(--nxf2-purple);
  --nexus-success: var(--nxf2-success);
  --nexus-warning: var(--nxf2-warning);
  --nexus-danger: var(--nxf2-danger);
  --nexus-text: var(--nxf2-dark-text);
  --nexus-text-muted: var(--nxf2-dark-muted);
  --nexus-text-soft: var(--nxf2-dark-soft);
  --nexus-text-disabled: #5c6878;
  --nexus-grid-line: #203040;
  --nexus-chip-bg: #142838;
  --nexus-tab-bg: #102438;
  --nexus-tab-active-bg: #14283c;
  --nexus-shadow-soft: var(--nxf2-shadow-dark);
  --nexus-shadow-raised: var(--nxf2-shadow-raised-dark);
  --nexus-shadow-active: 0 0 0 1px color-mix(in srgb, var(--nxf2-cyan) 20%, transparent), 0 16px 32px rgba(4, 16, 28, 0.28);
  --bg-start: #102434;
  --bg-end: #0c2030;
  --panel: color-mix(in srgb, var(--nexus-surface) 94%, transparent);
  --panel-strong: var(--nexus-surface);
  --panel-border: var(--nexus-border);
  --ink: var(--nexus-text);
  --ink-strong: #f8fcff;
  --muted: var(--nexus-text-muted);
  --muted-strong: #f4f8fc;
  --line: var(--nexus-border);
  --line-strong: var(--nexus-border-strong);
  --accent: var(--nexus-cyan);
  --accent-soft: color-mix(in srgb, var(--nexus-cyan) 10%, transparent);
  --accent-2: var(--nexus-blue);
  --accent-2-soft: color-mix(in srgb, var(--nexus-blue) 12%, transparent);
  --warning: var(--nexus-warning);
  --loss: var(--nexus-danger);
  --signal: var(--nexus-cyan);
  --shadow: var(--nexus-shadow-soft);
  --shadow-soft: var(--nexus-shadow-soft);
  --shadow-glow: 0 0 0 1px color-mix(in srgb, var(--nexus-cyan) 12%, transparent);
  --grid-line: var(--nexus-grid-line);
  --fe7-bg: var(--nexus-bg);
  --fe7-shell: var(--nexus-section);
  --fe7-surface: var(--nexus-surface);
  --fe7-surface-2: var(--nexus-surface-raised);
  --fe7-zone-raised: var(--nexus-dashboard-surface);
  --fe7-zone-soft: var(--nexus-utility-surface);
  --fe7-zone-band: var(--nexus-surface-active);
  --fe7-panel-alt: var(--nexus-section);
  --fe7-panel-band: color-mix(in srgb, var(--nexus-cyan) 5%, var(--nexus-surface-active));
  --fe7-border: var(--nexus-border);
  --fe7-border-strong: var(--nexus-border-strong);
  --fe7-neutral-line: var(--nexus-border);
  --fe7-text: var(--nexus-text);
  --fe7-muted: var(--nexus-text-muted);
  --fe7-cyan: var(--nexus-cyan);
  --fe7-cyan-2: #1898a8;
  --fe7-blue: var(--nexus-blue);
  --fe7-green: var(--nexus-success);
  --fe7-gold: var(--nexus-warning);
  --fe7-red: var(--nexus-danger);
  --fe7-row-alt: color-mix(in srgb, #ffffff 3%, transparent);
  --fe7-row-hover: color-mix(in srgb, var(--nexus-cyan) 8%, var(--nexus-surface-active));
  --fe7-card-shadow: var(--nexus-shadow-soft);
  --fe7-glow: var(--nexus-shadow-active);
}

:root:not([data-theme="night"]) body,
:root:not([data-theme="night"]) body.nx-active {
  color: var(--nexus-text) !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfcfc 58%, #f8f8fc 100%) !important;
}

:root[data-theme="night"] body,
:root[data-theme="night"] body.nx-active {
  color: var(--nexus-text) !important;
  background:
    radial-gradient(circle at 22% -12%, rgba(72, 160, 232, 0.055), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(84, 64, 176, 0.035), transparent 30%),
    linear-gradient(180deg, #102434 0%, #0c2030 54%, #0c1c2c 100%) !important;
}

:root[data-theme="night"] .noise {
  opacity: 0.02 !important;
}

.nexus-app-frame,
.nxp-board {
  border-color: color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
  background: var(--nexus-section) !important;
  box-shadow: var(--nexus-shadow-raised) !important;
}

.nexus-main-stage,
.nx-main,
.nxp-main {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nexus-section) 84%, transparent), var(--nexus-bg)) !important;
}

.nexus-sidebar,
.nxp-sidebar,
.nexus-sidebar.panel,
.nexus-sidebar.nexus-surface,
.nxp-board > .nexus-sidebar,
.nexus-app-frame > .nexus-sidebar {
  border-color: color-mix(in srgb, var(--nexus-border) 88%, transparent) !important;
  background:
    linear-gradient(180deg, var(--nexus-nav-surface) 0%, var(--nexus-sidebar-bg) 100%) !important;
  box-shadow: none !important;
}

.nexus-sidebar-link:hover,
.nx-sidebar-link:hover {
  border-left-color: color-mix(in srgb, var(--nexus-cyan) 40%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-surface-raised) 88%, var(--nexus-surface)) !important;
}

.nexus-sidebar-link.is-active,
.nx-sidebar-link.is-active {
  border-left-color: color-mix(in srgb, var(--nexus-cyan) 76%, var(--nexus-border)) !important;
  background: var(--nexus-tab-active-bg) !important;
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--nexus-cyan) 76%, var(--nexus-border)) !important;
}

.nexus-reference-card,
.nexus-ref-panel,
.nexus-surface.panel,
.fe7-card,
.route-module-card,
.social-post-card,
.inbox-chat-sidebar,
.inbox-chat-main,
.inbox-chat-detail,
.fe7-stat-card,
.nexus-stat-card,
.nx-metric,
.nexus-home-module,
.nxp-profile-card,
.nxp-module,
.nxp-card,
.fe7-settings-summary-card,
.fe7-inbox-aside-card,
.search-group-panel,
.provider-management-panel,
.profile-settings-shell,
.avatar-crop-dialog {
  border-color: color-mix(in srgb, var(--nexus-border) 88%, transparent) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 2%, transparent), transparent 52%),
    var(--nexus-dashboard-surface) !important;
  box-shadow: var(--nexus-shadow-soft) !important;
}

.fe7-card .fe7-card,
.nexus-reference-card .nexus-reference-card,
.nexus-ref-panel .nexus-ref-panel,
.route-module-card .route-module-card,
.fe7-card-body .route-module-card,
.inbox-chat-main .social-post-card,
.fe7-watchlist-spotlight,
.fe7-watchlist-table-card,
.fe7-watchlist-side .fe7-card,
.fe7-profile-rank-card,
.fe7-org-summary-card,
.nexus-home-score-shell,
.route-page-feed .nexus-rail-empty,
.fe7-preview-table-shell,
.fe7-preview-chart-shell,
.fe7-settings-mini-card,
.provider-management-row,
.search-result-card,
.player-match-record-table-row {
  border-color: color-mix(in srgb, var(--nexus-border) 82%, transparent) !important;
  background: var(--nexus-surface-raised) !important;
}

.fe7-page-head,
.nexus-home-dashboard-head,
.search-route-hero,
.fe7-profile-hero,
.fe7-org-hero,
.fe7-org-empty-hero,
.fe7-preview-route .fe7-preview-head,
.fe7-settings-head,
.placeholder-hero {
  border-color: color-mix(in srgb, var(--nexus-border) 90%, transparent) !important;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--nexus-cyan) 7%, transparent), transparent 42%),
    linear-gradient(135deg, var(--nexus-hero-surface), color-mix(in srgb, var(--nexus-surface-active) 56%, var(--nexus-dashboard-surface))) !important;
  box-shadow: var(--nexus-shadow-raised) !important;
}

.fe7-card-header,
.nexus-ref-panel-head,
.fe7-preview-table-head,
.fe7-watchlist-table-head,
.search-result-table-head,
.player-match-record-table-head,
.provider-management-head,
.provider-management-table-head,
.inbox-chat-thread-head,
.inbox-chat-search-row,
.fe7-card-kicker,
.fe7-settings-card-kicker {
  border-color: color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
  background: var(--nexus-table-head-surface) !important;
  color: var(--nexus-text-muted) !important;
}

.fe7-watchlist-player-row:nth-child(even),
.search-result-card:nth-child(even),
.player-match-record-table-row:nth-child(even),
.provider-management-row:nth-child(even),
.fe7-preview-table-row:nth-child(even),
.fe7-table-row:nth-child(even) {
  background: color-mix(in srgb, var(--nexus-surface-active) 42%, transparent) !important;
}

.fe7-watchlist-player-row:hover,
.search-result-card:hover,
.player-match-record-table-row:hover,
.provider-management-row:hover,
.inbox-conversation-preview:hover,
.fe7-preview-table-row:hover,
.fe7-table-row:hover {
  border-color: color-mix(in srgb, var(--nexus-border-strong) 78%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-surface-active) 78%, var(--nexus-surface-raised)) !important;
}

.solid-button,
.nexus-button--primary,
.action-button-positive,
.provider-connect-action {
  border-color: color-mix(in srgb, var(--nexus-cyan) 46%, var(--nexus-border)) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nexus-cyan) 64%, #102438), color-mix(in srgb, var(--nexus-blue) 78%, #102438)) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(16, 36, 56, 0.16) !important;
}

.solid-button:hover,
.nexus-button--primary:hover,
.action-button-positive:hover,
.provider-connect-action:hover {
  border-color: color-mix(in srgb, var(--nexus-cyan) 66%, var(--nexus-border)) !important;
  box-shadow: 0 12px 26px rgba(16, 36, 56, 0.2) !important;
}

.ghost-button,
.nexus-button--secondary,
.nexus-icon-button,
.nexus-login-action,
.nexus-profile-action,
.fe7-head-action,
.fe7-card-action-link,
.provider-coming-soon-action,
.fe7-inbox-tab,
.fe7-range-tabs button,
.fe7-watchlist-filters button {
  border-color: color-mix(in srgb, var(--nexus-border) 88%, transparent) !important;
  background: var(--nexus-surface-raised) !important;
  color: var(--nexus-text) !important;
  box-shadow: none !important;
}

.ghost-button:hover,
.nexus-button--secondary:hover,
.nexus-icon-button:hover,
.nexus-login-action:hover,
.nexus-profile-action:hover,
.fe7-head-action:hover,
.fe7-range-tabs button:hover,
.fe7-watchlist-filters button:hover {
  border-color: color-mix(in srgb, var(--nexus-border-strong) 76%, var(--nexus-border)) !important;
  background: var(--nexus-surface-active) !important;
}

.fe7-page-tabs,
.nx-profile-tabs,
.fe7-org-tabs,
.fe7-inbox-tabs,
.nexus-tab-row {
  border-color: color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
  background: var(--nexus-tab-bg) !important;
}

.fe7-page-tabs .is-active,
.fe7-tab.is-active,
.nxp-tab.is-active,
.nexus-tab.is-active,
.fe7-inbox-tab.is-active,
.fe7-range-tabs button.is-active,
.fe7-watchlist-filters button.is-active {
  border-color: color-mix(in srgb, var(--nexus-cyan) 42%, var(--nexus-border)) !important;
  background: var(--nexus-tab-active-bg) !important;
  color: var(--nexus-text) !important;
  box-shadow: none !important;
}

.fe7-page-tabs .is-active::after,
.fe7-tab.is-active::after,
.nxp-tab.is-active::after,
.nexus-tab.is-active::after {
  background: color-mix(in srgb, var(--nexus-cyan) 72%, var(--nexus-border)) !important;
  box-shadow: none !important;
}

.fe7-profile-chip,
.fe7-provider-chip,
.nexus-badge,
.preview-chip,
.placeholder-chip,
.provider-status-pill,
.fe7-inbox-row-chips em,
.nav-soon-pill,
.nexus-tab-soon {
  border-color: color-mix(in srgb, var(--nexus-cyan) 24%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-cyan) 7%, var(--nexus-chip-bg)) !important;
  color: var(--nexus-text) !important;
}

.ui-placeholder,
.nx-placeholder,
.nexus-ref-empty,
.empty-state,
.fe7-placeholder-notice {
  border-color: color-mix(in srgb, var(--nexus-warning) 28%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-warning) 6%, var(--nexus-surface-raised)) !important;
  color: var(--nexus-text-muted) !important;
}

.fe7-preview-chart-shell,
.fe7-page-analytics .fe7-heatmap,
.nexus-home-score-shell,
.route-page-feed .fe7-feed-media-preview,
.fe7-player-heatmap-preview .fe7-heatmap {
  border-color: color-mix(in srgb, var(--nexus-border) 84%, transparent) !important;
  background:
    linear-gradient(var(--nexus-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--nexus-grid-line) 1px, transparent 1px),
    var(--nexus-chart-surface) !important;
  background-size: 28px 28px !important;
}

.nexus-home-module::before,
.fe7-card::before,
.nexus-ref-panel::before,
.route-module-card::before,
.fe7-stat-card::before,
.nexus-stat-card::before,
.nx-metric::before,
.fe7-settings-summary-card::before,
.fe7-status-strip article::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nexus-cyan) 72%, var(--nexus-border)), transparent) !important;
  opacity: 0.52 !important;
  box-shadow: none !important;
}

.fe7-logo-mark,
.nexus-brand-mark,
.nx-logo-mark,
.nxp-logo-mark,
.nexus-home-brand-mark {
  filter: drop-shadow(0 6px 14px rgba(72, 160, 232, 0.1)) !important;
}

:root[data-theme="night"] .fe7-logo-mark,
:root[data-theme="night"] .nexus-brand-mark,
:root[data-theme="night"] .nx-logo-mark,
:root[data-theme="night"] .nxp-logo-mark,
:root[data-theme="night"] .nexus-home-brand-mark {
  filter: drop-shadow(0 6px 14px rgba(72, 160, 232, 0.08)) !important;
}

@media (max-width: 760px) {
  .nexus-app-frame,
  .nxp-board {
    box-shadow: var(--nexus-shadow-soft) !important;
  }

  .fe7-page-head,
  .nexus-home-dashboard-head,
  .search-route-hero,
  .fe7-profile-hero,
  .fe7-org-hero,
  .fe7-org-empty-hero,
  .fe7-preview-route .fe7-preview-head,
  .fe7-settings-head,
  .placeholder-hero {
    padding: 12px !important;
  }
}

/* NEXUS-FIDELITY-3: live v193 follow-up for mockup board framing, heroes, and module rhythm. */
:root {
  --nxf3-board-radius: 8px;
  --nxf3-module-radius: 8px;
  --nxf3-light-shadow: 0 10px 24px rgba(12, 24, 40, 0.055);
  --nxf3-light-shadow-raised: 0 18px 38px rgba(12, 24, 40, 0.08);
  --nxf3-dark-shadow: 0 16px 32px rgba(4, 16, 28, 0.2);
  --nxf3-dark-shadow-raised: 0 22px 44px rgba(4, 16, 28, 0.26);
}

:root:not([data-theme="night"]) {
  --nexus-section: #fcfcfc;
  --nexus-surface-raised: #fcfcff;
  --nexus-surface-active: #f4f8fc;
  --nexus-table-head-surface: #f4f8fc;
  --nexus-chart-surface: #f8fcfc;
  --nexus-border: #e4e8f0;
  --nexus-border-strong: #c8d0dc;
  --nexus-shadow-soft: var(--nxf3-light-shadow);
  --nexus-shadow-raised: var(--nxf3-light-shadow-raised);
  --fe7-card-shadow: var(--nxf3-light-shadow);
}

:root[data-theme="night"] {
  --nexus-section: #0c2030;
  --nexus-surface: #102438;
  --nexus-surface-raised: #142838;
  --nexus-surface-active: #14283c;
  --nexus-table-head-surface: #10283c;
  --nexus-border: #203444;
  --nexus-border-strong: #304458;
  --nexus-cyan: #3f96d0;
  --nexus-text-muted: #a4acb4;
  --nexus-shadow-soft: var(--nxf3-dark-shadow);
  --nexus-shadow-raised: var(--nxf3-dark-shadow-raised);
  --fe7-cyan: var(--nexus-cyan);
  --fe7-card-shadow: var(--nxf3-dark-shadow);
}

@media (min-width: 1000px) {
  .nexus-app-frame,
  .nxp-board {
    width: min(calc(100vw - 20px), 1672px) !important;
    min-height: calc(100vh - 20px) !important;
    margin: 10px auto !important;
    grid-template-columns: clamp(218px, 13.5vw, 248px) minmax(0, 1fr) !important;
    border-radius: var(--nxf3-board-radius) !important;
    overflow: hidden !important;
  }

  .nexus-main-stage,
  .nx-main,
  .nxp-main {
    padding: clamp(16px, 1.05vw, 22px) !important;
  }

  .nexus-sidebar-inner {
    padding: 22px 18px !important;
    gap: 16px !important;
  }

  .nexus-sidebar .fe7-sidebar-logo {
    min-height: 118px !important;
    align-content: center !important;
  }

  .nexus-sidebar .fe7-sidebar-logo .fe7-logo-mark {
    width: clamp(78px, 5.6vw, 96px) !important;
    height: clamp(78px, 5.6vw, 96px) !important;
  }

  .nexus-sidebar-link {
    min-height: 40px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  .nexus-sidebar-search input {
    height: 38px !important;
  }
}

.nexus-app-frame,
.nxp-board,
.nexus-reference-card,
.nexus-ref-panel,
.nexus-surface.panel,
.fe7-card,
.route-module-card,
.social-post-card,
.inbox-chat-sidebar,
.inbox-chat-main,
.inbox-chat-detail,
.fe7-stat-card,
.nexus-stat-card,
.nx-metric,
.nexus-home-module,
.nxp-profile-card,
.nxp-module,
.nxp-card,
.fe7-settings-summary-card,
.fe7-inbox-aside-card,
.search-group-panel,
.provider-management-panel,
.profile-settings-shell,
.avatar-crop-dialog {
  border-radius: var(--nxf3-module-radius) !important;
}

.fe7-page-head,
.nexus-home-dashboard-head,
.search-route-hero,
.fe7-profile-hero,
.fe7-org-hero,
.fe7-org-empty-hero,
.fe7-preview-route .fe7-preview-head,
.fe7-settings-head,
.placeholder-hero {
  border-radius: var(--nxf3-module-radius) !important;
  box-shadow: var(--nexus-shadow-raised) !important;
}

:root:not([data-theme="night"]) .route-page-organization .fe7-org-empty-hero,
:root:not([data-theme="night"]) .route-page-organization .fe7-org-hero,
:root:not([data-theme="night"]) .fe7-player-profile-page .fe7-profile-hero {
  background:
    radial-gradient(circle at 16% 0%, rgba(72, 160, 232, 0.08), transparent 42%),
    linear-gradient(135deg, #ffffff, #fcfcff 58%, #f8fcfc) !important;
  color: var(--nexus-text) !important;
}

:root:not([data-theme="night"]) .route-page-organization .fe7-org-empty-hero *,
:root:not([data-theme="night"]) .route-page-organization .fe7-org-hero *,
:root:not([data-theme="night"]) .fe7-player-profile-page .fe7-profile-hero * {
  color: inherit;
}

.route-page-organization .fe7-org-empty-hero,
.fe7-profile-hero,
.fe7-org-hero {
  min-height: clamp(188px, 14vw, 230px) !important;
}

.fe7-profile-hero .fe7-profile-avatar,
.fe7-org-hero .fe7-org-avatar,
.route-page-organization .fe7-org-empty-hero .fe7-org-avatar {
  width: clamp(104px, 7vw, 128px) !important;
  height: clamp(104px, 7vw, 128px) !important;
  border: 2px solid color-mix(in srgb, var(--nexus-cyan) 72%, var(--nexus-border)) !important;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--nexus-cyan) 8%, transparent) !important;
}

.fe7-profile-hero .nx-profile-name,
.fe7-org-hero .nx-profile-name,
.route-page-organization .fe7-org-empty-hero .nx-profile-name {
  font-size: clamp(34px, 3vw, 52px) !important;
  line-height: 1.02 !important;
}

.fe7-player-profile-page .fe7-profile-hero-summary article,
.route-page-organization .fe7-org-empty-summary-grid article,
.fe7-profile-rank-card,
.fe7-org-summary-card {
  background: color-mix(in srgb, var(--nexus-surface-raised) 84%, var(--nexus-surface)) !important;
  border-color: color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
}

.route-page-organization .fe7-org-empty-hero {
  grid-template-columns: minmax(0, 1fr) minmax(118px, 148px) !important;
  align-items: start !important;
  overflow: hidden !important;
}

.route-page-organization .fe7-org-empty-hero > .fe7-org-summary-card {
  grid-area: auto !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  width: 100% !important;
}

.route-page-organization .fe7-org-empty-summary-grid {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  min-width: 0 !important;
}

.route-page-organization .fe7-org-empty-summary-grid article,
.route-page-organization .fe7-org-empty-hero .fe7-org-summary-card {
  min-width: 0 !important;
  padding-inline: 8px !important;
}

.nexus-home-module::before,
.fe7-card::before,
.nexus-ref-panel::before,
.route-module-card::before,
.fe7-settings-summary-card::before,
.fe7-status-strip article::before {
  width: 2px !important;
  opacity: 0.18 !important;
}

.fe7-stat-card::before,
.nexus-stat-card::before,
.nx-metric::before {
  width: 2px !important;
  opacity: 0.34 !important;
}

.fe7-card-header,
.nexus-ref-panel-head,
.fe7-preview-table-head,
.fe7-watchlist-table-head,
.search-result-table-head,
.player-match-record-table-head,
.provider-management-head,
.provider-management-table-head,
.inbox-chat-thread-head,
.inbox-chat-search-row {
  min-height: 36px !important;
  padding-block: 10px !important;
}

.fe7-watchlist-player-row,
.search-result-card,
.player-match-record-table-row,
.provider-management-row,
.fe7-preview-table-row,
.fe7-table-row {
  min-height: 48px !important;
}

.fe7-preview-chart-shell,
.fe7-page-analytics .fe7-heatmap,
.nexus-home-score-shell,
.route-page-feed .fe7-feed-media-preview,
.fe7-player-heatmap-preview .fe7-heatmap {
  background-size: 32px 32px !important;
}

:root[data-theme="night"] .solid-button,
:root[data-theme="night"] .nexus-button--primary,
:root[data-theme="night"] .action-button-positive,
:root[data-theme="night"] .provider-connect-action {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nexus-cyan) 54%, #102438), color-mix(in srgb, var(--nexus-blue) 66%, #102438)) !important;
  box-shadow: 0 10px 22px rgba(4, 16, 28, 0.24) !important;
}

@media (max-width: 760px) {
  .route-page-organization .fe7-org-empty-hero,
  .fe7-profile-hero,
  .fe7-org-hero {
    min-height: 0 !important;
  }

  .fe7-profile-hero .fe7-profile-avatar,
  .fe7-org-hero .fe7-org-avatar,
  .route-page-organization .fe7-org-empty-hero .fe7-org-avatar {
    width: 92px !important;
    height: 92px !important;
  }

  .nexus-sidebar .fe7-sidebar-logo {
    min-height: 0 !important;
  }

  .route-page-organization .fe7-org-empty-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-page-organization .fe7-org-empty-hero > .fe7-org-summary-card,
  .route-page-organization .fe7-org-empty-summary-grid {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
  }

  .route-page-organization .fe7-org-empty-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* NEXUS-FIDELITY-4: v195 line graph precision pass from nexus-fe7 reference screenshots. */
:root {
  --nxf4-dark-graph-bg: #102838;
  --nxf4-dark-graph-bg-deep: #102038;
  --nxf4-dark-graph-bg-ink: #102030;
  --nxf4-light-graph-bg: #ffffff;
  --nxf4-light-graph-soft: #f8f8ff;
  --nxf4-light-graph-tint: #f8ffff;
  --nxf4-line-cyan: #08b0c0;
  --nxf4-line-cyan-bright: #18d0e8;
  --nxf4-line-blue: #3098e0;
  --nxf4-line-green: #18d0a0;
  --nxf4-line-amber: #f8b050;
  --nxf4-line-red: #f06858;
  --nxf4-line-purple: #9b70d8;
  --nxf4-line-muted: #7c93a8;
  --nxf4-chart-surface: var(--nxf4-light-graph-bg);
  --nxf4-chart-grid: rgba(48, 112, 136, 0.14);
  --nxf4-chart-border: rgba(112, 144, 164, 0.24);
}

:root[data-theme="night"] {
  --nxf4-chart-surface: var(--nxf4-dark-graph-bg);
  --nxf4-chart-grid: rgba(104, 208, 224, 0.11);
  --nxf4-chart-border: rgba(104, 208, 224, 0.16);
}

.nexus-line-graph {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--nxf4-chart-border);
  border-radius: 8px;
  background:
    linear-gradient(rgba(48, 112, 136, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 112, 136, 0.05) 1px, transparent 1px),
    var(--nxf4-chart-surface);
  background-size: 28px 28px;
}

:root[data-theme="night"] .nexus-line-graph {
  background:
    linear-gradient(rgba(104, 208, 224, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 208, 224, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, var(--nxf4-dark-graph-bg), var(--nxf4-dark-graph-bg-deep) 56%, var(--nxf4-dark-graph-bg-ink));
}

.nexus-line-graph svg {
  width: 100%;
  min-height: 156px;
  overflow: visible;
}

.nexus-line-grid,
.nexus-line-axis {
  fill: none;
  stroke: var(--nxf4-chart-grid);
  stroke-linecap: round;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.nexus-line-axis {
  opacity: 0.8;
}

.nexus-line-path {
  fill: none;
  stroke: var(--nxf4-line-cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

:root[data-theme="night"] .nexus-line-path {
  filter: drop-shadow(0 0 7px rgba(24, 208, 232, 0.18));
}

.nexus-line-dot {
  fill: currentColor;
  stroke: var(--nxf4-chart-surface);
  stroke-width: 1.4;
}

.nexus-line-path.is-cyan,
.nexus-line-dot.is-cyan,
.nexus-line-legend .is-cyan {
  color: var(--nxf4-line-cyan-bright);
  stroke: var(--nxf4-line-cyan-bright);
}

.nexus-line-path.is-blue,
.nexus-line-dot.is-blue,
.nexus-line-legend .is-blue {
  color: var(--nxf4-line-blue);
  stroke: var(--nxf4-line-blue);
}

.nexus-line-path.is-green,
.nexus-line-dot.is-green,
.nexus-line-legend .is-green {
  color: var(--nxf4-line-green);
  stroke: var(--nxf4-line-green);
}

.nexus-line-path.is-amber,
.nexus-line-dot.is-amber,
.nexus-line-legend .is-amber {
  color: var(--nxf4-line-amber);
  stroke: var(--nxf4-line-amber);
}

.nexus-line-path.is-red,
.nexus-line-dot.is-red,
.nexus-line-legend .is-red {
  color: var(--nxf4-line-red);
  stroke: var(--nxf4-line-red);
}

.nexus-line-path.is-purple,
.nexus-line-dot.is-purple,
.nexus-line-legend .is-purple {
  color: var(--nxf4-line-purple);
  stroke: var(--nxf4-line-purple);
}

.nexus-line-path.is-muted,
.nexus-line-dot.is-muted,
.nexus-line-legend .is-muted {
  color: var(--nxf4-line-muted);
  stroke: var(--nxf4-line-muted);
}

.nexus-line-labels,
.nexus-line-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: var(--fe7-muted);
  font-size: 10px;
  font-weight: 850;
}

.nexus-line-legend {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.nexus-line-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nexus-line-legend span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.nexus-line-legend strong {
  color: var(--fe7-text);
  font-size: 11px;
}

.nexus-line-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nexus-line-copy strong {
  color: var(--fe7-text);
  font-size: 12px;
  font-weight: 900;
}

.nexus-line-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--fe7-muted);
  font-size: 11px;
  line-height: 1.45;
}

.nexus-line-spark {
  width: 84px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nxf4-line-cyan-bright);
}

.nexus-line-spark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nexus-line-spark .nexus-line-grid {
  opacity: 0.38;
}

.nexus-line-spark .nexus-line-path {
  stroke: currentColor;
  stroke-width: 2.8;
}

.nexus-line-spark .nexus-line-dot {
  color: currentColor;
  fill: currentColor;
}

.nexus-line-spark.is-cyan { color: var(--nxf4-line-cyan-bright); }
.nexus-line-spark.is-blue { color: var(--nxf4-line-blue); }
.nexus-line-spark.is-green { color: var(--nxf4-line-green); }
.nexus-line-spark.is-amber { color: var(--nxf4-line-amber); }
.nexus-line-spark.is-red { color: var(--nxf4-line-red); }
.nexus-line-spark.is-purple { color: var(--nxf4-line-purple); }
.nexus-line-spark.is-muted { color: var(--nxf4-line-muted); }

.fe7-mini-trend {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: 112px;
  color: var(--nxf4-line-cyan-bright);
}

.fe7-mini-trend > span:not(.nexus-line-spark) {
  display: none !important;
}

.fe7-mini-trend .fe7-mini-trend-line {
  width: 72px;
  height: 32px;
  flex: 0 0 72px;
}

.fe7-mini-trend strong {
  min-width: 34px;
  color: currentColor;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.fe7-mini-trend.is-success { color: var(--nxf4-line-green) !important; }
.fe7-mini-trend.is-danger { color: var(--nxf4-line-red) !important; }
.fe7-mini-trend.is-muted { color: var(--nxf4-line-muted) !important; }

.fe7-watchlist-table-cell > .fe7-mini-trend {
  justify-self: end;
}

.fe7-sparkline {
  width: 88px !important;
  height: 34px !important;
  align-items: center !important;
  gap: 0 !important;
}

.fe7-sparkline i,
.fe7-preview-chart-grid {
  display: none !important;
}

.fe7-preview-chart-shell {
  min-height: 218px !important;
  display: grid !important;
  place-items: stretch !important;
  padding: 10px !important;
  border-style: solid !important;
  text-align: left !important;
}

.fe7-preview-chart-shell .nexus-line-graph {
  min-height: 100%;
  border-color: transparent;
  background-color: transparent;
}

.fe7-preview-chart-shell .nexus-line-graph svg {
  min-height: 148px;
}

.nexus-home-score-shell {
  align-content: center !important;
  justify-items: center !important;
  padding: 18px !important;
}

.nexus-home-score-shell .nexus-home-score-spark {
  width: min(220px, 100%);
  height: 64px;
  color: var(--nxf4-line-cyan-bright) !important;
}

.nexus-home-score-shell .nexus-home-score-spark.is-green {
  color: var(--nxf4-line-green) !important;
}

.nexus-home-score-shell .nexus-home-score-spark.is-red {
  color: var(--nxf4-line-red) !important;
}

.nexus-home-score-shell .nexus-home-score-spark.is-blue {
  color: var(--nxf4-line-blue) !important;
}

.nexus-home-score-shell .nexus-home-score-spark.is-muted {
  color: var(--nxf4-line-muted) !important;
}

.fe7-locked-dashboard {
  grid-template-columns: minmax(0, 0.82fr) minmax(220px, 1.18fr);
}

.fe7-locked-line-preview {
  width: min(320px, 100%);
  min-height: 168px;
  padding: 8px;
}

.fe7-locked-line-preview svg {
  min-height: 96px;
}

.faceit-unavailable-dashboard .fe7-locked-line-preview {
  justify-self: stretch;
  width: 100%;
}

.player-match-record-stack {
  display: grid;
  gap: 12px;
}

.player-match-trend-panel {
  padding: 10px;
  border: 1px solid var(--nxf4-chart-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--nxf4-chart-surface) 88%, transparent);
}

.player-match-trend-panel .nexus-line-graph {
  min-height: 236px;
}

.solid-button,
.ghost-button,
.nexus-button,
.fe7-head-action,
.analytics-section-link,
.player-match-filter-select {
  border-radius: 8px !important;
}

.solid-button,
.ghost-button,
.nexus-button,
.fe7-head-action,
.analytics-section-link {
  min-height: 36px;
}

@media (max-width: 760px) {
  .nexus-line-graph svg {
    min-height: 130px;
  }

  .fe7-mini-trend {
    min-width: 96px;
  }

  .fe7-mini-trend .fe7-mini-trend-line {
    width: 58px;
    flex-basis: 58px;
  }

  .fe7-locked-dashboard {
    grid-template-columns: 1fr;
  }

  .fe7-preview-chart-shell {
    min-height: 200px !important;
  }
}

/* NEXUS-FIDELITY-5: v196 live v195 QA gap pass for mockup density and protected-state rhythm. */
:root {
  --nxf5-card-border: color-mix(in srgb, var(--nexus-border) 84%, transparent);
  --nxf5-card-toplight: rgba(255, 255, 255, 0.026);
  --nxf5-placeholder-stripe: color-mix(in srgb, var(--nexus-cyan) 11%, transparent);
}

:root[data-theme="night"] {
  --nxf5-card-border: color-mix(in srgb, var(--nexus-border) 72%, rgba(48, 221, 255, 0.14));
  --nxf5-card-toplight: rgba(255, 255, 255, 0.032);
  --nxf5-placeholder-stripe: color-mix(in srgb, var(--nexus-cyan) 13%, transparent);
}

.fe7-profile-hero-summary strong,
.fe7-profile-coverage-grid strong,
.fe7-org-empty-summary-grid strong,
.fe7-watchlist-auth-rails strong {
  max-width: 100% !important;
  font-size: clamp(12px, 0.82vw, 14px) !important;
  line-height: 1.2 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: manual !important;
}

.fe7-profile-hero-summary small,
.fe7-profile-coverage-grid small,
.fe7-org-empty-summary-grid small,
.fe7-watchlist-auth-rails small {
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

.fe7-profile-hero-summary article,
.fe7-profile-coverage-grid article,
.fe7-org-empty-summary-grid article,
.fe7-watchlist-auth-rails article {
  min-height: 86px !important;
  gap: 6px !important;
  padding: 11px !important;
  border-color: var(--nxf5-card-border) !important;
  background:
    linear-gradient(180deg, var(--nxf5-card-toplight), transparent 70%),
    color-mix(in srgb, var(--nexus-surface-raised) 82%, #06111c) !important;
}

.fe7-profile-hero-summary span,
.fe7-profile-coverage-grid span,
.fe7-org-empty-summary-grid span,
.fe7-watchlist-auth-rails span {
  line-height: 1.22 !important;
}

.fe7-player-profile-page .fe7-profile-rank-card,
.route-page-organization .fe7-org-summary-card {
  border-color: var(--nxf5-card-border) !important;
  background:
    linear-gradient(145deg, var(--nxf5-placeholder-stripe), transparent 48%),
    linear-gradient(180deg, var(--nxf5-card-toplight), transparent 72%),
    color-mix(in srgb, var(--nexus-surface-raised) 82%, #07121e) !important;
}

.nexus-settings-reference:not(.fe7-settings-page) > .placeholder-hero,
.inbox-route-guest-mount .placeholder-hero {
  min-height: clamp(500px, calc(100vh - 92px), 650px) !important;
  padding: clamp(18px, 2vw, 26px) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nexus-cyan) 8%, transparent), transparent 42%),
    linear-gradient(180deg, var(--nxf5-card-toplight), transparent 72%),
    color-mix(in srgb, var(--nexus-surface) 90%, #07121e) !important;
}

.settings-auth-preview-grid,
.fe7-inbox-guest-grid {
  gap: 12px !important;
  margin: 16px 0 !important;
}

.settings-auth-preview-card,
.fe7-inbox-guest-grid .route-module-card {
  min-height: 154px !important;
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  padding: 14px !important;
  border-color: var(--nxf5-card-border) !important;
  background:
    linear-gradient(180deg, var(--nxf5-card-toplight), transparent 68%),
    color-mix(in srgb, var(--nexus-surface-raised) 84%, #06111c) !important;
}

.settings-auth-preview-card strong,
.fe7-inbox-guest-grid strong {
  font-size: 13px !important;
  line-height: 1.24 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.settings-auth-skeleton,
.settings-auth-provider-skeleton,
.fe7-inbox-thread-skeleton,
.fe7-inbox-message-skeleton,
.fe7-inbox-profile-skeleton {
  gap: 8px !important;
}

.settings-auth-skeleton span,
.settings-auth-provider-skeleton span,
.fe7-inbox-thread-skeleton span,
.fe7-inbox-message-skeleton span,
.fe7-inbox-profile-skeleton span {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--nexus-border) 62%, transparent), var(--nxf5-placeholder-stripe), color-mix(in srgb, var(--nexus-border) 46%, transparent)) !important;
  opacity: 0.86 !important;
}

.nexus-line-graph.is-decorative,
.nexus-line-spark.is-decorative {
  opacity: 0.92;
}

@media (min-width: 1000px) {
  .fe7-player-profile-page .fe7-profile-hero {
    grid-template-columns: minmax(0, 1fr) minmax(188px, 224px) !important;
    align-items: start !important;
  }

  .fe7-player-profile-page .fe7-profile-rank-card,
  .route-page-organization .fe7-org-summary-card {
    min-height: 118px !important;
    align-self: start !important;
    justify-self: stretch !important;
    padding: 14px !important;
  }

  .route-page-organization .fe7-org-empty-hero > .fe7-org-summary-card {
    max-width: 232px !important;
  }
}

@media (max-width: 1100px) {
  .fe7-profile-hero-summary strong,
  .fe7-profile-coverage-grid strong,
  .fe7-org-empty-summary-grid strong,
  .fe7-watchlist-auth-rails strong {
    font-size: 13px !important;
  }
}

@media (max-width: 760px) {
  .fe7-player-profile-page,
  .route-page-organization {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .fe7-player-profile-page .fe7-profile-hero,
  .route-page-organization .fe7-org-empty-hero,
  .route-page-organization .fe7-org-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .fe7-player-profile-page .fe7-profile-identity-block,
  .route-page-organization .fe7-org-empty-hero .fe7-org-identity-block,
  .route-page-organization .fe7-org-hero .fe7-org-identity-block {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .fe7-player-profile-page .fe7-profile-avatar,
  .route-page-organization .fe7-org-empty-hero .fe7-org-avatar,
  .route-page-organization .fe7-org-hero .fe7-org-avatar {
    justify-self: center !important;
  }

  .fe7-player-profile-page .fe7-profile-bio,
  .route-page-organization .fe7-org-summary {
    display: block !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-align: center !important;
  }

  .fe7-player-profile-page .fe7-profile-chip-row,
  .fe7-player-profile-page .fe7-profile-social-row,
  .route-page-organization .fe7-profile-chip-row,
  .route-page-organization .fe7-profile-social-row {
    justify-content: center !important;
  }

  .fe7-player-profile-page .fe7-profile-rank-card,
  .route-page-organization .fe7-org-summary-card {
    width: min(100%, 220px) !important;
    justify-self: center !important;
    text-align: center !important;
  }

  .fe7-profile-hero-summary article,
  .fe7-profile-coverage-grid article,
  .fe7-org-empty-summary-grid article,
  .fe7-watchlist-auth-rails article {
    min-height: 74px !important;
    padding: 10px !important;
  }

  .nexus-settings-reference:not(.fe7-settings-page) > .placeholder-hero,
  .inbox-route-guest-mount .placeholder-hero {
    min-height: auto !important;
    padding: 14px !important;
  }

  .settings-auth-preview-card,
  .fe7-inbox-guest-grid .route-module-card {
    min-height: 128px !important;
  }
}

/* NEXUS-FIDELITY-6: profile/analytics scale corrections from resumed mockup QA. */
.fe7-player-profile-page .fe7-profile-avatar {
  position: relative !important;
  overflow: visible !important;
}

.fe7-player-profile-page .fe7-profile-avatar .nxp-presence-dot:not(.nxp-presence-dot--small) {
  position: absolute !important;
  right: 8px !important;
  bottom: 10px !important;
  width: 16px !important;
  height: 16px !important;
  border: 3px solid #061827 !important;
  border-radius: 999px !important;
  background: #22c55e !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #22c55e 52%, transparent),
    0 0 12px color-mix(in srgb, #22c55e 34%, transparent) !important;
  transform: none !important;
  z-index: 4 !important;
}

.fe7-player-profile-page .fe7-profile-avatar .nxp-presence-dot:not(.nxp-presence-dot--small)::after {
  content: "" !important;
  position: absolute !important;
  inset: -5px !important;
  border-radius: inherit !important;
  background: radial-gradient(circle, color-mix(in srgb, #22c55e 38%, transparent), transparent 72%) !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

@media (min-width: 1000px) {
  .fe7-player-profile-page .fe7-profile-hero {
    grid-template-columns: minmax(0, 1fr) minmax(154px, 184px) !important;
    gap: 12px !important;
  }

  .fe7-player-profile-page .fe7-profile-rank-card {
    width: min(100%, 184px) !important;
    min-height: 92px !important;
    max-height: 118px !important;
    align-self: start !important;
    justify-self: end !important;
    gap: 4px !important;
    padding: 11px 12px !important;
  }

  .fe7-player-profile-page .fe7-profile-rank-card .fe7-profile-rank-label {
    font-size: 10px !important;
  }

  .fe7-player-profile-page .fe7-profile-rank-card .fe7-profile-rank-value {
    font-size: clamp(20px, 1.9vw, 28px) !important;
  }

  .fe7-player-profile-page .fe7-profile-rank-card .fe7-profile-rank-region {
    font-size: 11px !important;
  }

  body.nexus-app-layout .nexus-app-frame > .nexus-sidebar,
  body.nexus-home-layout .nexus-app-frame > .nexus-sidebar,
  body.nxp-profile-layout .nxp-board > .nexus-sidebar {
    overflow: hidden !important;
    scrollbar-width: none !important;
  }

  body.nexus-app-layout .nexus-app-frame > .nexus-sidebar::-webkit-scrollbar,
  body.nexus-home-layout .nexus-app-frame > .nexus-sidebar::-webkit-scrollbar,
  body.nxp-profile-layout .nxp-board > .nexus-sidebar::-webkit-scrollbar {
    display: none !important;
  }
}

.fe7-page-analytics > .fe7-two-col {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.78fr) !important;
  gap: 12px !important;
  align-items: start !important;
  order: 2 !important;
}

.fe7-page-analytics .fe7-stat-grid {
  order: 1 !important;
  gap: 10px !important;
}

.fe7-page-analytics > .fe7-status-strip {
  order: 3 !important;
  gap: 8px !important;
}

.fe7-page-analytics > .fe7-four-col,
.fe7-page-analytics > .fe7-card {
  order: 4 !important;
}

.fe7-page-analytics > .fe7-toolbar {
  order: 5 !important;
}

.fe7-page-analytics > .fe7-placeholder-notice {
  order: 6 !important;
}

.fe7-page-analytics .fe7-preview-head {
  min-height: 82px !important;
  padding: 12px 14px !important;
}

.fe7-page-analytics .fe7-preview-head h1 {
  font-size: clamp(28px, 2.1vw, 36px) !important;
  line-height: 0.96 !important;
}

.fe7-page-analytics .fe7-preview-head p {
  max-width: 620px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.fe7-page-analytics .fe7-status-strip article {
  min-height: 48px !important;
  padding: 8px 10px !important;
  gap: 3px !important;
}

.fe7-page-analytics .fe7-status-strip strong {
  font-size: 10px !important;
}

.fe7-page-analytics .fe7-status-strip span {
  font-size: 11px !important;
}

.fe7-page-analytics .fe7-stat-card {
  min-height: 82px !important;
  padding: 10px 12px !important;
  gap: 4px !important;
}

.fe7-page-analytics .fe7-stat-head {
  gap: 6px !important;
}

.fe7-page-analytics .fe7-stat-icon {
  width: 24px !important;
  height: 24px !important;
}

.fe7-page-analytics .fe7-stat-icon svg {
  width: 14px !important;
  height: 14px !important;
}

.fe7-page-analytics .fe7-stat-value {
  font-size: clamp(20px, 1.55vw, 26px) !important;
  line-height: 1 !important;
}

.fe7-page-analytics .fe7-stat-detail {
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.fe7-page-analytics .fe7-card-header {
  min-height: 0 !important;
  padding: 10px 12px !important;
}

.fe7-page-analytics .fe7-card-body {
  padding: 10px 12px 12px !important;
}

.fe7-page-analytics .fe7-card-title {
  font-size: 13px !important;
  line-height: 1.05 !important;
}

.fe7-page-analytics .fe7-card-copy {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.fe7-page-analytics .fe7-four-col {
  gap: 10px !important;
}

.fe7-page-analytics .fe7-four-col .fe7-card {
  min-height: 0 !important;
}

.fe7-page-analytics .fe7-table-row {
  min-height: 34px !important;
  padding-block: 7px !important;
  gap: 8px !important;
}

.fe7-page-analytics .fe7-chart-card,
.fe7-page-analytics .fe7-breakdown-card {
  min-height: 0 !important;
}

.fe7-page-analytics .fe7-preview-chart-shell {
  min-height: 0 !important;
  padding: 8px !important;
}

.fe7-page-analytics .fe7-chart-card .fe7-preview-chart-shell {
  height: clamp(214px, 24vh, 286px) !important;
}

.fe7-page-analytics .fe7-breakdown-card .fe7-preview-chart-shell {
  height: clamp(196px, 22vh, 264px) !important;
}

.fe7-page-analytics .nexus-line-graph {
  min-height: 0 !important;
  height: 100% !important;
  gap: 5px !important;
  padding: 8px !important;
}

.fe7-page-analytics .nexus-line-graph svg {
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
}

.fe7-page-analytics .nexus-line-labels,
.fe7-page-analytics .nexus-line-legend {
  font-size: 9px !important;
}

.fe7-page-analytics .nexus-line-copy {
  gap: 2px !important;
}

.fe7-page-analytics .nexus-line-copy strong {
  font-size: 11px !important;
}

.fe7-page-analytics .nexus-line-copy p {
  font-size: 10px !important;
  line-height: 1.28 !important;
}

.fe7-watchlist-page {
  gap: 10px !important;
}

.fe7-watchlist-page > .fe7-page-head {
  order: 0 !important;
  min-height: 82px !important;
  padding: 12px 14px !important;
}

.fe7-watchlist-page > .fe7-page-head h1 {
  font-size: clamp(26px, 2vw, 34px) !important;
  line-height: 1 !important;
}

.fe7-watchlist-page > .fe7-stat-grid {
  order: 1 !important;
  gap: 10px !important;
}

.fe7-watchlist-page > .fe7-page-tabs {
  order: 2 !important;
  min-height: 38px !important;
}

.fe7-watchlist-page > .fe7-watchlist-main {
  order: 3 !important;
}

.fe7-watchlist-page > .fe7-watchlist-preview-banner {
  order: 4 !important;
}

.fe7-watchlist-page > .fe7-watchlist-auth-console {
  order: 5 !important;
}

.fe7-watchlist-page .fe7-stat-card {
  min-height: 78px !important;
  padding: 10px 12px !important;
  gap: 4px !important;
}

.fe7-watchlist-page .fe7-stat-value {
  font-size: clamp(20px, 1.45vw, 25px) !important;
  line-height: 1 !important;
}

.fe7-watchlist-page .fe7-stat-detail {
  margin-top: 6px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.fe7-watchlist-auth-console {
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.5fr) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 8px !important;
}

.fe7-watchlist-auth-table {
  gap: 4px !important;
}

.fe7-watchlist-auth-table-head,
.fe7-watchlist-auth-row {
  grid-template-columns: minmax(140px, 1.3fr) repeat(4, minmax(82px, 1fr)) !important;
  gap: 6px !important;
}

.fe7-watchlist-auth-table-head {
  padding: 0 6px 2px !important;
  font-size: 9px !important;
}

.fe7-watchlist-auth-row {
  min-height: 38px !important;
  padding: 6px 8px !important;
}

.fe7-watchlist-auth-row strong,
.fe7-watchlist-auth-row span {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.fe7-watchlist-auth-rails {
  gap: 8px !important;
}

.fe7-watchlist-auth-rails article {
  min-height: 56px !important;
  padding: 8px !important;
}

.fe7-watchlist-auth-rails strong {
  font-size: 12px !important;
}

.fe7-watchlist-auth-rails small {
  font-size: 10px !important;
  line-height: 1.28 !important;
}

.fe7-player-profile-page .fe7-profile-hero {
  grid-template-columns: minmax(0, 1fr) minmax(154px, 184px) !important;
  grid-template-areas:
    "identity rank"
    "actions actions"
    "message message" !important;
  gap: 10px 12px !important;
  min-height: 0 !important;
  padding: 16px 18px !important;
}

.fe7-player-profile-page .fe7-profile-identity-block {
  align-items: center !important;
  gap: 18px !important;
}

.fe7-player-profile-page .fe7-profile-avatar {
  width: clamp(96px, 6.8vw, 116px) !important;
  height: clamp(96px, 6.8vw, 116px) !important;
}

.fe7-player-profile-page .fe7-profile-copy {
  gap: 5px !important;
}

.fe7-player-profile-page .fe7-profile-title {
  font-size: clamp(30px, 2.35vw, 40px) !important;
}

.fe7-player-profile-page .fe7-profile-subtitle,
.fe7-player-profile-page .fe7-profile-bio {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.fe7-player-profile-page .fe7-profile-chip-row {
  margin-top: 3px !important;
  gap: 6px !important;
}

.fe7-player-profile-page .fe7-profile-social-row {
  margin-top: 6px !important;
  gap: 7px !important;
}

.fe7-player-profile-page .fe7-profile-hero-summary {
  display: none !important;
}

.fe7-player-profile-page .fe7-profile-actions {
  margin-top: 0 !important;
  justify-self: end !important;
}

.fe7-player-profile-page .fe7-profile-actions .solid-button,
.fe7-player-profile-page .fe7-profile-actions .ghost-button {
  min-height: 34px !important;
  padding-inline: 16px !important;
}

.fe7-player-profile-page .fe7-profile-rank-card {
  width: min(100%, 184px) !important;
  min-height: 96px !important;
  max-height: 112px !important;
  padding: 10px 12px !important;
}

.fe7-player-profile-page .nx-profile-tabs,
.fe7-player-profile-page .nexus-profile-tabs {
  min-height: 40px !important;
}

.fe7-player-profile-page .fe7-player-overview-grid {
  gap: 12px !important;
}

.fe7-player-profile-page .fe7-player-overview-wide {
  min-height: 0 !important;
}

.fe7-player-profile-page .fe7-player-overview-wide .nexus-ref-panel-body,
.fe7-player-profile-page .fe7-player-overview-wide .nxp-module-body {
  padding: 12px !important;
}

.fe7-player-profile-page .fe7-player-overview-wide .nxp-about-list {
  grid-template-columns: minmax(190px, 1.18fr) repeat(6, minmax(82px, 1fr)) !important;
  gap: 0 !important;
  border: 1px solid color-mix(in srgb, var(--nexus-border) 80%, transparent) !important;
  border-radius: calc(var(--nxr-card-radius) - 2px) !important;
  overflow: hidden !important;
}

.fe7-player-profile-page .fe7-player-overview-wide .nxp-about-row {
  min-height: 50px !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-right: 1px solid color-mix(in srgb, var(--nexus-border) 80%, transparent) !important;
  border-radius: 0 !important;
  background: color-mix(in srgb, var(--nexus-surface-raised) 70%, transparent) !important;
}

.fe7-player-profile-page .fe7-player-overview-wide .nxp-about-row:last-child {
  border-right: 0 !important;
}

.fe7-player-profile-page .fe7-player-overview-wide .nxp-about-row dt {
  font-size: 9px !important;
}

.fe7-player-profile-page .fe7-player-overview-wide .nxp-about-row dd {
  font-size: 12px !important;
  line-height: 1.18 !important;
}

.fe7-player-profile-page .nxp-link-icons.is-compact {
  gap: 4px !important;
}

.fe7-player-profile-page .nxp-link-icons.is-compact .nxp-link-icon {
  width: 26px !important;
  height: 26px !important;
  font-size: 10px !important;
}

.fe7-player-profile-page .nxp-empty-compact {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.18 !important;
}

.fe7-player-profile-page .fe7-player-overview-wide .fe7-card-header,
.fe7-player-profile-page .fe7-player-overview-grid .fe7-card-header,
.fe7-player-profile-page .fe7-player-overview-grid .nexus-ref-panel-head {
  padding: 10px 12px 0 !important;
}

.fe7-player-profile-page .fe7-player-overview-grid .fe7-card-body,
.fe7-player-profile-page .fe7-player-overview-grid .nexus-ref-panel-body,
.fe7-player-profile-page .fe7-player-overview-grid .nxp-module-body {
  padding: 11px 12px 12px !important;
}

.fe7-player-profile-page .fe7-player-overview-grid .nxp-history-module,
.fe7-player-profile-page .fe7-player-trophies-module,
.fe7-player-profile-page .fe7-player-heatmap-module,
.fe7-player-profile-page .fe7-player-post-module {
  grid-column: span 6 !important;
}

.fe7-player-profile-page .fe7-player-overview-grid .nxp-module,
.fe7-player-profile-page .fe7-player-overview-grid .nexus-ref-panel {
  min-height: 0 !important;
}

.fe7-player-profile-page .fe7-history-timeline {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.fe7-player-profile-page .fe7-history-timeline article {
  min-height: 58px !important;
  padding: 8px !important;
}

.fe7-player-profile-page .fe7-history-timeline span,
.fe7-player-profile-page .fe7-history-timeline small {
  font-size: 10px !important;
  line-height: 1.22 !important;
}

.fe7-player-profile-page .fe7-history-timeline strong {
  font-size: 12px !important;
}

.fe7-player-profile-page .fe7-trophy-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.fe7-player-profile-page .fe7-trophy {
  min-height: 112px !important;
  padding: 8px !important;
}

.fe7-player-profile-page .fe7-trophy span {
  width: 42px !important;
  height: 42px !important;
}

.fe7-player-profile-page .fe7-trophy svg {
  width: 23px !important;
  height: 23px !important;
}

.fe7-player-profile-page .fe7-trophy strong {
  font-size: 13px !important;
}

.fe7-player-profile-page .fe7-trophy small {
  font-size: 10px !important;
  line-height: 1.2 !important;
}

.fe7-player-profile-page .fe7-player-heatmap-preview {
  min-height: 0 !important;
  grid-template-columns: minmax(150px, 0.88fr) minmax(150px, 1fr) !important;
  gap: 10px !important;
}

.fe7-player-profile-page .fe7-player-heatmap-preview .fe7-heatmap {
  min-height: 134px !important;
}

.fe7-player-profile-page .fe7-heatmap-metric-list {
  gap: 0 !important;
}

.fe7-player-profile-page .fe7-heatmap-metric-list div {
  min-height: 32px !important;
  padding: 5px 0 !important;
}

.fe7-player-profile-page .fe7-recent-post {
  min-height: 126px !important;
  padding: 10px !important;
}

.fe7-player-profile-page .fe7-recent-post p {
  margin-block: 8px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.fe7-player-profile-page .fe7-player-coverage-module {
  grid-column: span 6 !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.fe7-player-profile-page .fe7-profile-coverage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  height: auto !important;
  min-width: 0 !important;
}

:root:not([data-theme="night"]) .ui-placeholder,
:root:not([data-theme="night"]) .fe7-preview-route .ui-placeholder,
:root:not([data-theme="night"]) .ui-placeholder.nexus-preview-card,
:root:not([data-theme="night"]) .nexus-ref-panel.ui-placeholder,
:root:not([data-theme="night"]) .route-module-card.ui-placeholder {
  border-color: color-mix(in srgb, var(--nexus-cyan) 18%, var(--nexus-border)) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.94) 72%),
    color-mix(in srgb, var(--nexus-cyan) 3%, var(--nexus-surface-raised)) !important;
}

:root:not([data-theme="night"]) .ui-placeholder::after {
  border-color: color-mix(in srgb, var(--nexus-warning) 28%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-warning) 9%, #ffffff) !important;
}

@media (max-width: 900px) {
  .fe7-page-analytics > .fe7-two-col {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-player-profile-page .fe7-player-coverage-module {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 760px) {
  .fe7-player-profile-page .fe7-profile-avatar .nxp-presence-dot:not(.nxp-presence-dot--small) {
    right: 10px !important;
    bottom: 12px !important;
  }

  .fe7-page-analytics .fe7-chart-card .fe7-preview-chart-shell,
  .fe7-page-analytics .fe7-breakdown-card .fe7-preview-chart-shell {
    height: 240px !important;
  }

  .fe7-player-profile-page .fe7-profile-coverage-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* NEXUS-FIDELITY-7: feed social density and alignment correction. */
.route-page-feed.fe7-feed-page {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  margin-inline: 0 auto !important;
  grid-template-columns: minmax(560px, 760px) minmax(260px, 310px) !important;
  justify-content: start !important;
  gap: 12px !important;
  align-items: start !important;
}

.route-page-feed .fe7-feed-center {
  gap: 12px !important;
}

.route-page-feed .fe7-feed-route-head {
  min-height: 80px !important;
  padding: 14px 16px !important;
}

.route-page-feed .fe7-feed-route-head h1 {
  margin: 2px 0 4px !important;
  font-size: clamp(31px, 2.25vw, 40px) !important;
  line-height: 0.95 !important;
}

.route-page-feed .fe7-feed-route-head p,
.route-page-feed .fe7-feed-composer-copy,
.route-page-feed .nexus-ref-copy,
.route-page-feed .route-detail-copy {
  font-size: 12px !important;
  line-height: 1.36 !important;
}

.route-page-feed .fe7-feed-composer-card,
.route-page-feed .social-post-card,
.route-page-feed .nexus-feed-empty-state {
  padding: 14px 16px !important;
  border-radius: 8px !important;
}

.route-page-feed .fe7-feed-composer-card {
  gap: 12px !important;
}

.route-page-feed .fe7-feed-composer-head {
  min-height: 0 !important;
  align-items: center !important;
}

.route-page-feed .nexus-feed-composer-actions {
  gap: 8px !important;
  max-width: 370px !important;
}

.route-page-feed .nexus-composer-chip,
.route-page-feed .fe7-feed-action-button {
  min-height: 30px !important;
  padding-inline: 10px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
}

.route-page-feed .fe7-feed-auth-lock {
  min-height: 62px !important;
  padding: 12px !important;
  border-radius: 8px !important;
}

.route-page-feed .nexus-feed-empty-state {
  gap: 12px !important;
  min-height: 0 !important;
}

.route-page-feed .fe7-feed-empty-author {
  gap: 10px !important;
}

.route-page-feed .nexus-feed-empty-state strong {
  font-size: clamp(24px, 2.1vw, 34px) !important;
  line-height: 0.98 !important;
}

.route-page-feed .fe7-feed-empty-media {
  min-height: 162px !important;
  height: 162px !important;
  border-radius: 8px !important;
}

.route-page-feed .fe7-feed-empty-media span {
  width: 52px !important;
  height: 52px !important;
}

.route-page-feed .fe7-feed-right-rail {
  gap: 10px !important;
}

.route-page-feed .fe7-feed-right-rail > .nexus-ref-panel {
  min-height: 0 !important;
  border-radius: 8px !important;
}

.route-page-feed .fe7-feed-right-rail .nexus-ref-panel-head {
  min-height: 38px !important;
  padding: 10px 12px !important;
}

.route-page-feed .fe7-feed-right-rail .nexus-ref-panel-body {
  padding: 10px 12px 12px !important;
}

.route-page-feed .nexus-rail-empty {
  padding: 10px !important;
  border-radius: 8px !important;
}

@media (max-width: 1180px) {
  .route-page-feed.fe7-feed-page {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px) !important;
  }
}

@media (max-width: 900px) {
  .route-page-feed.fe7-feed-page {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-page-feed .fe7-feed-right-rail {
    grid-column: 1 !important;
  }
}

/* NEXUS-FIDELITY-8: analytics preview scale and module hierarchy correction. */
.fe7-page-analytics {
  gap: 10px !important;
}

.fe7-page-analytics .fe7-preview-head {
  min-height: 72px !important;
  padding: 11px 14px !important;
}

.fe7-page-analytics .fe7-preview-head h1 {
  margin: 2px 0 4px !important;
  font-size: clamp(27px, 1.95vw, 34px) !important;
}

.fe7-page-analytics .fe7-preview-head p {
  max-width: 590px !important;
}

.fe7-page-analytics .fe7-stat-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

.fe7-page-analytics .fe7-stat-card {
  min-height: 74px !important;
  padding: 9px 10px !important;
  border-radius: 8px !important;
}

.fe7-page-analytics .fe7-stat-head {
  min-height: 0 !important;
}

.fe7-page-analytics .fe7-stat-value {
  font-size: clamp(18px, 1.35vw, 23px) !important;
}

.fe7-page-analytics .fe7-stat-detail {
  font-size: 10px !important;
  line-height: 1.18 !important;
}

.fe7-page-analytics > .fe7-two-col {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr) !important;
  gap: 10px !important;
}

.fe7-page-analytics .fe7-chart-card,
.fe7-page-analytics .fe7-breakdown-card {
  border-radius: 8px !important;
}

.fe7-page-analytics .fe7-chart-card .fe7-preview-chart-shell,
.fe7-page-analytics .fe7-breakdown-card .fe7-preview-chart-shell {
  height: clamp(174px, 18vh, 218px) !important;
  padding: 7px !important;
  border-radius: 8px !important;
}

.fe7-page-analytics .fe7-breakdown-card .fe7-preview-chart-shell {
  height: clamp(166px, 17vh, 204px) !important;
}

.fe7-page-analytics .fe7-preview-donut-shell {
  display: grid !important;
  grid-template-columns: minmax(132px, 0.84fr) minmax(118px, 0.72fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 166px !important;
  height: clamp(166px, 17vh, 204px) !important;
  padding: 8px 10px !important;
  border: 1px solid var(--nxf4-chart-border) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nxf4-chart-surface) 92%, transparent), var(--nxf4-chart-surface)),
    linear-gradient(90deg, color-mix(in srgb, var(--nxf4-line-cyan) 6%, transparent), transparent 60%) !important;
}

.nexus-donut-chart {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: min(100%, 150px) !important;
  aspect-ratio: 1 !important;
  justify-self: center !important;
}

.nexus-donut-ring {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 999px !important;
  background:
    conic-gradient(
      var(--nxf4-line-cyan-bright) 0 20%,
      var(--nxf4-line-blue) 20% 39%,
      var(--nxf4-line-green) 39% 58%,
      var(--nxf4-line-amber) 58% 74%,
      var(--nxf4-line-purple) 74% 88%,
      color-mix(in srgb, var(--nxf4-line-muted) 78%, transparent) 88% 100%
    ) !important;
  box-shadow: 0 0 22px color-mix(in srgb, var(--nxf4-line-cyan-bright) 20%, transparent) !important;
}

.nexus-donut-ring::after {
  content: "" !important;
  position: absolute !important;
  inset: 22% !important;
  border-radius: inherit !important;
  background: var(--nxf4-chart-surface) !important;
  box-shadow: inset 0 0 0 1px var(--nxf4-chart-border) !important;
}

.nexus-donut-core {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  gap: 2px !important;
  place-items: center !important;
  text-align: center !important;
}

.nexus-donut-core strong {
  color: var(--nexus-text) !important;
  font-size: clamp(16px, 1.3vw, 21px) !important;
  line-height: 1 !important;
}

.nexus-donut-core small,
.nexus-donut-copy p {
  color: var(--nexus-text-muted) !important;
}

.nexus-donut-core small {
  font-size: 9.5px !important;
  text-transform: uppercase !important;
}

.nexus-donut-copy {
  display: grid !important;
  gap: 4px !important;
  align-content: center !important;
  min-width: 0 !important;
}

.nexus-donut-copy strong {
  color: var(--nexus-text) !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

.nexus-donut-copy p {
  margin: 0 !important;
  font-size: 10px !important;
  line-height: 1.28 !important;
}

.fe7-page-analytics .nexus-line-graph {
  padding: 6px 8px !important;
  gap: 3px !important;
}

.fe7-page-analytics .nexus-line-copy {
  min-height: 0 !important;
}

.fe7-page-analytics .nexus-line-copy strong {
  font-size: 10.5px !important;
}

.fe7-page-analytics .nexus-line-copy p {
  font-size: 9.5px !important;
}

.fe7-page-analytics .nexus-line-labels,
.fe7-page-analytics .nexus-line-legend {
  font-size: 8.5px !important;
}

.fe7-page-analytics .fe7-legend {
  gap: 4px !important;
  padding-top: 6px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.fe7-page-analytics .fe7-status-strip {
  gap: 7px !important;
}

.fe7-page-analytics .fe7-status-strip article {
  min-height: 40px !important;
  padding: 7px 9px !important;
}

.fe7-page-analytics .fe7-four-col {
  gap: 9px !important;
}

.fe7-page-analytics .fe7-four-col .fe7-card {
  border-radius: 8px !important;
}

.fe7-page-analytics .fe7-four-col .fe7-card-body {
  padding: 9px 10px 10px !important;
}

.fe7-page-analytics .fe7-table-row {
  min-height: 30px !important;
  padding-block: 5px !important;
}

.fe7-page-analytics .fe7-heatmap {
  min-height: 140px !important;
}

@media (max-width: 1180px) {
  .fe7-page-analytics .fe7-stat-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .fe7-page-analytics .fe7-stat-grid-six {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .fe7-page-analytics > .fe7-two-col {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .fe7-page-analytics .fe7-chart-card .fe7-preview-chart-shell,
  .fe7-page-analytics .fe7-breakdown-card .fe7-preview-chart-shell,
  .fe7-page-analytics .fe7-preview-donut-shell {
    height: 218px !important;
  }

  body .fe7-preview-route.fe7-page-analytics .fe7-stat-grid.fe7-stat-grid-six,
  .fe7-page-analytics .fe7-stat-grid-six {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .fe7-page-analytics .fe7-preview-donut-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .nexus-donut-chart {
    width: 132px !important;
  }
}

/* NEXUS-FIDELITY-9: player profile placeholder module density and overlap correction. */
.fe7-player-profile-page .fe7-player-overview-grid {
  gap: 10px !important;
  align-items: start !important;
}

.fe7-player-profile-page .fe7-player-overview-grid .nxp-module,
.fe7-player-profile-page .fe7-player-overview-grid .nexus-ref-panel {
  border-radius: 8px !important;
}

.fe7-player-profile-page .fe7-player-overview-grid .fe7-card-header,
.fe7-player-profile-page .fe7-player-overview-grid .nexus-ref-panel-head {
  min-height: 36px !important;
  padding: 9px 11px 0 !important;
}

.fe7-player-profile-page .fe7-player-overview-grid .fe7-card-body,
.fe7-player-profile-page .fe7-player-overview-grid .nexus-ref-panel-body,
.fe7-player-profile-page .fe7-player-overview-grid .nxp-module-body {
  padding: 9px 11px 11px !important;
}

.fe7-player-profile-page .fe7-player-overview-grid .fe7-card-title,
.fe7-player-profile-page .fe7-player-overview-grid .nexus-ref-panel-title {
  font-size: 13px !important;
  line-height: 1.1 !important;
}

.fe7-player-profile-page .fe7-player-overview-grid .fe7-card-copy,
.fe7-player-profile-page .fe7-player-overview-grid .nexus-ref-copy,
.fe7-player-profile-page .fe7-player-overview-grid .nxp-empty,
.fe7-player-profile-page .fe7-player-overview-grid .route-detail-copy {
  font-size: 11.5px !important;
  line-height: 1.32 !important;
}

.fe7-player-profile-page .nxp-history-module,
.fe7-player-profile-page .fe7-player-trophies-module {
  min-height: 176px !important;
}

.fe7-player-profile-page .fe7-player-heatmap-module,
.fe7-player-profile-page .fe7-player-post-module {
  min-height: 188px !important;
}

.fe7-player-profile-page .fe7-player-coverage-module {
  min-height: 0 !important;
}

.fe7-player-profile-page .nxp-history-module .nxp-empty {
  margin-block: 5px !important;
}

.fe7-player-profile-page .fe7-history-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-top: 7px !important;
}

.fe7-player-profile-page .fe7-history-timeline article {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start !important;
  gap: 3px !important;
  min-height: 72px !important;
  padding: 8px !important;
  border: 1px solid color-mix(in srgb, var(--nexus-border) 74%, transparent) !important;
  border-radius: 7px !important;
  background: color-mix(in srgb, var(--nexus-surface-raised) 74%, transparent) !important;
}

.fe7-player-profile-page .fe7-history-timeline span,
.fe7-player-profile-page .fe7-history-timeline small,
.fe7-player-profile-page .fe7-history-timeline strong {
  display: block !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.fe7-player-profile-page .fe7-history-timeline span {
  font-size: 9.5px !important;
  text-transform: uppercase !important;
}

.fe7-player-profile-page .fe7-history-timeline strong {
  font-size: 12px !important;
  line-height: 1.05 !important;
}

.fe7-player-profile-page .fe7-history-timeline small {
  font-size: 9.5px !important;
  line-height: 1.18 !important;
}

.fe7-player-profile-page .fe7-trophy-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 7px !important;
  align-items: start !important;
  align-content: start !important;
  height: auto !important;
  min-height: 0 !important;
}

.fe7-player-profile-page .fe7-trophy {
  height: 92px !important;
  min-height: 92px !important;
  padding: 7px !important;
  gap: 5px !important;
  align-self: start !important;
}

.fe7-player-profile-page .fe7-trophy span {
  width: 34px !important;
  height: 34px !important;
}

.fe7-player-profile-page .fe7-trophy svg {
  width: 19px !important;
  height: 19px !important;
}

.fe7-player-profile-page .fe7-trophy strong {
  font-size: 12px !important;
}

.fe7-player-profile-page .fe7-trophy small {
  font-size: 9.5px !important;
  line-height: 1.16 !important;
}

.fe7-player-profile-page .fe7-trophy-row > .fe7-placeholder-mini {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  border-radius: 7px !important;
  font-size: 10.5px !important;
  line-height: 1.22 !important;
}

.fe7-player-profile-page .fe7-player-heatmap-preview {
  grid-template-columns: minmax(150px, 0.95fr) minmax(136px, 0.72fr) !important;
  gap: 8px !important;
}

.fe7-player-profile-page .fe7-player-heatmap-preview .fe7-heatmap {
  min-height: 112px !important;
}

.fe7-player-profile-page .fe7-heatmap-metric-list div {
  min-height: 27px !important;
  padding: 3px 0 !important;
}

.fe7-player-profile-page .fe7-heatmap-metric-list dt,
.fe7-player-profile-page .fe7-heatmap-metric-list dd {
  font-size: 11px !important;
}

.fe7-player-profile-page .fe7-recent-post {
  min-height: 108px !important;
  padding: 9px !important;
}

.fe7-player-profile-page .fe7-recent-post p {
  margin-block: 6px !important;
  font-size: 11.5px !important;
  line-height: 1.32 !important;
}

.fe7-player-profile-page .fe7-profile-coverage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.fe7-player-profile-page .fe7-profile-coverage-grid article {
  min-height: 88px !important;
  padding: 9px !important;
  gap: 3px !important;
}

.fe7-player-profile-page .fe7-profile-coverage-grid span {
  font-size: 9px !important;
}

.fe7-player-profile-page .fe7-profile-coverage-grid strong {
  font-size: 12px !important;
}

.fe7-player-profile-page .fe7-profile-coverage-grid small {
  font-size: 10px !important;
  line-height: 1.22 !important;
}

@media (max-width: 900px) {
  .fe7-player-profile-page .fe7-history-timeline,
  .fe7-player-profile-page .fe7-profile-coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .fe7-player-profile-page .fe7-player-overview-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-player-profile-page .fe7-player-overview-grid .nxp-module,
  .fe7-player-profile-page .fe7-player-overview-grid .nexus-ref-panel,
  .fe7-player-profile-page .fe7-player-overview-grid .fe7-player-overview-wide,
  .fe7-player-profile-page .fe7-player-overview-grid .nxp-history-module,
  .fe7-player-profile-page .fe7-player-trophies-module,
  .fe7-player-profile-page .fe7-player-heatmap-module,
  .fe7-player-profile-page .fe7-player-post-module,
  .fe7-player-profile-page .fe7-player-coverage-module {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  .fe7-player-profile-page .fe7-history-timeline,
  .fe7-player-profile-page .fe7-trophy-row,
  .fe7-player-profile-page .fe7-player-heatmap-preview,
  .fe7-player-profile-page .fe7-profile-coverage-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-player-profile-page .fe7-trophy {
    min-height: 82px !important;
  }

  .fe7-player-profile-page .fe7-trophy-row,
  .fe7-player-profile-page .fe7-profile-coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* NEXUS-FIDELITY-10: mobile watchlist withheld-row overflow correction. */
@media (max-width: 760px) {
  .fe7-watchlist-page,
  .fe7-watchlist-page .nexus-route-shell,
  .fe7-watchlist-page .nexus-main-stage {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .fe7-watchlist-auth-console {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .fe7-watchlist-auth-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .fe7-watchlist-auth-table-head {
    display: none !important;
  }

  .fe7-watchlist-auth-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 6px !important;
    align-items: start !important;
  }

  .fe7-watchlist-auth-row strong {
    grid-column: 1 / -1 !important;
  }

  .fe7-watchlist-auth-row strong,
  .fe7-watchlist-auth-row span {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  .fe7-watchlist-auth-rails {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100% !important;
  }
}

/* NEXUS-FIDELITY-11: sidebar parity, profile rank scale, and withheld chart hierarchy. */
:root[data-theme="night"] {
  --nexus-cyan: #20cae8;
  --fe7-cyan: #20cae8;
  --nexus-border: #1f3549;
  --nexus-border-strong: #31536f;
}

.nexus-sidebar-nav {
  overflow: visible !important;
}

.nexus-sidebar-link.is-nav-placeholder {
  opacity: 0.72;
}

.nexus-sidebar-link.is-nav-placeholder:not(.is-active) {
  border-style: dashed !important;
}

.fe7-sidebar-utility-link {
  margin-top: auto !important;
  opacity: 0.82;
}

.fe7-sidebar-utility-link .nexus-sidebar-link-label {
  color: var(--nexus-text-muted) !important;
}

.nexus-home-dashboard-head,
.fe7-preview-route .fe7-preview-head,
.fe7-page-head {
  min-height: 66px !important;
  padding: 11px 13px !important;
}

.nexus-home-dashboard-head h1,
.fe7-preview-route .fe7-preview-head h1,
.fe7-page-head h1 {
  font-size: clamp(25px, 1.86vw, 32px) !important;
  line-height: 1 !important;
}

.nexus-home-dashboard-head p,
.fe7-preview-route .fe7-preview-head p,
.fe7-page-head p {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}

.nexus-home-stat-grid .nx-metric,
.fe7-preview-route .fe7-stat-card {
  min-height: 70px !important;
  padding: 9px 10px !important;
}

.nexus-home-command-grid,
.fe7-preview-route,
.fe7-preview-route .fe7-two-col,
.fe7-preview-route .fe7-three-col,
.fe7-preview-route .fe7-market-grid,
.fe7-preview-route .fe7-match-hero {
  gap: 10px !important;
}

.nexus-home-module {
  gap: 10px !important;
  padding: 11px !important;
}

.nexus-home-score-shell {
  min-height: 134px !important;
  padding: 12px !important;
}

.fe7-status-strip {
  gap: 8px !important;
}

.fe7-status-strip article {
  min-height: 40px !important;
  padding: 7px 9px !important;
}

.fe7-status-strip strong {
  font-size: 9.5px !important;
}

.fe7-status-strip span {
  font-size: 10.5px !important;
  line-height: 1.2 !important;
}

.fe7-preview-donut-shell {
  display: grid !important;
  grid-template-columns: minmax(132px, 0.78fr) minmax(132px, 0.82fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 168px !important;
  padding: 9px 10px !important;
  border: 1px solid var(--nxf4-chart-border) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nxf4-chart-surface) 94%, transparent), var(--nxf4-chart-surface)),
    linear-gradient(90deg, color-mix(in srgb, var(--nxf4-line-cyan) 5%, transparent), transparent 64%) !important;
}

.fe7-page-market .fe7-preview-donut-shell,
.fe7-page-predictions .fe7-preview-donut-shell {
  min-height: 184px !important;
}

.fe7-page-market .fe7-market-main > .nexus-ref-panel:nth-child(2) {
  align-content: start !important;
}

.fe7-page-analytics .fe7-chart-card .fe7-preview-chart-shell {
  height: clamp(148px, 15vh, 190px) !important;
}

.fe7-page-analytics .fe7-breakdown-card .fe7-preview-chart-shell,
.fe7-page-analytics .fe7-breakdown-card .fe7-preview-donut-shell {
  height: clamp(146px, 15vh, 184px) !important;
  min-height: 146px !important;
}

.fe7-page-analytics .nexus-line-graph {
  padding: 5px 7px !important;
}

.route-page-organization .fe7-org-empty-hero {
  grid-template-columns: minmax(0, 1fr) minmax(112px, 138px) !important;
  gap: 10px !important;
  padding: 12px 14px !important;
}

.route-page-organization .fe7-org-empty-hero .fe7-org-identity-block {
  gap: 12px !important;
}

.route-page-organization .fe7-org-empty-hero .fe7-org-avatar {
  width: clamp(78px, 5.4vw, 94px) !important;
  height: clamp(78px, 5.4vw, 94px) !important;
}

.route-page-organization .fe7-org-empty-hero .nx-profile-name {
  font-size: clamp(28px, 2.25vw, 38px) !important;
}

.route-page-organization .fe7-org-empty-summary-grid {
  gap: 7px !important;
  margin-top: 6px !important;
}

.route-page-organization .fe7-org-empty-summary-grid article {
  min-height: 52px !important;
  padding: 7px 8px !important;
}

.route-page-organization .fe7-org-empty-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr) !important;
  gap: 10px !important;
}

.route-page-organization .fe7-org-empty-grid .fe7-org-panel {
  min-height: 118px !important;
}

.route-page-organization .fe7-org-empty-grid .fe7-org-panel:nth-child(1) {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.route-page-organization .fe7-org-empty-grid .fe7-org-panel:nth-child(2) {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.route-page-organization .fe7-org-empty-grid .fe7-org-panel:nth-child(3) {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.route-page-organization .fe7-org-empty-grid .fe7-org-panel:nth-child(4) {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.route-page-organization .fe7-org-empty-grid .fe7-org-panel:nth-child(5) {
  grid-column: 1 !important;
  grid-row: 3 !important;
}

.route-page-organization .fe7-org-empty-grid .fe7-org-panel:nth-child(6) {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

.route-page-organization .fe7-org-grid:not(.fe7-org-empty-grid) {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr) !important;
}

.route-page-organization .fe7-org-grid:not(.fe7-org-empty-grid) > .fe7-org-col,
.route-page-organization .fe7-org-grid:not(.fe7-org-empty-grid) > .fe7-org-col > div {
  display: contents !important;
}

.route-page-organization .fe7-org-col-left .fe7-org-panel:nth-of-type(1) {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.route-page-organization .fe7-org-col-left .fe7-org-panel:nth-of-type(2) {
  grid-column: 2 !important;
  grid-row: 4 !important;
}

.route-page-organization .fe7-org-col-center .fe7-org-panel:nth-of-type(1) {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.route-page-organization .fe7-org-col-center .fe7-org-panel:nth-of-type(2) {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.route-page-organization .fe7-org-col-center .fe7-org-panel:nth-of-type(3) {
  grid-column: 1 !important;
  grid-row: 3 !important;
}

.route-page-organization .fe7-org-col-right .fe7-org-panel:nth-of-type(1) {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.route-page-organization .fe7-org-col-right .fe7-org-panel:nth-of-type(2) {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

.fe7-watchlist-main {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px) !important;
  gap: 10px !important;
}

.fe7-watchlist-table-head,
.fe7-watchlist-player-row {
  grid-template-columns: minmax(176px, 1.18fr) minmax(112px, 0.74fr) minmax(84px, 0.52fr) minmax(138px, 0.94fr) minmax(72px, 0.45fr) minmax(124px, auto) !important;
}

.fe7-watchlist-auth-console {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr) !important;
  gap: 10px !important;
}

.fe7-watchlist-auth-row {
  min-height: 36px !important;
  padding: 6px 8px !important;
  gap: 8px !important;
}

.fe7-watchlist-auth-rails article {
  min-height: 48px !important;
  padding: 7px 8px !important;
}

.fe7-player-profile-page .fe7-profile-hero {
  grid-template-columns: minmax(0, 1fr) minmax(122px, 146px) !important;
  grid-template-areas:
    "identity rank"
    "actions actions"
    "message message" !important;
  gap: 9px 11px !important;
  min-height: 0 !important;
  padding: 13px 15px !important;
  align-items: start !important;
}

.fe7-player-profile-page .fe7-profile-identity-block {
  gap: 14px !important;
  align-items: center !important;
}

.fe7-player-profile-page .fe7-profile-avatar {
  width: clamp(82px, 5.8vw, 98px) !important;
  height: clamp(82px, 5.8vw, 98px) !important;
}

.fe7-player-profile-page .fe7-profile-avatar .nxp-presence-dot:not(.nxp-presence-dot--small) {
  right: 6px !important;
  bottom: 7px !important;
  width: 13px !important;
  height: 13px !important;
  border-width: 2px !important;
}

.fe7-player-profile-page .fe7-profile-title {
  font-size: clamp(28px, 2.1vw, 36px) !important;
}

.fe7-player-profile-page .fe7-profile-rank-card {
  width: min(100%, 146px) !important;
  min-height: 74px !important;
  max-height: 92px !important;
  gap: 3px !important;
  padding: 8px 9px !important;
  justify-self: end !important;
}

.fe7-player-profile-page .fe7-profile-rank-label {
  font-size: 8.8px !important;
}

.fe7-player-profile-page .fe7-profile-rank-value {
  font-size: clamp(20px, 1.55vw, 26px) !important;
}

.fe7-player-profile-page .fe7-profile-rank-region {
  font-size: 9.5px !important;
  line-height: 1.16 !important;
}

.fe7-player-profile-page .fe7-profile-actions {
  justify-self: end !important;
  gap: 7px !important;
}

.fe7-search-query-text {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

:root:not([data-theme="night"]) {
  --nexus-warning-text: #8a5b04;
}

:root[data-theme="night"] {
  --nexus-warning-text: var(--nexus-warning);
}

.ui-placeholder::after {
  color: var(--nexus-warning-text) !important;
}

.fe7-stat-card {
  grid-template-rows: auto auto auto 1fr !important;
}

.fe7-stat-sparkline-slot {
  display: block !important;
  width: 100% !important;
  height: 28px !important;
  margin-top: -1px !important;
  overflow: hidden !important;
}

.fe7-stat-sparkline {
  width: 100% !important;
  max-width: 92px !important;
  height: 28px !important;
  margin-left: auto !important;
  opacity: 0.86 !important;
}

.nexus-donut-chart.is-skeleton .nexus-donut-ring {
  background:
    repeating-conic-gradient(
      from -12deg,
      color-mix(in srgb, var(--nxf4-line-cyan-bright) 74%, transparent) 0 10deg,
      color-mix(in srgb, var(--nxf4-line-muted) 34%, transparent) 10deg 18deg,
      color-mix(in srgb, var(--nxf4-line-blue) 44%, transparent) 18deg 26deg,
      color-mix(in srgb, var(--nxf4-chart-border) 70%, transparent) 26deg 34deg
    ) !important;
  filter: saturate(0.78) !important;
}

.fe7-page-analytics .fe7-chart-card .fe7-preview-chart-shell {
  height: clamp(216px, 26vh, 300px) !important;
  min-height: 216px !important;
}

.fe7-page-analytics .fe7-chart-card .nexus-line-graph {
  min-height: 100% !important;
}

.fe7-profile-rank-card {
  border-style: dashed !important;
}

.fe7-player-profile-page .fe7-profile-rank-value {
  font-size: clamp(13px, 1vw, 16px) !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.fe7-profile-presence-label {
  position: absolute !important;
  right: -8px !important;
  bottom: -15px !important;
  min-width: max-content !important;
  padding: 2px 5px !important;
  border: 1px solid color-mix(in srgb, var(--nexus-success) 48%, var(--nexus-border)) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--nexus-success) 14%, var(--nexus-surface-raised)) !important;
  color: var(--nexus-text-muted) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  pointer-events: none !important;
}

.nexus-settings-reference:not(.fe7-settings-page) > .placeholder-hero,
.inbox-route-guest-mount .placeholder-hero {
  min-height: min(500px, calc(100vh - 132px)) !important;
  padding: 26px 32px !important;
}

.nexus-settings-reference:not(.fe7-settings-page) .settings-auth-preview-grid,
.inbox-route-guest-mount .fe7-inbox-guest-grid {
  gap: 10px !important;
}

.nexus-settings-reference:not(.fe7-settings-page) .settings-auth-preview-card,
.inbox-route-guest-mount .fe7-inbox-guest-grid .route-module-card {
  min-height: 148px !important;
  padding: 12px !important;
}

.nexus-app-frame .route-page-login {
  min-height: 0 !important;
  align-items: start !important;
  padding: 10px 0 24px !important;
}

.nexus-app-frame .login-route-panel {
  margin-inline: auto !important;
}

.fe7-nav-pill {
  position: absolute !important;
  top: 3px !important;
  right: 5px !important;
}

@media (max-width: 760px) {
  body .nexus-sidebar-inner {
    gap: 5px !important;
  }

  body .nexus-sidebar .fe7-sidebar-logo {
    min-height: 34px !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
  }

  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-mark {
    width: 30px !important;
    height: 30px !important;
  }

  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-word {
    font-size: 15px !important;
    line-height: 1 !important;
  }

  body .nexus-sidebar .fe7-sidebar-logo .fe7-logo-tagline {
    display: none !important;
  }

  body .nexus-sidebar-search input {
    min-height: 30px !important;
    padding-block: 0 !important;
    font-size: 10.5px !important;
  }

  body .nexus-sidebar-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body .nexus-sidebar-link {
    min-width: 0 !important;
    min-height: 40px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    gap: 0 !important;
    padding: 4px 3px !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body .nexus-sidebar-link-icon {
    width: 16px !important;
    height: 16px !important;
  }

  body .nexus-sidebar-link-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  body .nexus-sidebar-link-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }

  body .nexus-sidebar-user,
  body .nexus-sidebar-user-guest {
    min-height: 0 !important;
    gap: 5px !important;
    padding: 6px !important;
  }

  body .nexus-sidebar-user-guest p {
    display: none !important;
  }

  body .nexus-sidebar-user .ghost-button,
  body .nexus-sidebar-user .solid-button,
  body .nexus-sidebar-user-guest .ghost-button,
  body .nexus-sidebar-user-guest .solid-button {
    min-height: 30px !important;
    padding-block: 5px !important;
    font-size: 10px !important;
  }

  body .nexus-sidebar-link.is-active {
    box-shadow: inset 0 -2px 0 var(--fe7-cyan) !important;
  }

  body .fe7-sidebar-utility-link {
    display: none !important;
  }

  .fe7-player-profile-page .fe7-profile-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "identity"
      "rank"
      "actions"
      "message" !important;
  }

  .fe7-player-profile-page .fe7-profile-rank-card {
    justify-self: center !important;
    width: min(100%, 176px) !important;
  }

  .route-page-organization .fe7-org-empty-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
  }

  .route-page-organization .fe7-org-empty-hero .fe7-org-identity-block {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .route-page-organization .fe7-org-empty-hero .fe7-org-summary-card {
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
  }

  .route-page-organization .fe7-org-empty-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .route-page-organization .fe7-org-empty-grid,
  .route-page-organization .fe7-org-grid:not(.fe7-org-empty-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-page-organization .fe7-org-empty-grid .fe7-org-panel,
  .route-page-organization .fe7-org-grid:not(.fe7-org-empty-grid) .fe7-org-panel {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .route-page-organization .fe7-org-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    min-height: 0 !important;
    padding: 6px !important;
    overflow: visible !important;
  }

  .route-page-organization .fe7-org-tabs .nexus-tab {
    min-width: 0 !important;
    width: 100% !important;
    padding-inline: 6px !important;
    font-size: 9.5px !important;
    line-height: 1.05 !important;
  }

  .fe7-watchlist-main {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-watchlist-auth-console {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-watchlist-auth-rails {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-preview-donut-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* NEXUS-FIDELITY-12: feed reference composition without fake social/news data. */
.route-page-feed.fe7-feed-page {
  grid-template-columns: minmax(620px, 760px) minmax(250px, 292px) !important;
  gap: 12px !important;
}

.route-page-feed .fe7-feed-route-head {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.route-page-feed .fe7-feed-center {
  gap: 12px !important;
}

.route-page-feed .fe7-feed-composer-card {
  padding: 18px 18px 14px !important;
  border-radius: 8px !important;
}

.route-page-feed .fe7-feed-composer-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 14px !important;
}

.route-page-feed .nexus-feed-composer-label {
  font-size: 15px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.route-page-feed .fe7-feed-composer-copy {
  margin-top: 2px !important;
  max-width: 520px !important;
}

.route-page-feed .nexus-feed-composer-actions {
  justify-content: flex-end !important;
}

.route-page-feed .nexus-composer-chip {
  min-width: 72px !important;
  justify-content: center !important;
}

.route-page-feed .fe7-feed-composer-form.is-disabled {
  display: grid !important;
  gap: 10px !important;
  margin-top: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.route-page-feed .fe7-feed-composer-form.is-disabled::after {
  display: none !important;
}

.route-page-feed .fe7-feed-composer-form.is-disabled textarea {
  min-height: 92px !important;
  resize: none !important;
}

.route-page-feed .fe7-feed-composer-form.is-disabled .nexus-ref-copy {
  margin: 0 !important;
  padding-left: 56px !important;
}

.route-page-feed .nexus-feed-empty-state {
  padding: 14px 16px !important;
  border-radius: 8px !important;
  gap: 10px !important;
}

.route-page-feed .fe7-feed-empty-media {
  height: 150px !important;
  min-height: 150px !important;
}

.route-page-feed .nexus-feed-empty-state strong {
  font-size: clamp(22px, 1.85vw, 29px) !important;
}

.route-page-feed .nexus-feed-empty-state p {
  font-size: 12px !important;
  line-height: 1.36 !important;
}

.route-page-feed .fe7-feed-right-rail > .nexus-ref-panel {
  padding: 0 !important;
  overflow: hidden !important;
}

.route-page-feed .fe7-feed-right-rail .nexus-ref-panel-head {
  padding: 12px 14px !important;
}

.route-page-feed .fe7-feed-right-rail .nexus-ref-panel-body {
  padding: 12px 14px !important;
}

.route-page-feed .nexus-follow-list.is-empty {
  display: grid !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.route-page-feed .nexus-follow-row.is-placeholder {
  opacity: 0.84 !important;
  pointer-events: none !important;
}

.route-page-feed .nexus-follow-row.is-placeholder strong,
.route-page-feed .nexus-follow-row.is-placeholder p,
.route-page-feed .nexus-follow-row.is-placeholder .nexus-follow-button {
  color: var(--nexus-text-muted) !important;
}

.route-page-feed .nexus-follow-button.is-disabled {
  min-width: 52px !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border-color: color-mix(in srgb, var(--nexus-cyan) 18%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-cyan) 7%, transparent) !important;
}

.route-page-feed .fe7-news-placeholder-list {
  display: grid !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.route-page-feed .fe7-news-placeholder-list span {
  display: block !important;
  min-height: 54px !important;
  border: 1px solid color-mix(in srgb, var(--nexus-cyan) 15%, var(--nexus-border)) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--nexus-cyan) 18%, transparent) 0 28%, transparent 28% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    color-mix(in srgb, var(--nexus-cyan) 5%, var(--nexus-surface-raised)) !important;
}

/* NEXUS-FIDELITY-12: watchlist reference filters without mood/psychology labels. */
.route-page-watchlist .fe7-watchlist-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(430px, auto) minmax(190px, auto) !important;
  gap: 10px !important;
}

.route-page-watchlist .fe7-watchlist-filters {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.route-page-watchlist .fe7-watchlist-filter-select {
  min-width: 104px !important;
}

.route-page-watchlist .fe7-watchlist-filter-select:first-child {
  min-width: 122px !important;
}

.route-page-watchlist .fe7-watchlist-filter-select select,
.route-page-watchlist .fe7-watchlist-sort select {
  width: 100% !important;
  min-height: 34px !important;
  padding: 0 32px 0 11px !important;
  border: 1px solid color-mix(in srgb, var(--nexus-border) 88%, transparent) !important;
  border-radius: 7px !important;
  background: var(--nexus-surface-raised) !important;
  color: var(--nexus-text) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.route-page-watchlist .fe7-watchlist-filter-select.is-placeholder select {
  color: var(--nexus-text-muted) !important;
  opacity: 0.82 !important;
}

/* NEXUS-FIDELITY-12: signed-out inbox reference workspace without fake threads. */
.fe7-inbox-guest-shell {
  gap: 12px !important;
}

.fe7-inbox-guest-shell .fe7-inbox-toolbar {
  min-height: 96px !important;
}

.fe7-inbox-guest-shell .fe7-save-state.is-locked {
  border-color: color-mix(in srgb, var(--nexus-warning) 34%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-warning) 10%, transparent) !important;
  color: var(--nexus-warning) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-shell.is-guest-locked {
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr) minmax(240px, 300px) !important;
  gap: 0 !important;
  min-height: min(720px, calc(100vh - 190px)) !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--nexus-border) 88%, transparent) !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--nexus-surface) 84%, #06111c) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-sidebar,
.fe7-inbox-guest-shell .fe7-inbox-main,
.fe7-inbox-guest-shell .fe7-inbox-detail-rail {
  min-height: inherit !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, var(--nxf5-card-toplight, rgba(255, 255, 255, 0.045)), transparent 72%),
    color-mix(in srgb, var(--nexus-surface-raised) 82%, #07121e) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-sidebar,
.fe7-inbox-guest-shell .fe7-inbox-main {
  border-right: 1px solid color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-search {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 36px !important;
  color: var(--nexus-text-muted) !important;
  font-size: 12px !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-list {
  display: grid !important;
  gap: 0 !important;
  padding: 0 12px 14px !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-list span {
  display: block !important;
  min-height: 72px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--nexus-border) 72%, transparent) !important;
  background:
    radial-gradient(circle at 20px 50%, color-mix(in srgb, var(--nexus-cyan) 24%, transparent) 0 18px, transparent 19px),
    linear-gradient(90deg, transparent 50px, color-mix(in srgb, var(--nexus-border) 46%, transparent) 50px 72%, transparent 72%) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-main {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-thread-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 18px 20px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-thread-head strong {
  color: var(--nexus-text) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-thread-head p {
  margin: 2px 0 0 !important;
  color: var(--nexus-text-muted) !important;
  font-size: 12px !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-date {
  justify-self: center !important;
  margin: 18px 0 10px !important;
  padding: 0 56px !important;
  color: var(--nexus-text-muted) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
  border-top: 1px solid color-mix(in srgb, var(--nexus-border) 72%, transparent) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-messages {
  display: grid !important;
  align-content: start !important;
  gap: 18px !important;
  padding: 8px 28px !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-messages span {
  width: min(310px, 58%) !important;
  min-height: 74px !important;
  border: 1px solid color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--nexus-border) 48%, transparent), transparent 72%),
    color-mix(in srgb, var(--nexus-surface) 66%, transparent) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-messages .is-own {
  justify-self: end !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--nexus-cyan) 18%, transparent), transparent 72%),
    color-mix(in srgb, var(--nexus-cyan) 8%, var(--nexus-surface-raised)) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-composer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 42px !important;
  gap: 10px !important;
  align-items: center !important;
  margin: 12px 20px 18px !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-composer span,
.fe7-inbox-guest-shell .fe7-inbox-locked-composer i {
  min-height: 36px !important;
  border: 1px solid color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
  border-radius: 7px !important;
  background: color-mix(in srgb, var(--nexus-surface) 66%, transparent) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-composer span {
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  color: var(--nexus-text-muted) !important;
  font-size: 12px !important;
}

.fe7-inbox-guest-shell .fe7-inbox-locked-composer i {
  background: color-mix(in srgb, var(--nexus-warning) 18%, var(--nexus-surface-raised)) !important;
}

.fe7-inbox-guest-shell .fe7-inbox-profile-skeleton {
  min-height: 116px !important;
}

.fe7-inbox-guest-shell .fe7-inbox-guest-actions {
  justify-content: flex-end !important;
}

/* NEXUS-FIDELITY-12: signed-out settings reference shell without account data. */
.fe7-settings-auth-preview {
  gap: 10px !important;
}

.fe7-settings-auth-preview .fe7-settings-head {
  min-height: 96px !important;
  padding-block: 16px !important;
}

.fe7-settings-auth-preview .fe7-save-state.is-locked {
  border-color: color-mix(in srgb, var(--nexus-warning) 34%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-warning) 10%, transparent) !important;
  color: var(--nexus-warning) !important;
}

.fe7-settings-auth-preview .settings-auth-locked-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.fe7-settings-auth-preview .settings-auth-locked-card {
  grid-column: span 3 !important;
  min-height: 142px !important;
  padding: 14px !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nexus-cyan) 8%, transparent), transparent 42%),
    linear-gradient(180deg, var(--nxf5-card-toplight, rgba(255, 255, 255, 0.045)), transparent 72%),
    color-mix(in srgb, var(--nexus-surface-raised) 84%, #07121e) !important;
}

.fe7-settings-auth-preview .settings-auth-locked-small {
  grid-column: span 2 !important;
  min-height: 86px !important;
}

.fe7-settings-auth-preview .settings-auth-locked-card.is-danger {
  border-color: color-mix(in srgb, #ff4d64 46%, var(--nexus-border)) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, #ff4d64 10%, transparent), transparent 44%),
    color-mix(in srgb, var(--nexus-surface-raised) 84%, #07121e) !important;
}

.fe7-settings-auth-preview .settings-auth-field-list,
.fe7-settings-auth-preview .settings-auth-provider-list,
.fe7-settings-auth-preview .settings-auth-toggle-list {
  display: grid !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

.fe7-settings-auth-preview .settings-auth-field-list span,
.fe7-settings-auth-preview .settings-auth-provider-list span,
.fe7-settings-auth-preview .settings-auth-toggle-list span {
  display: grid !important;
  min-height: 31px !important;
  align-items: center !important;
  padding: 6px 10px !important;
  border: 1px solid color-mix(in srgb, var(--nexus-border) 82%, transparent) !important;
  border-radius: 7px !important;
  background: color-mix(in srgb, var(--nexus-surface) 58%, transparent) !important;
  color: var(--nexus-text-muted) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

.fe7-settings-auth-preview .settings-auth-field-list.is-compact span {
  min-height: 30px !important;
}

.fe7-settings-auth-preview .settings-auth-provider-list span {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto !important;
  gap: 8px !important;
}

.fe7-settings-auth-preview .settings-auth-provider-list strong {
  color: var(--nexus-text) !important;
  font-size: 12px !important;
}

.fe7-settings-auth-preview .settings-auth-provider-list small {
  color: var(--nexus-text-muted) !important;
  font-size: 10px !important;
}

.fe7-settings-auth-preview .settings-auth-provider-list em {
  color: var(--nexus-warning) !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
}

.fe7-settings-auth-preview .settings-auth-segment-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.fe7-settings-auth-preview .settings-auth-segment-list span {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: 7px !important;
  color: var(--nexus-text-muted) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.fe7-settings-auth-preview .settings-auth-segment-list .is-selected {
  border-color: color-mix(in srgb, var(--nexus-cyan) 58%, var(--nexus-border)) !important;
  background: color-mix(in srgb, var(--nexus-cyan) 9%, transparent) !important;
  color: var(--nexus-cyan) !important;
}

.fe7-settings-auth-preview .settings-auth-swatch-row {
  display: flex !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.fe7-settings-auth-preview .settings-auth-swatch-row span {
  width: 24px !important;
  height: 24px !important;
  border: 1px solid color-mix(in srgb, var(--nexus-cyan) 28%, var(--nexus-border)) !important;
  border-radius: 7px !important;
  background: var(--nexus-cyan) !important;
}

.fe7-settings-auth-preview .settings-auth-swatch-row span:nth-child(2) {
  background: #7c5cff !important;
}

.fe7-settings-auth-preview .settings-auth-swatch-row span:nth-child(3) {
  background: #315cff !important;
}

.fe7-settings-auth-preview .settings-auth-swatch-row span:nth-child(4) {
  background: #f59e0b !important;
}

.fe7-settings-auth-preview .settings-auth-swatch-row span:nth-child(5) {
  background: #ef476f !important;
}

.fe7-settings-auth-preview .settings-auth-toggle-list span {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.fe7-settings-auth-preview .settings-auth-toggle-list i {
  width: 34px !important;
  height: 18px !important;
  border: 1px solid color-mix(in srgb, var(--nexus-cyan) 22%, var(--nexus-border)) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--nexus-text-muted) 14%, transparent) !important;
}

.fe7-settings-auth-preview .fe7-settings-auth-actions {
  justify-content: flex-end !important;
  margin-top: 2px !important;
}

@media (max-width: 900px) {
  .route-page-feed.fe7-feed-page {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-page-watchlist .fe7-watchlist-toolbar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-page-watchlist .fe7-watchlist-filters {
    flex-wrap: wrap !important;
  }

  .fe7-inbox-guest-shell .fe7-inbox-shell.is-guest-locked {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  .fe7-inbox-guest-shell .fe7-inbox-sidebar,
  .fe7-inbox-guest-shell .fe7-inbox-main {
    border-right: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--nexus-border) 86%, transparent) !important;
  }

  .fe7-inbox-guest-shell .fe7-inbox-locked-messages {
    padding-inline: 16px !important;
  }

  .fe7-settings-auth-preview .settings-auth-locked-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .fe7-settings-auth-preview .settings-auth-locked-card,
  .fe7-settings-auth-preview .settings-auth-locked-small {
    grid-column: span 1 !important;
  }
}

@media (max-width: 760px) {
  .route-page-feed .fe7-feed-composer-head {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-page-feed .nexus-feed-composer-actions {
    justify-content: flex-start !important;
  }

  .route-page-feed .fe7-feed-composer-form.is-disabled .nexus-ref-copy {
    padding-left: 0 !important;
  }

  .fe7-settings-auth-preview .settings-auth-locked-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fe7-settings-auth-preview .settings-auth-provider-list span {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-page-watchlist .fe7-watchlist-filter-select,
  .route-page-watchlist .fe7-watchlist-filter-select:first-child {
    min-width: min(140px, calc(50% - 4px)) !important;
    flex: 1 1 calc(50% - 4px) !important;
  }

  .fe7-inbox-guest-shell .fe7-inbox-hero-actions,
  .fe7-inbox-guest-shell .fe7-inbox-guest-actions {
    justify-content: flex-start !important;
  }

  .fe7-settings-auth-preview .fe7-settings-auth-actions {
    justify-content: flex-start !important;
  }
}

/* NEXUS-FIDELITY-12: narrow-viewport profile/search polish and preview control contrast. */
.fe7-preview-route .fe7-head-action[disabled],
.fe7-preview-route button[disabled] {
  color: color-mix(in srgb, var(--nexus-text) 76%, var(--nexus-text-muted)) !important;
  opacity: 0.74 !important;
}

.fe7-preview-route .fe7-stat-grid {
  order: 1 !important;
}

.fe7-preview-route .fe7-page-tabs,
.fe7-preview-route .fe7-toolbar {
  order: 2 !important;
}

.fe7-page-predictions > .fe7-two-col,
.fe7-page-market .fe7-market-main,
.fe7-page-matches .fe7-match-hero,
.fe7-page-analytics > .fe7-two-col {
  order: 3 !important;
}

.fe7-page-predictions .fe7-market-grid,
.fe7-page-market .fe7-two-col:not(.fe7-market-main),
.fe7-page-matches .fe7-three-col,
.fe7-page-analytics .fe7-four-col,
.fe7-page-analytics > .fe7-card {
  order: 4 !important;
}

.fe7-preview-route .fe7-status-strip {
  order: 7 !important;
}

.fe7-preview-route .fe7-placeholder-notice {
  order: 8 !important;
}

.fe7-page-market .fe7-preview-chart-shell {
  min-height: 172px !important;
}

@media (max-width: 760px) {
  .search-route-hero h1,
  .search-route-hero .fe7-search-route-title {
    font-size: clamp(25px, 8.6vw, 32px) !important;
    line-height: 1.08 !important;
  }

  .search-route-hero .fe7-search-query-text {
    display: inline-block !important;
    font-size: 0.78em !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .fe7-player-profile-page .profile-analytics-nav.nxp-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 8px !important;
  }

  .fe7-player-profile-page .profile-analytics-nav .nxp-tab {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 10px 8px !important;
    justify-content: center !important;
  }

  .fe7-player-profile-page .fe7-player-overview-wide .nxp-about-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: hidden !important;
  }

  .fe7-player-profile-page .fe7-player-overview-wide .nxp-about-row {
    min-width: 0 !important;
    min-height: 62px !important;
    border-right: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--nexus-border) 80%, transparent) !important;
  }

  .fe7-player-profile-page .fe7-player-overview-wide .nxp-about-row dd {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}
