    /* ── TOP NAV ── */
    .nav {
      background: var(--bg);
      border-bottom: 0.5px solid var(--border);
      padding: 0 2rem;
      height: var(--topbar-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .nav-brand { display: flex; align-items: center; gap: 20px; }

    /* ── Axfolio AX brand mark ──────────────────────────────────────────
       Chrome-beveled AX with blue edge glow (transparent PNG). A CSS
       drop-shadow animation pulses the blue glow outward, making the
       static image feel "alive." Respects prefers-reduced-motion. */
    .nav-logo {
      width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      background: transparent;
    }
    .nav-logo img {
      width: 100%; height: 100%;
      object-fit: contain;
      animation: axGlowPulse 3.2s ease-in-out infinite;
      will-change: filter;
    }
    .nav-logo:hover img { animation-duration: 1.6s; }

    @keyframes axGlowPulse {
      0%, 100% {
        filter:
          drop-shadow(0 0 2px rgba(70, 160, 255, 0.45))
          drop-shadow(0 0 6px rgba(70, 160, 255, 0.28));
      }
      50% {
        filter:
          drop-shadow(0 0 6px rgba(120, 195, 255, 0.85))
          drop-shadow(0 0 14px rgba(70, 160, 255, 0.6));
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .nav-logo img,
      .auth-logo-icon img,
      .logo-icon img { animation: none; }
    }
    .nav-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
    .nav-badge {
      font-size: 10px; font-weight: 500; padding: 2px 7px;
      border-radius: 10px; background: var(--purple-bg); color: var(--purple-mid);
    }
    .nav-theme-btn {
      width: 28px; height: 28px; border-radius: 6px;
      background: transparent; border: 0.5px solid var(--border);
      color: var(--text-secondary); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
    }
    .nav-theme-btn:hover { background: var(--bg-secondary); color: var(--text-primary); }
    .nav-disclaimer {
      font-size: 11px; color: var(--text-tertiary);
      max-width: 480px; text-align: right; line-height: 1.4;
      display: none;
    }
    @media (min-width: 768px) { .nav-disclaimer { display: block; } }

    /* ── LAYOUT ── */
    .page { margin: 0 0 0 var(--sidebar-w); padding: 2rem 1.5rem; transition: margin-left 0.18s ease; }

    /* ── FIRM SIDEBAR ── */
    .app-sidebar {
      position: fixed; left: 0; top: var(--topbar-h); bottom: 0;
      width: var(--sidebar-w); background: var(--sb-bg);
      border-right: 1px solid var(--border-md);
      display: flex; flex-direction: column; z-index: 90; overflow-y: auto;
      transition: width 0.18s ease;
    }
    .sb-nav { display: flex; flex-direction: column; padding: 10px 0; flex: 1; }
    .sb-section-label {
      font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
      text-transform: uppercase; color: var(--sb-section-label);
      padding: 8px 14px 4px;
    }
    .sb-item {
      display: flex; align-items: center; gap: 9px; width: 100%;
      padding: 8px 14px; font-size: 13px; color: var(--sb-item-default);
      background: none; border: none; cursor: pointer; text-align: left;
      transition: background 0.12s, color 0.12s; white-space: nowrap; position: relative;
    }
    .sb-item:hover { background: var(--sb-item-hover-bg); color: var(--sb-item-active); }
    .sb-item--active { background: var(--sb-item-active-bg); color: var(--sb-item-active); font-weight: 500; box-shadow: inset 2.5px 0 0 var(--blue-mid); }
    .sb-item svg { flex-shrink: 0; opacity: 0.7; }
    .sb-item--active svg, .sb-item:hover svg { opacity: 1; }
    .sb-divider { height: 0.5px; background: var(--sb-divider); margin: 6px 10px; }
    .sb-badge {
      margin-left: auto; background: var(--red-mid); color: #fff;
      font-size: 10px; font-weight: 600; padding: 1px 6px;
      border-radius: 10px; min-width: 18px; text-align: center;
    }
    .sb-bottom { padding: 8px 0 12px; border-top: 0.5px solid var(--sb-divider); }
    /* Sidebar collapse */
    body.sb--collapsed .app-sidebar { width: 0; overflow: hidden; border-right: none; }
    .sb-collapse-btn {
      position: fixed; left: calc(var(--sidebar-w) - 1px); top: calc(var(--topbar-h) + 8px);
      z-index: 95; width: 16px; height: 28px;
      background: var(--bg-secondary); border: 1px solid var(--border-md);
      border-left: none; border-radius: 0 6px 6px 0;
      display: none; align-items: center; justify-content: center;
      cursor: pointer; padding: 0; color: var(--text-tertiary);
      transition: left 0.18s ease, background 0.12s;
    }
    .sb-collapse-btn:hover { color: var(--text-primary); background: var(--bg); }
    .sb-collapse-btn svg { transition: transform 0.18s ease; flex-shrink: 0; }
    body.sb--collapsed .sb-collapse-btn { left: 0; border-left: 0.5px solid var(--border-md); }
    body.sb--collapsed .sb-collapse-btn svg { transform: rotate(180deg); }
    /* Placeholder empty states for sidebar views */
    .sb-empty-state {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 60px 24px; text-align: center; min-height: 280px;
    }
    .sb-empty-icon {
      width: 48px; height: 48px; border-radius: 12px; background: var(--bg-secondary);
      display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
      color: var(--text-tertiary);
    }
    .sb-empty-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
    .sb-empty-sub { font-size: 13px; color: var(--text-tertiary); line-height: 1.5; max-width: 260px; }
    /* Client row improvements */
    .cs-avatar {
      width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 600; color: #fff; letter-spacing: 0.02em;
    }
    .cs-row-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
    .cs-score {
      font-size: 12px; font-weight: 600; color: var(--text-secondary);
      min-width: 24px; text-align: right;
    }
    .cs-risk-pill {
      font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 10px;
      letter-spacing: 0.03em;
    }
    .cs-risk-pill--high { background: var(--red-bg); color: var(--red-text); }
    .cs-risk-pill--medium { background: var(--amber-bg); color: var(--amber-text); }
    .cs-risk-pill--low { background: var(--green-bg); color: var(--green-text); }

