    html[data-theme-resolved="light"] body .nx-card,
    html[data-theme-resolved="light"] body .nx-trust-card,
    html[data-theme-resolved="light"] body .nx-news-card,
    html[data-theme-resolved="light"] body .nx-trust-item {
      box-shadow:
        0 24px 48px rgba(26, 21, 18, 0.04),
        0 8px 16px rgba(26, 21, 18, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 1);
      backdrop-filter: blur(24px);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(252, 251, 249, 0.7));
    }

    html[data-theme-resolved="light"] body .nx-hero-shell {
      box-shadow:
        0 42px 110px rgba(35, 31, 26, 0.08),
        0 14px 32px rgba(35, 31, 26, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    }

    body {
      margin: 0;
      background: var(--nx-bg);
      color: var(--nx-text);
      font-family: var(--theme-body-font);
      font-weight: 400;
      overflow-x: hidden;
      cursor: none;
    }

    /* Custom cursor */
    .nx-cursor {
      position: fixed;
      width: 8px;
      height: 8px;
      background: var(--nx-cyan);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      will-change: transform;
      transform: translate(-100px, -100px);
    }

    .nx-cursor-ring {
      position: fixed;
      width: 32px;
      height: 32px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.6);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9998;
      will-change: transform;
      transform: translate(-100px, -100px);
      margin: -12px;
      box-shadow: 0 0 10px rgba(var(--nx-cyan-rgb), 0.3);
      transition: transform 0.15s ease, opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    /* Interactive hover state for cursor */
    .nx-cursor-ring.hovering {
      border-color: rgba(153, 101, 21, 0.8);
      box-shadow: 0 0 20px rgba(153, 101, 21, 0.4);
    }

    /* Ambient composite background – GPU-composited, no scroll repaint */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
      opacity: 0.04;
      z-index: 0;
      pointer-events: none;
      will-change: transform;
      /* own compositor layer */
    }

    body::after {
      content: '';
      position: fixed;
      inset: 0;
      background:
        linear-gradient(rgba(var(--nx-cyan-rgb), 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--nx-cyan-rgb), 0.012) 1px, transparent 1px);
      background-size: 80px 80px;
      pointer-events: none;
      z-index: 0;
      will-change: transform;
      /* own compositor layer */
    }

    html[data-theme-resolved="light"] body {
      background:
        radial-gradient(circle at 18% 16%, rgba(184, 134, 11, 0.03), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(184, 134, 11, 0.02), transparent 20%),
        radial-gradient(circle at 74% 72%, rgba(var(--nx-cyan-rgb), 0.03), transparent 30%),
        linear-gradient(180deg, #FFFFFF 0%, #F5F1EA 50%, #EDE8DF 100%);
    }

    html[data-theme-resolved="light"] body::before {
      opacity: 0.06;
      background-image:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.9), transparent 20%),
        radial-gradient(circle at 74% 30%, rgba(184, 134, 11, 0.03), transparent 25%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    }

    html[data-theme-resolved="light"] body::after {
      background:
        linear-gradient(rgba(48, 40, 30, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(48, 40, 30, 0.028) 1px, transparent 1px);
      background-size: 80px 80px;
      opacity: 0.32;
    }

    body h1,
    body h2,
    body h3 {
      font-family: var(--theme-display-font);
      letter-spacing: -0.01em;
    }

    .theme-switcher {
      display: flex;
      background: rgba(var(--nx-cyan-rgb), 0.08);
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.22);
      border-radius: 999px;
      padding: 4px;
      margin-right: 16px;
      align-items: center;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    html[data-theme-resolved="light"] body .theme-switcher {
      box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.05),
        0 10px 24px rgba(15, 23, 42, 0.04);
      background: rgba(255, 255, 255, 0.82);
      border-color: rgba(184, 134, 11, 0.12);
    }

    .theme-btn {
      background: transparent;
      border: none;
      color: var(--nx-muted);
      min-width: 36px;
      height: 36px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
      padding: 0 10px;
    }

    .theme-btn:hover {
      color: var(--nx-text);
      background: rgba(var(--nx-cyan-rgb), 0.1);
    }

    .theme-btn svg {
      width: 16px;
      height: 16px;
      stroke-width: 1.8;
    }

    .theme-btn .icon-sun {
      display: none;
    }

    html[data-theme-resolved="dark"] body .theme-btn .icon-moon {
      display: none;
    }

    html[data-theme-resolved="dark"] body .theme-btn .icon-sun {
      display: block;
    }

    .theme-btn-label {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    html[data-theme-resolved="light"] body .theme-btn {
      color: #3d332c;
    }

    html[data-theme-resolved="light"] body .theme-btn:hover {
      background: rgba(184, 134, 11, 0.08);
    }

    .theme-btn--icon {
      background: transparent;
      border: none;
      color: var(--nx-muted);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      padding: 0;
      margin-right: 12px;
    }

    .theme-btn--icon:hover {
      color: var(--nx-text);
      background: rgba(var(--nx-cyan-rgb), 0.1);
    }

    .theme-btn--icon svg {
      width: 18px;
      height: 18px;
      stroke-width: 1.8;
    }

    .theme-btn--icon .icon-sun {
      display: none;
    }

    html[data-theme-resolved="dark"] body .theme-btn--icon .icon-moon {
      display: none;
    }

    html[data-theme-resolved="dark"] body .theme-btn--icon .icon-sun {
      display: block;
    }

    /* Scroll progress bar */
    .nx-scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--nx-cyan), var(--nx-bright), var(--nx-cyan));
      transform-origin: left;
      transform: scaleX(0);
      z-index: 200;
      transition: transform 0.1s linear;
    }

    .sphere-glow {
      position: absolute;
      inset: -50px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(var(--nx-cyan-rgb), 0.15) 0%, transparent 60%);
      pointer-events: none;
      filter: blur(30px);
    }

    .sphere-core {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(var(--nx-cyan-rgb), 0.3) 0%, transparent 70%);
      box-shadow: 0 0 60px rgba(var(--nx-cyan-rgb), 0.4);
    }

    .nx-hero-shell {
      position: relative;
      width: min(100%, 560px);
      aspect-ratio: 1 / 1;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.12);
      background:
        radial-gradient(circle at 50% 50%, rgba(var(--nx-cyan-rgb), 0.08), transparent 42%),
        linear-gradient(180deg, rgba(var(--nx-text-rgb), 0.04), rgba(var(--nx-text-rgb), 0.015)),
        rgba(var(--nx-bg-rgb), 0.62);
      box-shadow:
        inset 0 1px 0 rgba(var(--nx-text-rgb), 0.05),
        0 40px 120px rgba(0, 0, 0, 0.42);
    }

    .nx-hero-shell::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(var(--nx-cyan-rgb), 0.05) 0 1px, transparent 1px),
        linear-gradient(rgba(var(--nx-cyan-rgb), 0.04) 0 1px, transparent 1px);
      background-size: 52px 52px;
      opacity: 0.45;
      pointer-events: none;
    }

    .nx-hero-shell::after {
      content: '';
      position: absolute;
      inset: 12% 14% 12% 14%;
      border-radius: 50%;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.1);
      box-shadow:
        0 0 80px rgba(var(--nx-cyan-rgb), 0.1),
        inset 0 0 40px rgba(var(--nx-cyan-rgb), 0.04);
      pointer-events: none;
    }

    html[data-theme-resolved="light"] body .nx-header {
      background: rgba(255, 255, 255, 0.88);
      border-bottom-color: rgba(184, 134, 11, 0.1);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 1),
        0 22px 44px rgba(15, 23, 42, 0.03);
    }

    html[data-theme-resolved="light"] body .nx-header .nav-link:hover,
    html[data-theme-resolved="light"] body .nx-header .button-secondary:hover {
      color: var(--nx-text);
    }

    html[data-theme-resolved="light"] body .nx-header .button-primary {
      background: rgba(255, 255, 255, 0.88);
      color: #241b13;
      border-color: rgba(184, 134, 11, 0.12);
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

    html[data-theme-resolved="light"] body .nx-header .button-primary:hover {
      background: rgba(255, 255, 255, 0.96);
      border-color: rgba(var(--nx-cyan-rgb), 0.18);
      box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
    }

    html[data-theme-resolved="light"] body .nx-header .button-secondary {
      color: rgba(36, 27, 18, 0.72);
    }

    html[data-theme-resolved="light"] body .nx-hero {
      background:
        radial-gradient(circle at 76% 36%, rgba(91, 102, 116, 0.06), transparent 35%),
        radial-gradient(circle at 67% 61%, rgba(var(--nx-cyan-rgb), 0.025), transparent 25%),
        linear-gradient(180deg, #FFFFFF 0%, #F5F1EA 100%);
    }

    html[data-theme-resolved="light"] body .nx-hero::before {
      background: linear-gradient(90deg,
          rgba(255, 255, 255, 0.95) 0%,
          rgba(252, 251, 249, 0.88) 50%,
          rgba(252, 251, 249, 0.16) 75%,
          transparent 100%);
    }

    html[data-theme-resolved="light"] body .nx-hero h1 {
      background: linear-gradient(135deg, #1A1512 0%, #3D332C 68%, #8E6B2E 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    html[data-theme-resolved="light"] body .nx-hero h1 em {
      background: linear-gradient(135deg, #8E6B2E 0%, #C89A48 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    html[data-theme-resolved="light"] body .nx-hero-sub {
      color: rgba(43, 35, 28, 0.74);
    }

    html[data-theme-resolved="light"] body .nx-hero-actions .button-primary {
      background: linear-gradient(135deg, #B8860B 0%, #8E6B2E 100%);
      color: #FFFFFF;
      box-shadow:
        0 18px 38px rgba(184, 134, 11, 0.16),
        0 8px 18px rgba(15, 23, 42, 0.06);
    }

    html[data-theme-resolved="light"] body .nx-hero-actions .button-primary:hover {
      box-shadow:
        0 22px 46px rgba(142, 107, 46, 0.16),
        0 10px 24px rgba(15, 23, 42, 0.08);
    }

    html[data-theme-resolved="light"] body .nx-hero-actions .button-secondary {
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(184, 134, 11, 0.12);
      color: #2f2721;
      backdrop-filter: blur(16px);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    }

    html[data-theme-resolved="light"] body .nx-hero-actions .button-secondary:hover {
      background: rgba(255, 255, 255, 0.9);
      border-color: rgba(var(--nx-cyan-rgb), 0.16);
    }

    html[data-theme-resolved="light"] body .sphere-word {
      color: rgba(95, 84, 70, 0.34);
      text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 16px rgba(255, 255, 255, 0.6);
      mix-blend-mode: multiply;
    }

    html[data-theme-resolved="light"] body .sphere-word.large {
      color: rgba(142, 107, 46, 0.72);
    }

    html[data-theme-resolved="light"] body .sphere-word.medium {
      color: rgba(142, 107, 46, 0.56);
    }

    html[data-theme-resolved="light"] body .sphere-word.small {
      color: rgba(95, 84, 70, 0.38);
    }

    html[data-theme-resolved="light"] body .sphere-word.tiny {
      color: rgba(95, 84, 70, 0.24);
    }

    html[data-theme-resolved="light"] body .nx-scroll-hint {
      color: rgba(66, 57, 45, 0.42);
    }

    html[data-theme-resolved="light"] body .nx-content {
      background: linear-gradient(180deg, #F5F1EA 0%, #FFFFFF 24%, #EDE8DF 100%);
    }

    html[data-theme-resolved="light"] body .nx-content::before {
      background: linear-gradient(180deg, transparent, rgba(244, 241, 236, 0.94));
    }

    html[data-theme-resolved="light"] body .nx-content::after {
      background: radial-gradient(circle, rgba(61, 51, 44, 0.022) 1px, transparent 1.4px);
      opacity: 0.18;
    }

    html[data-theme-resolved="light"] body .nx-divider {
      background: linear-gradient(90deg, transparent, rgba(52, 44, 34, 0.14), rgba(var(--nx-cyan-rgb), 0.18), transparent);
    }

    html[data-theme-resolved="light"] body .nx-card:hover,
    html[data-theme-resolved="light"] body .nx-trust-item:hover,
    html[data-theme-resolved="light"] body .nx-news-card:hover {
      border-color: rgba(var(--nx-cyan-rgb), 0.2);
      box-shadow:
        0 28px 64px rgba(35, 31, 26, 0.08),
        0 10px 24px rgba(35, 31, 26, 0.05);
    }

    html[data-theme-resolved="light"] body .nx-trust-item {
      background: rgba(255, 255, 255, 0.66);
    }

    html[data-theme-resolved="light"] body .nx-trust-check {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 241, 236, 0.58));
    }

    html[data-theme-resolved="light"] body .nx-cta::before {
      background: radial-gradient(circle, rgba(80, 88, 100, 0.08) 0%, rgba(var(--nx-cyan-rgb), 0.03) 34%, transparent 62%);
    }

    html[data-theme-resolved="light"] body .nx-mobile-menu {
      background: rgba(255, 255, 255, 0.94);
      border-top: 1px solid rgba(184, 134, 11, 0.12);
      box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    }

    html[data-theme-resolved="light"] body .nx-mobile-menu a {
      color: rgba(45, 36, 27, 0.78);
      border-bottom-color: rgba(58, 47, 33, 0.08);
    }

    html[data-theme-resolved="light"] body .nx-mobile-menu a:hover {
      color: var(--nx-text);
    }

    #sphere-canvas {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 500px;
      height: 500px;
      z-index: 1;
    }

    .nx-sphere-glow {
      position: absolute;
      inset: 10% 12%;
      border-radius: 50%;
      background:
        radial-gradient(circle, rgba(var(--nx-cyan-rgb), 0.16) 0%, transparent 58%),
        radial-gradient(circle, rgba(255, 223, 115, 0.08) 0%, transparent 72%);
      filter: blur(28px);
      pointer-events: none;
      z-index: 0;
    }

    html[data-theme-resolved="light"] body .nx-sphere-glow {
      background:
        radial-gradient(circle, rgba(74, 82, 94, 0.12) 0%, transparent 60%),
        radial-gradient(circle, rgba(var(--nx-cyan-rgb), 0.06) 0%, transparent 72%);
      filter: blur(34px);
    }

    .nx-hero-badge {
      position: absolute;
      z-index: 3;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.14);
      background: rgba(var(--nx-bg-rgb), 0.86);
      box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
      backdrop-filter: blur(16px);
      display: grid;
      gap: 6px;
      max-width: 180px;
    }

    html[data-theme-resolved="light"] body .nx-hero-shell {
      background:
        radial-gradient(circle at 50% 50%, rgba(91, 102, 116, 0.08), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 242, 238, 0.7)),
        rgba(250, 249, 246, 0.78);
      border-color: rgba(184, 134, 11, 0.1);
    }

    html[data-theme-resolved="light"] body .nx-hero-shell::before {
      background:
        linear-gradient(90deg, rgba(61, 51, 38, 0.05) 0 1px, transparent 1px),
        linear-gradient(rgba(61, 51, 38, 0.04) 0 1px, transparent 1px);
    }

    html[data-theme-resolved="light"] body .nx-hero-shell::after {
      border-color: rgba(61, 51, 38, 0.08);
      box-shadow:
        0 0 90px rgba(91, 102, 116, 0.09),
        inset 0 0 34px rgba(var(--nx-cyan-rgb), 0.04);
    }

    html[data-theme-resolved="light"] body .nx-hero-badge {
      background: rgba(255, 255, 255, 0.82);
      border-color: rgba(184, 134, 11, 0.1);
      box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    }

    html[data-theme-resolved="light"] body .nx-hero-badge span {
      color: rgba(108, 79, 31, 0.7);
    }

    html[data-theme-resolved="light"] body .nx-hero-badge strong {
      color: #1e1711;
    }

    .nx-hero-badge span {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: rgba(var(--nx-cyan-rgb), 0.72);
    }

    .nx-hero-badge strong {
      font-size: 0.94rem;
      line-height: 1.45;
      color: var(--nx-text);
    }

    .nx-badge-a {
      top: 10%;
      right: 8%;
    }

    .nx-badge-b {
      top: 46%;
      right: -2%;
    }

    .nx-badge-c {
      bottom: 10%;
      left: 8%;
    }

    /* ============ SCROLL REVEAL ============ */
    .nx-reveal {
      opacity: 0;
      transform: translateY(36px);
      transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nx-reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .nx-reveal-d1 {
      transition-delay: 0.1s;
    }

    .nx-reveal-d2 {
      transition-delay: 0.2s;
    }

    .nx-reveal-d3 {
      transition-delay: 0.3s;
    }

    .nx-reveal-d4 {
      transition-delay: 0.4s;
    }

    /* ============ CARDS ============ */
    .nx-card {
      background: var(--nx-card-bg);
      border: 1px solid var(--nx-card-border);
      border-radius: 12px;
      padding: 28px;
      transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
      position: relative;
      overflow: hidden;
    }

    .nx-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 20%;
      right: 20%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--nx-cyan), transparent);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .nx-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 50%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(var(--nx-cyan-rgb), 0.03), transparent);
      transition: left 0.6s ease;
      pointer-events: none;
    }

    .nx-card:hover {
      transform: translateY(-4px);
      border-color: rgba(var(--nx-cyan-rgb), 0.18);
      box-shadow: 0 24px 60px rgba(var(--nx-cyan-rgb), 0.06);
    }

    .nx-card:hover::before {
      opacity: 0.5;
    }

    .nx-card:hover::after {
      left: 150%;
    }

    .nx-card h3 {
      font-size: 1.35rem;
      margin: 14px 0 10px;
    }

    .nx-card p {
      color: var(--nx-muted);
      line-height: 1.78;
      margin: 0;
    }

    .nx-card-subtitle {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--nx-cyan);
      opacity: 0.8;
      margin: 0 0 4px;
    }

    .nx-card-num {
      font-family: var(--theme-display-font);
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--nx-cyan);
      letter-spacing: 0.1em;
    }

    /* ============ TRUST ============ */
    .nx-trust-card {
      background: var(--nx-card-bg);
      border: 1px solid var(--nx-card-border);
      border-left: 3px solid var(--nx-cyan);
      border-radius: 12px;
      padding: 40px;
      display: grid;
      gap: 28px;
    }

    .nx-trust-header h3 {
      font-size: 1.8rem;
      margin: 0 0 12px;
    }

    .nx-trust-header>p {
      color: var(--nx-muted);
      line-height: 1.85;
      margin: 0;
      max-width: 42rem;
    }

    .nx-trust-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px 18px;
      border-radius: 8px;
      background: rgba(var(--nx-cyan-rgb), 0.03);
      border: 1px solid var(--nx-card-border);
      font-size: 0.9rem;
      color: var(--nx-muted);
      line-height: 1.6;
      transition: all 0.3s ease;
    }

    .nx-trust-item:hover {
      border-color: rgba(var(--nx-cyan-rgb), 0.15);
      background: rgba(var(--nx-cyan-rgb), 0.06);
    }

    .nx-trust-check {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 1.5px solid rgba(var(--nx-cyan-rgb), 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .nx-trust-check::after {
      content: '';
      width: 6px;
      height: 6px;
      background: var(--nx-cyan);
      border-radius: 50%;
      opacity: 0.6;
    }

    .nx-news-card {
      background: var(--nx-card-bg);
      border: 1px solid var(--nx-card-border);
      border-radius: 12px;
      padding: 24px;
      display: grid;
      gap: 12px;
      transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
      position: relative;
      overflow: hidden;
    }

    .nx-news-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, var(--nx-cyan), transparent 70%);
      opacity: 0.3;
    }

    .nx-news-card:hover {
      border-color: rgba(var(--nx-cyan-rgb), 0.16);
      transform: translateY(-3px);
      box-shadow: 0 16px 40px rgba(var(--nx-cyan-rgb), 0.04);
    }

    .nx-news-card time {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--nx-cyan);
      opacity: 0.7;
    }

    .nx-news-card h3 {
      font-size: 1.2rem;
      margin: 0;
      line-height: 1.25;
    }

    .nx-news-card p {
      margin: 0;
      color: var(--nx-muted);
      line-height: 1.75;
      font-size: 0.92rem;
    }

    .nx-news-card--featured {
      grid-column: 1 / -1;
      max-width: 720px;
      margin: 0 auto;
      padding: 0;
      display: grid;
      grid-template-columns: 300px 1fr;
      gap: 0;
    }

    .nx-news-card--featured::before {
      left: 300px;
    }

    .nx-news-card-media {
      position: relative;
      min-height: 260px;
      overflow: hidden;
      background: #080A10;
      border-right: 1px solid var(--nx-card-border);
    }

    .nx-news-card-media-art {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nx-news-card--featured:hover .nx-news-card-media-art {
      transform: scale(1.04);
    }

    .nx-news-card-media-scrim {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(8, 10, 16, 0.0) 50%, rgba(8, 10, 16, 0.85) 100%),
        linear-gradient(90deg, rgba(8, 10, 16, 0.45) 0%, transparent 45%);
      pointer-events: none;
    }

    .nx-news-card-media-label {
      position: absolute;
      left: 22px;
      bottom: 20px;
      display: grid;
      gap: 4px;
      line-height: 1;
    }

    .nx-news-card-media-label-kicker {
      font-size: 0.68rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(var(--nx-cyan-rgb), 0.9);
    }

    .nx-news-card-media-label-title {
      font-family: var(--theme-display-font);
      font-size: 1.38rem;
      font-style: italic;
      letter-spacing: 0.01em;
      color: rgba(240, 240, 248, 0.94);
    }

    .nx-news-card-copy {
      padding: 30px 32px;
      display: grid;
      align-content: center;
      gap: 12px;
    }

    .nx-news-card--featured .nx-news-card-copy h3 {
      font-size: 1.32rem;
      line-height: 1.28;
    }

    .nx-news-card-cta {
      margin-top: 6px;
      font-size: 0.86rem;
      letter-spacing: 0.04em;
      color: var(--nx-cyan);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .nx-news-card-cta span {
      transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
      display: inline-block;
    }

    .nx-news-card--featured:hover .nx-news-card-cta span {
      transform: translateX(5px);
    }

    .nx-news-card--clean-link {
      text-decoration: none;
      color: inherit;
    }

    .compare-ribbon-text {
      font-size: 8.5px;
      font-weight: 700;
      letter-spacing: 0.14em;
    }

    .compare-badge-text {
      font-size: 8px;
      font-weight: 700;
    }

    .compare-badge-text--emails {
      letter-spacing: 0.06em;
    }

    .compare-badge-text--versions {
      letter-spacing: 0.05em;
    }

    .compare-badge-text--multiplier {
      letter-spacing: 0.04em;
    }

    .gravity-layer-label {
      font-size: 9.5px;
      font-weight: 700;
      letter-spacing: 0.22em;
      text-transform: uppercase;
    }

    .feature-title--oversight {
      font-size: 10.4px;
      letter-spacing: 0.075em;
    }

    @media (max-width: 720px) {
      .nx-news-card--featured {
        grid-template-columns: 1fr;
        max-width: 460px;
      }

      .nx-news-card--featured::before {
        left: 0;
      }

      .nx-news-card-media {
        min-height: 180px;
        border-right: none;
        border-bottom: 1px solid var(--nx-card-border);
      }

      .nx-news-card-copy {
        padding: 24px 22px;
      }

      .nx-footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
      }

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

    .nx-cta::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(var(--nx-cyan-rgb), 0.04) 0%, transparent 60%);
      pointer-events: none;
    }

    .nx-cta h2 {
      font-size: clamp(2rem, 4vw, 3.2rem);
      margin: 0 0 16px;
      line-height: 1.15;
    }

    .nx-cta h2 em {
      font-style: normal;
      color: var(--nx-cyan);
    }

    .nx-cta-bullets {
      list-style: none;
      padding: 0;
      margin: 0 0 24px;
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .nx-cta-bullets li {
      font-size: 0.88rem;
      color: var(--nx-muted);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nx-cta-bullets li::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--nx-cyan);
      opacity: 0.5;
    }

    .nx-cta-actions .button-primary {
      background: var(--nx-cyan);
      color: var(--nx-bg);
    }

    .nx-cta-actions .button-secondary {
      border-color: rgba(var(--nx-cyan-rgb), 0.2);
      color: var(--nx-text);
    }

    .nx-footer--expanded {
      display: block;
      padding: 60px 0 24px;
      border-top: 1px solid var(--nx-card-border);
    }

    .nx-footer-top {
      display: grid;
      grid-template-columns: 1.5fr 2fr;
      gap: 48px;
      margin-bottom: 40px;
    }

    .nx-footer-desc {
      color: var(--nx-muted);
      font-size: 0.88rem;
      line-height: 1.6;
      margin: 12px 0 0;
      max-width: 280px;
    }

    .nx-footer-nav {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .nx-footer-col h4 {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--nx-text);
      margin: 0 0 14px;
      font-weight: 600;
    }

    .nx-footer-col a {
      display: block;
      color: var(--nx-muted);
      text-decoration: none;
      font-size: 0.88rem;
      padding: 4px 0;
      transition: color 0.2s ease;
    }

    .nx-footer-col a:hover {
      color: var(--nx-cyan);
    }

    .nx-footer-bottom {
      border-top: 1px solid var(--nx-card-border);
      padding-top: 20px;
    }

    .nx-footer-bottom p {
      color: var(--nx-muted);
      font-size: 0.8rem;
      margin: 0;
      opacity: 0.7;
    }

    /* ============ AUDIT TRAIL PREVIEW ============ */

    .nx-audit-card {
      cursor: pointer;
      transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                  border-color 0.4s ease,
                  box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nx-audit-card:focus-visible {
      outline: 2px solid rgba(var(--nx-cyan-rgb), 0.75);
      outline-offset: 4px;
    }

    html[data-theme-resolved="light"] .nx-audit-card:focus-visible {
      outline-color: rgba(184, 134, 11, 0.72);
    }

    .nx-audit-card:hover {
      transform: translateY(-2px) scale(1.008);
      box-shadow:
        0 26px 68px rgba(0, 0, 0, 0.2),
        0 0 42px rgba(var(--nx-cyan-rgb), 0.05);
    }

    .nx-audit-viewport {
      position: absolute;
      left: 0;
      right: 0;
      top: 44px;
      bottom: 0;
      overflow: hidden;
      z-index: 1;
    }

    .nx-audit-scroll-inner {
      will-change: transform;
      transform: translateY(var(--audit-scroll, 0px));
      transition: transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @media (prefers-reduced-motion: reduce) {
      .nx-audit-scroll-inner { transition: none; }
    }

    /* ---- Panel card ---- */
    .at-card {
      margin: 10px 12px 136px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.12);
      border-radius: 12px;
      background:
        linear-gradient(180deg, rgba(var(--nx-surface-rgb), 0.7), rgba(var(--nx-surface-rgb), 0.52)),
        radial-gradient(circle at top right, rgba(var(--nx-cyan-rgb), 0.08), transparent 32%);
      overflow: hidden;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 30px rgba(0, 0, 0, 0.16);
    }

    html[data-theme-resolved="light"] .at-card {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 235, 0.92)),
        radial-gradient(circle at top right, rgba(184, 134, 11, 0.08), transparent 36%);
      border-color: rgba(110, 84, 26, 0.08);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 12px 28px rgba(30, 24, 17, 0.08);
    }

    /* ---- Card header ---- */
    .at-card-head {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 11px 12px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.08);
    }

    .at-clock {
      color: var(--nx-cyan);
      flex-shrink: 0;
    }

    .at-card-title {
      font-family: var(--theme-ui-font);
      font-size: 11px;
      font-weight: 700;
      color: var(--nx-text);
      letter-spacing: 0.02em;
      margin-right: 8px;
      flex: 0 0 auto;
    }

    .at-state-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 7px;
      border-radius: 999px;
      border: 1px solid rgba(var(--nx-success-rgb), 0.2);
      background: rgba(var(--nx-success-rgb), 0.12);
      font-family: var(--theme-ui-font);
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: var(--nx-success);
      white-space: nowrap;
    }

    .at-chips {
      display: flex;
      gap: 2px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.12);
      border-radius: 8px;
      padding: 2px;
      margin-left: auto;
      flex-shrink: 0;
    }

    .at-chip {
      font-family: var(--theme-ui-font);
      font-size: 8.5px;
      font-weight: 600;
      padding: 3px 7px;
      border-radius: 6px;
      color: var(--nx-muted);
      white-space: nowrap;
    }

    .at-chip--active {
      background: var(--nx-cyan);
      color: var(--nx-bg);
    }

    .at-context {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px 10px;
      padding: 10px 14px 12px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.07);
      background:
        linear-gradient(180deg, rgba(var(--nx-cyan-rgb), 0.05), rgba(var(--nx-cyan-rgb), 0.018)),
        rgba(var(--nx-bg-rgb), 0.16);
    }

    .at-context-item {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .at-context-item--wide {
      grid-column: span 2;
    }

    .at-context-label {
      font-family: var(--theme-ui-font);
      font-size: 7.5px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--nx-muted);
      opacity: 0.72;
    }

    .at-context-value {
      font-family: var(--theme-ui-font);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.01em;
      color: var(--nx-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .at-context-value--tagged {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      overflow: visible;
    }

    .at-context-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 6px;
      border-radius: 999px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.14);
      background: rgba(var(--nx-cyan-rgb), 0.08);
      font-family: var(--theme-ui-font);
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(var(--nx-cyan-rgb), 0.92);
      white-space: nowrap;
    }

    .nx-audit-affordance {
      position: absolute;
      right: 16px;
      bottom: 14px;
      z-index: 3;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 6px 9px;
      border-radius: 999px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.1);
      background: rgba(var(--nx-bg-rgb), 0.68);
      backdrop-filter: blur(10px);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
      transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
      pointer-events: none;
    }

    .nx-audit-card:hover .nx-audit-affordance,
    .nx-audit-card:focus-visible .nx-audit-affordance {
      transform: translateY(-1px);
      border-color: rgba(var(--nx-cyan-rgb), 0.18);
      background: rgba(var(--nx-bg-rgb), 0.8);
    }

    .nx-audit-affordance-label,
    .nx-audit-affordance-arrow {
      font-family: var(--theme-ui-font);
      font-size: 7.5px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(var(--nx-cyan-rgb), 0.76);
    }

    .nx-audit-affordance-arrow {
      font-size: 9px;
      line-height: 1;
    }

    /* ---- Entry rows ---- */
    .at-entries {
      padding: 6px 0;
    }

    .at-row {
      position: relative;
      display: flex;
      gap: 10px;
      padding: 10px 14px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.05);
      transition: background 0.15s ease;
    }

    .at-row::before {
      content: '';
      position: absolute;
      left: 18px;
      top: 0;
      bottom: 0;
      width: 1px;
      background:
        linear-gradient(
          180deg,
          rgba(var(--nx-cyan-rgb), 0.06) 0%,
          rgba(var(--nx-cyan-rgb), 0.18) 50%,
          rgba(var(--nx-cyan-rgb), 0.06) 100%
        );
      pointer-events: none;
    }

    .at-row:first-child::before {
      top: 15px;
    }

    .at-row:last-child::before {
      bottom: 15px;
    }

    .at-row:last-child {
      border-bottom: none;
    }

    .at-row--warn {
      background: rgba(var(--nx-warning-rgb), 0.08);
      box-shadow: inset 2px 0 0 rgba(var(--nx-warning-rgb), 0.36);
    }

    /* Status dot */
    .at-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      flex-shrink: 0;
      margin-top: 5px;
      position: relative;
      z-index: 1;
    }

    .at-dot--ok {
      background: var(--nx-success);
      box-shadow: 0 0 5px rgba(var(--nx-success-rgb), 0.3);
    }

    .at-dot--warn {
      background: var(--nx-warning);
      box-shadow: 0 0 5px rgba(var(--nx-warning-rgb), 0.35);
    }

    .at-body {
      flex: 1;
      min-width: 0;
    }

    /* Entry head: badge + name + timestamp */
    .at-head {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .at-badge {
      font-family: var(--theme-ui-font);
      font-size: 8.5px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      border: 1px solid;
      white-space: nowrap;
      line-height: 1.3;
    }

    .at-badge--ok {
      color: var(--nx-success);
      background: rgba(var(--nx-success-rgb), 0.1);
      border-color: rgba(var(--nx-success-rgb), 0.2);
    }

    .at-badge--warn {
      color: var(--nx-warning);
      background: rgba(var(--nx-warning-rgb), 0.1);
      border-color: rgba(var(--nx-warning-rgb), 0.2);
    }

    .at-name {
      font-size: 12.5px;
      font-weight: 500;
      color: var(--nx-text);
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .at-ts {
      font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
      font-size: 10px;
      color: var(--nx-muted);
      opacity: 0.82;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }

    .at-desc {
      margin: 4px 0 0;
      font-size: 11px;
      line-height: 1.45;
      color: var(--nx-muted);
      opacity: 0.94;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }

    .at-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 10px;
      margin-top: 4px;
      font-family: var(--theme-ui-font);
      font-size: 9px;
      color: var(--nx-muted);
      opacity: 0.74;
    }

    /* ---- Viewport bottom fade ---- */
    .nx-audit-viewport::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 26px;
      background:
        linear-gradient(
          180deg,
          rgba(8, 11, 17, 0) 0%,
          rgba(8, 11, 17, 0.34) 58%,
          rgba(8, 11, 17, 0.8) 100%
        );
      pointer-events: none;
      z-index: 2;
    }

    html[data-theme-resolved="light"] .at-state-pill {
      border-color: rgba(40, 126, 86, 0.18);
      background: rgba(40, 126, 86, 0.1);
      color: #287e56;
    }

    html[data-theme-resolved="light"] .at-context {
      border-bottom-color: rgba(110, 84, 26, 0.08);
      background:
        linear-gradient(180deg, rgba(184, 134, 11, 0.05), rgba(184, 134, 11, 0.015)),
        rgba(255, 255, 255, 0.28);
    }

    html[data-theme-resolved="light"] .at-context-label {
      color: rgba(98, 72, 20, 0.72);
      opacity: 1;
    }

    html[data-theme-resolved="light"] .at-context-tag {
      border-color: rgba(184, 134, 11, 0.16);
      background: rgba(184, 134, 11, 0.08);
      color: rgba(98, 72, 20, 0.88);
    }

    html[data-theme-resolved="light"] .nx-audit-affordance {
      border-color: rgba(184, 134, 11, 0.1);
      background: rgba(255, 252, 246, 0.76);
      box-shadow: 0 8px 18px rgba(38, 30, 19, 0.08);
    }

    html[data-theme-resolved="light"] .nx-audit-affordance-label,
    html[data-theme-resolved="light"] .nx-audit-affordance-arrow {
      color: rgba(98, 72, 20, 0.72);
    }

    html[data-theme-resolved="light"] .at-row--warn {
      background: rgba(184, 134, 11, 0.11);
      box-shadow: inset 2px 0 0 rgba(184, 134, 11, 0.42);
    }

    html[data-theme-resolved="light"] .at-row::before {
      background:
        linear-gradient(
          180deg,
          rgba(184, 134, 11, 0.05) 0%,
          rgba(184, 134, 11, 0.18) 50%,
          rgba(184, 134, 11, 0.05) 100%
        );
    }

    html[data-theme-resolved="light"] .nx-audit-viewport::after {
      background:
        linear-gradient(
          180deg,
          rgba(250, 245, 235, 0) 0%,
          rgba(250, 245, 235, 0.66) 56%,
          rgba(246, 238, 223, 0.96) 100%
        );
    }

    @media (max-width: 900px) {
      .at-card {
        margin-bottom: 124px;
      }

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

      .at-context-item--wide {
        grid-column: span 2;
      }

      .at-row {
        padding: 9px 13px;
      }

      .at-name {
        font-size: 12px;
      }

      .at-desc {
        font-size: 10.5px;
      }

      .at-ts,
      .at-meta {
        font-size: 9px;
      }
    }

    @media (max-width: 720px) {
      .at-card {
        margin: 8px 10px 114px;
      }

      .at-card-head {
        padding: 10px 12px;
        gap: 5px;
      }

      .at-chip {
        font-size: 8px;
        padding: 3px 6px;
      }

      .at-state-pill {
        display: none;
      }

      .at-context {
        gap: 8px;
        padding: 9px 12px 11px;
      }

      .at-context-label {
        font-size: 7px;
      }

      .at-context-value {
        font-size: 9.5px;
      }

      .at-row {
        padding: 8px 12px;
      }

      .at-head {
        flex-wrap: wrap;
        align-items: center;
      }

      .at-name {
        font-size: 11.5px;
      }

      .at-ts {
        font-size: 9.5px;
      }

      .at-desc {
        font-size: 10px;
        -webkit-line-clamp: 2;
      }

      .at-meta {
        font-size: 8.5px;
      }

      .nx-audit-affordance {
        right: 12px;
        bottom: 12px;
        padding: 6px 9px;
      }
    }

    /* ============ AUDIT TRAIL MODAL ============ */

    .nx-audit-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 9000;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nx-audit-modal-overlay.nx-audit-modal--open {
      opacity: 1;
      visibility: visible;
    }

    .nx-audit-modal {
      width: min(680px, 92vw);
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      border-radius: 14px;
      border: 1px solid var(--nx-card-border);
      background: var(--nx-bg);
      box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(var(--nx-cyan-rgb), 0.06);
      overflow: hidden;
      transform: translateY(24px) scale(0.97);
      transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nx-audit-modal-overlay.nx-audit-modal--open .nx-audit-modal {
      transform: translateY(0) scale(1);
    }

    html[data-theme-resolved="light"] .nx-audit-modal {
      background: var(--nx-surface);
      box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(var(--nx-cyan-rgb), 0.08);
    }

    .nx-audit-modal-chrome {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 14px 18px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.08);
      background: linear-gradient(180deg, rgba(var(--nx-cyan-rgb), 0.035), transparent);
    }

    .nx-audit-modal-title {
      margin-left: 14px;
      font-family: var(--theme-ui-font);
      font-size: 0.66rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--nx-muted);
      flex: 1;
    }

    .nx-audit-modal-close {
      background: none;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.15);
      border-radius: 6px;
      color: var(--nx-muted);
      font-size: 1.2rem;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      line-height: 1;
    }

    .nx-audit-modal-close:hover {
      background: rgba(var(--nx-cyan-rgb), 0.1);
      color: var(--nx-text);
      border-color: rgba(var(--nx-cyan-rgb), 0.3);
    }

    .nx-audit-modal-panel {
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.06);
      background:
        linear-gradient(180deg, rgba(var(--nx-surface-rgb), 0.72), rgba(var(--nx-surface-rgb), 0.46)),
        radial-gradient(circle at top right, rgba(var(--nx-cyan-rgb), 0.07), transparent 34%);
    }

    html[data-theme-resolved="light"] .nx-audit-modal-panel {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 242, 235, 0.94)),
        radial-gradient(circle at top right, rgba(184, 134, 11, 0.08), transparent 38%);
    }

    .nx-audit-modal-head {
      padding: 14px 20px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.07);
      flex-wrap: wrap;
    }

    .nx-audit-modal-head .at-card-title {
      font-size: 0.95rem;
    }

    .nx-audit-modal-head .at-state-pill {
      font-size: 0.62rem;
      padding: 5px 10px;
    }

    .nx-audit-modal-head .at-chips {
      gap: 4px;
      padding: 3px;
      margin-left: auto;
      flex-wrap: wrap;
      justify-content: flex-end;
      max-width: 100%;
    }

    .nx-audit-modal-head .at-chip {
      font-size: 0.68rem;
      padding: 5px 10px;
      border: 0;
      background: transparent;
      cursor: pointer;
    }

    .nx-audit-modal-head .at-chip:hover {
      color: var(--nx-text);
    }

    .nx-audit-modal-head .at-chip.at-chip--active {
      background: var(--nx-cyan);
      color: var(--nx-bg);
      box-shadow: inset 0 0 0 1px rgba(var(--nx-cyan-rgb), 0.18);
    }

    html[data-theme-resolved="light"] .nx-audit-modal-head .at-chip.at-chip--active {
      background: #b8860b;
      color: #fffaf0;
      box-shadow: inset 0 0 0 1px rgba(110, 84, 26, 0.12);
    }

    .nx-audit-modal-contextbar {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px 14px;
      padding: 13px 20px 14px;
    }

    .nx-audit-modal-contextbar .at-context-label {
      font-size: 0.58rem;
    }

    .nx-audit-modal-contextbar .at-context-value {
      font-size: 0.82rem;
    }

    .nx-audit-modal-body {
      flex: 1;
      overflow-y: auto;
      background:
        linear-gradient(180deg, rgba(var(--nx-bg-rgb), 0.02), rgba(var(--nx-bg-rgb), 0.14));
    }

    .nx-audit-modal-list {
      padding: 0;
    }

    .nx-audit-modal-list .at-row {
      gap: 12px;
      padding: 15px 20px;
    }

    .nx-audit-modal-list .at-row::before {
      left: 25px;
      background:
        linear-gradient(
          180deg,
          rgba(var(--nx-cyan-rgb), 0.08) 0%,
          rgba(var(--nx-cyan-rgb), 0.24) 50%,
          rgba(var(--nx-cyan-rgb), 0.08) 100%
        );
    }

    .nx-audit-modal-list .at-row:first-child::before {
      top: 18px;
    }

    .nx-audit-modal-list .at-row:last-child::before {
      bottom: 18px;
    }

    .nx-audit-modal-list .at-row:hover {
      background: rgba(var(--nx-cyan-rgb), 0.035);
    }

    .nx-audit-modal-list .at-row.at-row--warn:hover {
      background: rgba(var(--nx-warning-rgb), 0.11);
    }

    .nx-audit-modal-list .at-dot {
      width: 11px;
      height: 11px;
      margin-top: 7px;
    }

    .nx-audit-modal-list .at-badge {
      font-size: 0.63rem;
      padding: 4px 9px;
      border-radius: 999px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .nx-audit-modal-list .at-name {
      font-size: 0.98rem;
      font-weight: 600;
    }

    .nx-audit-modal-list .at-ts {
      font-size: 0.72rem;
      opacity: 0.78;
    }

    .nx-audit-modal-list .at-desc {
      margin-top: 7px;
      font-size: 0.85rem;
      line-height: 1.62;
      color: rgba(var(--nx-text-rgb), 0.78);
      -webkit-line-clamp: unset;
      display: block;
    }

    .nx-audit-modal-list .at-meta {
      gap: 6px 14px;
      margin-top: 8px;
      font-size: 0.66rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      opacity: 0.72;
    }

    .nx-audit-modal-list .at-row--warn .at-meta span:first-child {
      color: var(--nx-warning);
      opacity: 1;
    }

    html[data-theme-resolved="light"] .nx-audit-modal-list .at-row::before {
      background:
        linear-gradient(
          180deg,
          rgba(184, 134, 11, 0.06) 0%,
          rgba(184, 134, 11, 0.22) 50%,
          rgba(184, 134, 11, 0.06) 100%
        );
    }

    /* Modal scrollbar styling */
    .nx-audit-modal-body::-webkit-scrollbar {
      width: 4px;
    }

    .nx-audit-modal-body::-webkit-scrollbar-track {
      background: transparent;
    }

    .nx-audit-modal-body::-webkit-scrollbar-thumb {
      background: rgba(var(--nx-cyan-rgb), 0.2);
      border-radius: 2px;
    }

    /* Hidden rows during filter */
    .nx-audit-modal-list .at-row[hidden] {
      display: none;
    }

    @media (max-width: 600px) {
      .nx-audit-modal {
        width: 96vw;
        max-height: 90vh;
        border-radius: 10px;
      }

      .nx-audit-modal-head {
        padding: 12px 14px;
      }

      .nx-audit-modal-head .at-card-title {
        font-size: 0.88rem;
      }

      .nx-audit-modal-head .at-chips {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
      }

      .nx-audit-modal-contextbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 11px 14px 12px;
      }

      .nx-audit-modal-contextbar .at-context-item--wide {
        grid-column: span 2;
      }

      .nx-audit-modal-list .at-row {
        padding: 13px 14px;
      }

      .nx-audit-modal-list .at-name {
        font-size: 0.88rem;
      }

      .nx-audit-modal-list .at-desc {
        font-size: 0.8rem;
      }

      .nx-audit-modal-list .at-meta {
        font-size: 0.62rem;
      }
    }

    /* ============ VALUATION OUTPUT PREVIEW ============ */

    .nx-results-card {
      cursor: pointer;
      transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                  border-color 0.4s ease,
                  box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nx-results-card:focus-visible {
      outline: 2px solid rgba(var(--nx-cyan-rgb), 0.75);
      outline-offset: 4px;
    }

    html[data-theme-resolved="light"] .nx-results-card:focus-visible {
      outline-color: rgba(184, 134, 11, 0.72);
    }

    .nx-results-card:hover {
      transform: translateY(-2px) scale(1.008);
      box-shadow:
        0 26px 68px rgba(0, 0, 0, 0.2),
        0 0 42px rgba(var(--nx-cyan-rgb), 0.05);
    }

    .nx-results-card:hover .nx-audit-affordance,
    .nx-results-card:focus-visible .nx-audit-affordance {
      transform: translateY(-1px);
      border-color: rgba(var(--nx-cyan-rgb), 0.18);
      background: rgba(var(--nx-bg-rgb), 0.8);
    }

    .nx-results-viewport {
      position: absolute;
      left: 0;
      right: 0;
      top: 44px;
      bottom: 0;
      overflow: hidden;
      z-index: 1;
    }

    .rv-card {
      margin: 10px 12px 68px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.11);
      border-radius: 12px;
      background:
        linear-gradient(180deg, rgba(var(--nx-surface-rgb), 0.7), rgba(var(--nx-surface-rgb), 0.54)),
        radial-gradient(circle at top right, rgba(var(--nx-cyan-rgb), 0.08), transparent 34%);
      overflow: hidden;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 30px rgba(0, 0, 0, 0.16);
    }

    html[data-theme-resolved="light"] .rv-card {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 235, 0.92)),
        radial-gradient(circle at top right, rgba(184, 134, 11, 0.08), transparent 36%);
      border-color: rgba(110, 84, 26, 0.08);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 12px 28px rgba(30, 24, 17, 0.08);
    }

    .rv-card-head {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 11px 12px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.08);
    }

    .rv-chart-icon {
      color: var(--nx-cyan);
      flex-shrink: 0;
    }

    .rv-card-title {
      font-family: var(--theme-ui-font);
      font-size: 11px;
      font-weight: 700;
      color: var(--nx-text);
      letter-spacing: 0.02em;
      margin-right: 8px;
      flex: 0 0 auto;
    }

    .rv-state-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.16);
      background: rgba(var(--nx-cyan-rgb), 0.1);
      font-family: var(--theme-ui-font);
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: rgba(var(--nx-cyan-rgb), 0.92);
      white-space: nowrap;
      margin-left: auto;
    }

    .rv-context {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px 10px;
      padding: 10px 14px 12px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.07);
      background:
        linear-gradient(180deg, rgba(var(--nx-cyan-rgb), 0.04), rgba(var(--nx-cyan-rgb), 0.014)),
        rgba(var(--nx-bg-rgb), 0.15);
    }

    .rv-context-item {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .rv-context-label {
      font-family: var(--theme-ui-font);
      font-size: 7.5px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--nx-muted);
      opacity: 0.72;
    }

    .rv-context-value {
      font-family: var(--theme-ui-font);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.01em;
      color: var(--nx-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rv-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      padding: 12px 14px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.06);
    }

    .rv-market {
      display: grid;
      gap: 10px;
      padding: 12px 14px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.06);
      background:
        linear-gradient(180deg, rgba(var(--nx-cyan-rgb), 0.04), rgba(var(--nx-cyan-rgb), 0.015)),
        rgba(var(--nx-surface-rgb), 0.18);
    }

    .rv-market-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
    }

    .rv-market-title {
      font-family: var(--theme-ui-font);
      font-size: 7.5px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--nx-muted);
      opacity: 0.78;
    }

    .rv-market-date {
      font-size: 9px;
      color: var(--nx-muted);
      opacity: 0.78;
      white-space: nowrap;
    }

    .rv-market-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .rv-market-item {
      display: grid;
      gap: 4px;
      padding: 9px 10px;
      border-radius: 10px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.08);
      background: rgba(var(--nx-surface-rgb), 0.4);
    }

    .rv-market-item--variance {
      border-color: rgba(var(--nx-warning-rgb), 0.16);
      background: rgba(var(--nx-warning-rgb), 0.08);
    }

    .rv-market-label {
      font-family: var(--theme-ui-font);
      font-size: 7px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--nx-muted);
      opacity: 0.74;
    }

    .rv-market-value {
      font-family: var(--theme-ui-font);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--nx-text);
      font-variant-numeric: tabular-nums;
    }

    .rv-approval {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 14px 12px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.06);
      background:
        linear-gradient(180deg, rgba(var(--nx-success-rgb), 0.08), rgba(var(--nx-success-rgb), 0.03)),
        rgba(var(--nx-surface-rgb), 0.2);
    }

    .rv-approval-main {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .rv-approval-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid rgba(var(--nx-success-rgb), 0.18);
      background: rgba(var(--nx-success-rgb), 0.12);
      font-family: var(--theme-ui-font);
      font-size: 7.5px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--nx-success);
      white-space: nowrap;
    }

    .rv-approval-reviewer {
      font-family: var(--theme-ui-font);
      font-size: 10px;
      font-weight: 600;
      color: var(--nx-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rv-approval-ts {
      font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
      font-size: 9px;
      color: var(--nx-muted);
      opacity: 0.82;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }

    .rv-metric {
      min-width: 0;
      display: grid;
      gap: 3px;
      padding: 9px 10px 10px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.08);
      border-radius: 10px;
      background: rgba(var(--nx-surface-rgb), 0.42);
    }

    .rv-metric-label {
      font-family: var(--theme-ui-font);
      font-size: 7.5px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--nx-muted);
      opacity: 0.72;
    }

    .rv-metric-value {
      font-family: var(--theme-ui-font);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--nx-text);
      font-variant-numeric: tabular-nums;
    }

    .rv-metric-note {
      font-size: 9px;
      line-height: 1.35;
      color: var(--nx-muted);
      opacity: 0.78;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rv-waterfall {
      padding: 12px 14px 10px;
    }

    .rv-section-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .rv-section-title {
      font-family: var(--theme-ui-font);
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--nx-text);
    }

    .rv-section-caption {
      font-size: 9px;
      color: var(--nx-muted);
      opacity: 0.74;
    }

    .rv-wf-head,
    .rv-wf-row {
      display: grid;
      grid-template-columns: 110px 76px minmax(0, 1fr) 58px;
      align-items: center;
      gap: 10px;
    }

    .rv-wf-head {
      padding: 0 0 8px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.06);
      margin-bottom: 4px;
    }

    .rv-wf-head-label,
    .rv-wf-head-share,
    .rv-wf-head-track,
    .rv-wf-head-value {
      font-family: var(--theme-ui-font);
      font-size: 7px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--nx-muted);
      opacity: 0.74;
    }

    .rv-wf-head-value {
      text-align: right;
    }

    .rv-wf-row {
      padding: 7px 0;
    }

    .rv-wf-meta {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .rv-wf-name {
      font-size: 10px;
      font-weight: 600;
      color: var(--nx-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rv-wf-sub {
      font-size: 8.5px;
      color: var(--nx-muted);
      opacity: 0.72;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rv-wf-share {
      font-family: var(--theme-ui-font);
      font-size: 8.5px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--nx-muted);
      opacity: 0.8;
      white-space: nowrap;
    }

    .rv-wf-track {
      position: relative;
      height: 10px;
      border-radius: 999px;
      background: rgba(var(--nx-text-rgb), 0.08);
      overflow: hidden;
    }

    .rv-wf-fill {
      display: block;
      height: 100%;
      border-radius: 999px;
      min-width: 10px;
    }

    .rv-wf-fill--forecast {
      background: linear-gradient(90deg, rgba(var(--nx-cyan-rgb), 0.78), rgba(var(--nx-cyan-rgb), 0.96));
    }

    .rv-wf-fill--terminal {
      background: linear-gradient(90deg, rgba(var(--nx-success-rgb), 0.68), rgba(var(--nx-success-rgb), 0.9));
    }

    .rv-wf-fill--negative {
      background: linear-gradient(90deg, rgba(var(--nx-warning-rgb), 0.68), rgba(var(--nx-warning-rgb), 0.92));
    }

    .rv-wf-fill--positive {
      background: linear-gradient(90deg, rgba(var(--nx-success-rgb), 0.56), rgba(var(--nx-success-rgb), 0.82));
    }

    .rv-wf-fill--total {
      background: linear-gradient(90deg, rgba(var(--nx-cyan-rgb), 0.92), rgba(var(--nx-success-rgb), 0.82));
    }

    .rv-wf-fill--w08 {
      width: 8%;
    }

    .rv-wf-fill--w014 {
      width: 1.4%;
    }

    .rv-wf-fill--w39 {
      width: 39%;
    }

    .rv-wf-fill--w61 {
      width: 61%;
    }

    .rv-wf-fill--w100 {
      width: 100%;
    }

    .rv-wf-row--negative .rv-wf-track {
      display: flex;
      justify-content: flex-end;
    }

    .rv-wf-row--total {
      margin-top: 4px;
      padding-top: 10px;
      border-top: 1px solid rgba(var(--nx-cyan-rgb), 0.08);
    }

    .rv-wf-row--total .rv-wf-name,
    .rv-wf-row--total .rv-wf-value,
    .rv-wf-row--total .rv-wf-share {
      font-weight: 700;
      color: var(--nx-text);
      opacity: 1;
    }

    .rv-wf-value {
      font-family: var(--theme-ui-font);
      font-size: 10.5px;
      font-weight: 600;
      color: var(--nx-text);
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    .rv-note {
      display: grid;
      gap: 3px;
      padding: 11px 14px 13px;
      border-top: 1px solid rgba(var(--nx-cyan-rgb), 0.07);
      background: rgba(var(--nx-cyan-rgb), 0.03);
    }

    .rv-note-label {
      font-family: var(--theme-ui-font);
      font-size: 7.5px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--nx-muted);
      opacity: 0.74;
    }

    .rv-note-value {
      font-size: 10px;
      line-height: 1.45;
      color: var(--nx-muted);
      opacity: 0.9;
    }

    html[data-theme-resolved="light"] .rv-state-pill {
      border-color: rgba(184, 134, 11, 0.16);
      background: rgba(184, 134, 11, 0.08);
      color: rgba(98, 72, 20, 0.88);
    }

    html[data-theme-resolved="light"] .rv-context {
      border-bottom-color: rgba(110, 84, 26, 0.08);
      background:
        linear-gradient(180deg, rgba(184, 134, 11, 0.05), rgba(184, 134, 11, 0.015)),
        rgba(255, 255, 255, 0.28);
    }

    html[data-theme-resolved="light"] .rv-market {
      border-bottom-color: rgba(110, 84, 26, 0.08);
      background:
        linear-gradient(180deg, rgba(184, 134, 11, 0.05), rgba(184, 134, 11, 0.015)),
        rgba(255, 255, 255, 0.26);
    }

    html[data-theme-resolved="light"] .rv-market-title,
    html[data-theme-resolved="light"] .rv-market-label {
      color: rgba(98, 72, 20, 0.72);
      opacity: 1;
    }

    html[data-theme-resolved="light"] .rv-wf-head-label,
    html[data-theme-resolved="light"] .rv-wf-head-share,
    html[data-theme-resolved="light"] .rv-wf-head-track,
    html[data-theme-resolved="light"] .rv-wf-head-value {
      color: rgba(98, 72, 20, 0.72);
      opacity: 1;
    }

    html[data-theme-resolved="light"] .rv-market-item {
      border-color: rgba(110, 84, 26, 0.08);
      background: rgba(255, 255, 255, 0.52);
    }

    html[data-theme-resolved="light"] .rv-market-item--variance {
      border-color: rgba(184, 134, 11, 0.14);
      background: rgba(184, 134, 11, 0.08);
    }

    html[data-theme-resolved="light"] .rv-approval {
      border-bottom-color: rgba(110, 84, 26, 0.08);
      background:
        linear-gradient(180deg, rgba(40, 126, 86, 0.1), rgba(40, 126, 86, 0.035)),
        rgba(255, 255, 255, 0.32);
    }

    html[data-theme-resolved="light"] .rv-approval-pill {
      border-color: rgba(40, 126, 86, 0.16);
      background: rgba(40, 126, 86, 0.1);
      color: #287e56;
    }

    html[data-theme-resolved="light"] .rv-context-label,
    html[data-theme-resolved="light"] .rv-metric-label,
    html[data-theme-resolved="light"] .rv-note-label {
      color: rgba(98, 72, 20, 0.72);
      opacity: 1;
    }

    html[data-theme-resolved="light"] .rv-metric {
      border-color: rgba(110, 84, 26, 0.08);
      background: rgba(255, 255, 255, 0.5);
    }

    html[data-theme-resolved="light"] .rv-wf-track {
      background: rgba(110, 84, 26, 0.08);
    }

    html[data-theme-resolved="light"] .rv-wf-row--total {
      border-top-color: rgba(110, 84, 26, 0.08);
    }

    html[data-theme-resolved="light"] .rv-note {
      border-top-color: rgba(110, 84, 26, 0.08);
      background: rgba(184, 134, 11, 0.035);
    }

    .nx-results-modal {
      width: min(760px, 94vw);
    }

    .nx-results-modal .nx-audit-modal-body {
      background:
        linear-gradient(180deg, rgba(var(--nx-bg-rgb), 0.02), rgba(var(--nx-bg-rgb), 0.14));
    }

    .rv-modal-shell {
      display: grid;
      gap: 0;
    }

    .rv-modal-panel {
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.06);
      background:
        linear-gradient(180deg, rgba(var(--nx-surface-rgb), 0.72), rgba(var(--nx-surface-rgb), 0.46)),
        radial-gradient(circle at top right, rgba(var(--nx-cyan-rgb), 0.07), transparent 34%);
    }

    html[data-theme-resolved="light"] .rv-modal-panel {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 242, 235, 0.94)),
        radial-gradient(circle at top right, rgba(184, 134, 11, 0.08), transparent 38%);
    }

    .rv-card-head--modal {
      padding: 14px 20px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.07);
    }

    .rv-card-head--modal .rv-card-title {
      font-size: 0.95rem;
    }

    .rv-card-head--modal .rv-state-pill {
      font-size: 0.62rem;
      padding: 5px 10px;
      margin-left: 0;
    }

    .rv-approval--modal {
      padding: 13px 20px 14px;
    }

    .rv-approval--modal .rv-approval-pill {
      font-size: 0.62rem;
      padding: 5px 10px;
    }

    .rv-approval--modal .rv-approval-reviewer {
      font-size: 0.82rem;
    }

    .rv-approval--modal .rv-approval-ts {
      font-size: 0.72rem;
    }

    .rv-context--modal {
      gap: 10px 14px;
      padding: 13px 20px 14px;
    }

    .rv-context--modal .rv-context-label {
      font-size: 0.58rem;
    }

    .rv-context--modal .rv-context-value {
      font-size: 0.82rem;
    }

    .rv-metrics--modal {
      gap: 12px;
      padding: 16px 20px 18px;
    }

    .rv-metrics--modal .rv-metric {
      padding: 12px;
      border-radius: 12px;
    }

    .rv-metrics--modal .rv-metric-value {
      font-size: 1.15rem;
    }

    .rv-market--modal {
      padding: 14px 20px 16px;
    }

    .rv-market--modal .rv-market-value {
      font-size: 1rem;
    }

    .rv-sections {
      display: grid;
      gap: 0;
    }

    .rv-section {
      padding: 20px;
      border-bottom: 1px solid rgba(var(--nx-cyan-rgb), 0.06);
    }

    .rv-section:last-child {
      border-bottom: none;
    }

    .rv-section--waterfall .rv-section-head,
    .rv-section--sensitivity .rv-section-head,
    .rv-section--scenarios .rv-section-head {
      margin-bottom: 14px;
    }

    .rv-section--waterfall .rv-section-title,
    .rv-section--sensitivity .rv-section-title,
    .rv-section--scenarios .rv-section-title {
      font-size: 0.68rem;
    }

    .rv-section--waterfall .rv-section-caption,
    .rv-section--sensitivity .rv-section-caption,
    .rv-section--scenarios .rv-section-caption {
      font-size: 0.76rem;
    }

    .rv-waterfall--modal {
      padding: 0;
    }

    .rv-waterfall--modal .rv-wf-head,
    .rv-waterfall--modal .rv-wf-row {
      grid-template-columns: 154px 104px minmax(0, 1fr) 82px;
      gap: 14px;
    }

    .rv-waterfall--modal .rv-wf-head {
      padding-bottom: 10px;
      margin-bottom: 6px;
    }

    .rv-waterfall--modal .rv-wf-head-label,
    .rv-waterfall--modal .rv-wf-head-share,
    .rv-waterfall--modal .rv-wf-head-track,
    .rv-waterfall--modal .rv-wf-head-value {
      font-size: 0.62rem;
    }

    .rv-waterfall--modal .rv-wf-row {
      padding: 9px 0;
    }

    .rv-waterfall--modal .rv-wf-name {
      font-size: 0.88rem;
    }

    .rv-waterfall--modal .rv-wf-sub {
      font-size: 0.72rem;
    }

    .rv-waterfall--modal .rv-wf-share {
      font-size: 0.72rem;
    }

    .rv-waterfall--modal .rv-wf-track {
      height: 12px;
    }

    .rv-waterfall--modal .rv-wf-value {
      font-size: 0.82rem;
    }

    .rv-sensitivity-grid {
      display: grid;
      gap: 8px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.08);
      border-radius: 14px;
      padding: 14px;
      background: rgba(var(--nx-surface-rgb), 0.4);
    }

    .rv-matrix-head,
    .rv-matrix-row {
      display: grid;
      grid-template-columns: 76px repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .rv-matrix-axis,
    .rv-matrix-col,
    .rv-matrix-label,
    .rv-matrix-cell {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      border-radius: 10px;
      font-family: var(--theme-ui-font);
      font-variant-numeric: tabular-nums;
    }

    .rv-matrix-axis,
    .rv-matrix-col,
    .rv-matrix-label {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--nx-muted);
      background: rgba(var(--nx-text-rgb), 0.04);
    }

    .rv-matrix-cell {
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--nx-text);
      background: rgba(var(--nx-success-rgb), 0.08);
      border: 1px solid rgba(var(--nx-success-rgb), 0.08);
    }

    .rv-matrix-cell--active {
      background: linear-gradient(180deg, rgba(var(--nx-cyan-rgb), 0.88), rgba(var(--nx-cyan-rgb), 0.72));
      color: var(--nx-bg);
      border-color: rgba(var(--nx-cyan-rgb), 0.24);
      box-shadow: 0 10px 24px rgba(var(--nx-cyan-rgb), 0.14);
    }

    .rv-scenario-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .rv-scenario-card {
      display: grid;
      gap: 8px;
      padding: 14px;
      border-radius: 14px;
      border: 1px solid rgba(var(--nx-cyan-rgb), 0.08);
      background: rgba(var(--nx-surface-rgb), 0.42);
    }

    .rv-scenario-card--active {
      border-color: rgba(var(--nx-cyan-rgb), 0.18);
      background:
        linear-gradient(180deg, rgba(var(--nx-cyan-rgb), 0.1), rgba(var(--nx-cyan-rgb), 0.05)),
        rgba(var(--nx-surface-rgb), 0.44);
    }

    .rv-scenario-name {
      font-family: var(--theme-ui-font);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--nx-muted);
    }

    .rv-scenario-price {
      font-family: var(--theme-ui-font);
      font-size: 1.12rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--nx-text);
      font-variant-numeric: tabular-nums;
    }

    .rv-scenario-note {
      font-size: 0.78rem;
      line-height: 1.5;
      color: var(--nx-muted);
      opacity: 0.84;
    }

    html[data-theme-resolved="light"] .rv-sensitivity-grid,
    html[data-theme-resolved="light"] .rv-scenario-card {
      border-color: rgba(110, 84, 26, 0.08);
      background: rgba(255, 255, 255, 0.5);
    }

    html[data-theme-resolved="light"] .rv-matrix-axis,
    html[data-theme-resolved="light"] .rv-matrix-col,
    html[data-theme-resolved="light"] .rv-matrix-label {
      background: rgba(110, 84, 26, 0.05);
      color: rgba(98, 72, 20, 0.72);
    }

    html[data-theme-resolved="light"] .rv-matrix-cell {
      background: rgba(40, 126, 86, 0.08);
      border-color: rgba(40, 126, 86, 0.06);
    }

    html[data-theme-resolved="light"] .rv-matrix-cell--active {
      background: linear-gradient(180deg, rgba(184, 134, 11, 0.92), rgba(184, 134, 11, 0.74));
      color: #fffaf0;
      border-color: rgba(110, 84, 26, 0.12);
      box-shadow: 0 10px 24px rgba(184, 134, 11, 0.14);
    }

    html[data-theme-resolved="light"] .rv-scenario-card--active {
      border-color: rgba(184, 134, 11, 0.16);
      background:
        linear-gradient(180deg, rgba(184, 134, 11, 0.1), rgba(184, 134, 11, 0.045)),
        rgba(255, 255, 255, 0.54);
    }

    @media (max-width: 900px) {
      .rv-context,
      .rv-approval,
      .rv-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

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

      .rv-wf-head,
      .rv-wf-row {
        grid-template-columns: 92px 68px minmax(0, 1fr) 54px;
      }

      .rv-wf-name {
        font-size: 9.5px;
      }

      .rv-wf-share {
        font-size: 8px;
      }

      .rv-note-value {
        font-size: 9.5px;
      }

      .rv-scenario-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 720px) {
      .rv-card {
        margin: 8px 10px 64px;
      }

      .rv-card-head {
        padding: 10px 12px;
      }

      .rv-state-pill {
        display: none;
      }

      .rv-context {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 9px 12px 11px;
      }

      .rv-approval {
        padding: 9px 12px 11px;
        flex-wrap: wrap;
        gap: 6px;
      }

      .rv-context-label {
        font-size: 7px;
      }

      .rv-context-value {
        font-size: 9.5px;
      }

      .rv-approval-pill {
        font-size: 7px;
      }

      .rv-approval-reviewer,
      .rv-approval-ts {
        font-size: 8.5px;
      }

      .rv-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 10px 12px;
      }

      .rv-market {
        gap: 8px;
        padding: 10px 12px;
      }

      .rv-market-grid {
        gap: 7px;
      }

      .rv-market-item {
        padding: 8px 9px;
      }

      .rv-market-value {
        font-size: 12px;
      }

      .rv-metric {
        padding: 8px 9px 9px;
      }

      .rv-metric-value {
        font-size: 12.5px;
      }

      .rv-metric-note {
        font-size: 8.5px;
      }

      .rv-waterfall {
        padding: 10px 12px 9px;
      }

      .rv-wf-head,
      .rv-wf-row {
        grid-template-columns: 86px minmax(0, 1fr) 48px;
        gap: 8px;
      }

      .rv-wf-head-share,
      .rv-wf-share {
        display: none;
      }

      .rv-wf-head-label,
      .rv-wf-head-track,
      .rv-wf-head-value {
        font-size: 6.5px;
      }

      .rv-wf-name {
        font-size: 9px;
      }

      .rv-wf-sub,
      .rv-wf-value,
      .rv-note-value {
        font-size: 8.5px;
      }
    }

    @media (max-width: 480px) {
      .rv-context {
        grid-template-columns: 1fr;
      }

      .rv-metrics {
        grid-template-columns: 1fr;
      }

      .rv-market-grid {
        grid-template-columns: 1fr;
      }

      .rv-approval-ts {
        width: 100%;
      }
    }

    @media (max-width: 600px) {
      .nx-results-modal {
        width: 96vw;
      }

      .rv-context--modal,
      .rv-approval--modal,
      .rv-metrics--modal {
        padding-left: 14px;
        padding-right: 14px;
      }

      .rv-market--modal {
        padding-left: 14px;
        padding-right: 14px;
      }

      .rv-approval--modal {
        grid-template-columns: none;
      }

      .rv-market-grid {
        grid-template-columns: 1fr;
      }

      .rv-card-head--modal {
        padding: 12px 14px;
      }

      .rv-section {
        padding: 14px;
      }

      .rv-waterfall--modal .rv-wf-head,
      .rv-waterfall--modal .rv-wf-row {
        grid-template-columns: 100px 72px minmax(0, 1fr) 58px;
        gap: 10px;
      }

      .rv-matrix-head,
      .rv-matrix-row {
        grid-template-columns: 56px repeat(3, minmax(0, 1fr));
        gap: 6px;
      }

      .rv-matrix-axis,
      .rv-matrix-col,
      .rv-matrix-label,
      .rv-matrix-cell {
        min-height: 34px;
        font-size: 0.68rem;
      }
    }
