/* ═══════════════════════════════════════════════════════════════════════════
   NobleNeo v2 design tokens — extracted from sidebar-prototype.html
   ═══════════════════════════════════════════════════════════════════════════
   Import once in root.jsx (or via app.css) BEFORE any v2/new/ component is
   rendered. All classes here are prefixed `nv2-` to avoid clashing with the
   existing legacy `v2-` classes from `app/components/v2/index.jsx`.

   - Colour ramps  : --nv2-bg, --nv2-ink, --nv2-brand, --nv2-accent, etc.
   - Hub accents   : set --nv2-hub-accent on a parent to colour buttons,
                     active states, focus rings, gradients per-hub.
   - Typography    : Sora (display) + Manrope (body) loaded via Google Fonts
                     in tokens.css's @import or in root.jsx.
   - Shadows       : 5-step shadow scale.
   - Radius        : --nv2-radius-sm/md/lg.
   - Animations    : @keyframes fadeIn, slideDown, toastIn, pulse, hubFade.
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  /* ── Surface ─────────────────────────────────── */
  --nv2-bg:            #f6f7fb;
  --nv2-bg-2:          #eef0f6;
  --nv2-panel:         #ffffff;
  --nv2-panel-2:       #fafbff;
  --nv2-rail:          #0b1220;
  --nv2-rail-2:        #131c2f;

  /* ── Foreground ──────────────────────────────── */
  --nv2-rail-fg:       #cbd5e1;
  --nv2-rail-fg-mute:  #6b7693;
  --nv2-ink:           #0f172a;
  --nv2-ink-2:         #475569;
  --nv2-ink-3:         #94a3b8;
  --nv2-ink-4:         #cbd5e1;

  /* ── Borders ────────────────────────────────── */
  --nv2-line:          #e6e8ef;
  --nv2-line-2:        #eef0f6;

  /* ── Brand + accents ────────────────────────── */
  --nv2-brand:         #4361ee;
  --nv2-brand-2:       #5b8def;
  --nv2-brand-soft:    #eaf0ff;
  --nv2-accent:        #ff5d73;
  --nv2-warn:          #f59e0b;
  --nv2-warn-soft:     #fef3c7;
  --nv2-ok:            #10b981;
  --nv2-ok-soft:       #d1fae5;
  --nv2-danger:        #ef4444;
  --nv2-danger-soft:   #fee2e2;

  /* ── Hub accent (override per hub) ──────────── */
  --nv2-hub-accent:    var(--nv2-brand);

  /* ── Shadows ────────────────────────────────── */
  --nv2-shadow-xs:     0 1px 2px rgba(15, 23, 42, 0.04);
  --nv2-shadow-sm:     0 2px 6px rgba(15, 23, 42, 0.06);
  --nv2-shadow-md:     0 8px 24px -8px rgba(15, 23, 42, 0.10);
  --nv2-shadow-lg:     0 24px 60px -20px rgba(15, 23, 42, 0.18);
  --nv2-shadow-xl:     0 40px 100px -30px rgba(15, 23, 42, 0.30);

  /* ── Radii ──────────────────────────────────── */
  --nv2-radius:        12px;
  --nv2-radius-sm:     8px;
  --nv2-radius-lg:     16px;

  /* ── Type ───────────────────────────────────── */
  --nv2-font-display:  'Sora', 'Manrope', system-ui, sans-serif;
  --nv2-font-body:     'Manrope', system-ui, sans-serif;
  --nv2-font-mono:     'Sora', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL — only applied inside .nv2-scope so we don't override the legacy app
   ═══════════════════════════════════════════════════════════════════════════ */
.nv2-scope {
  font-family: var(--nv2-font-body);
  color: var(--nv2-ink);
  background: var(--nv2-bg);
  -webkit-font-smoothing: antialiased;
}
.nv2-scope h1, .nv2-scope h2, .nv2-scope h3, .nv2-scope h4 {
  font-family: var(--nv2-font-display);
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 700;
}
.nv2-scope ::-webkit-scrollbar { width: 8px; height: 8px; }
.nv2-scope ::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.22); border-radius: 999px; }
.nv2-scope ::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.4); }
.nv2-scope ::-webkit-scrollbar-track { background: transparent; }
.nv2-scope mark { background: var(--nv2-brand-soft); color: var(--nv2-brand); padding: 0 2px; border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════════════════
   APP SHELL — Rail + HubPanel + Main
   ═══════════════════════════════════════════════════════════════════════════ */
.nv2-app {
  display: grid;
  grid-template-columns: 72px 296px 1fr;
  height: 100vh;
  overflow: hidden;
  /* The prototype HTML had a `position: fixed; top: 0` "Prototype · NobleNeo
     v2 · …" preview banner across the top, which required reserving 28px at
     the top of .nv2-app and offsetting .nv2-rail by 28px. The deployed shell
     does NOT render that banner, so the reserved 28px showed up as a visible
     grey strip across the top of every page. Remove the offsets so the rail
     and panes fill the viewport edge-to-edge. */
  transition: grid-template-columns 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* When the rail is PINNED open (240px wide and stays), expand the first grid
   column so the HubPanel + Main pane shift right. Without this, the pinned
   rail (position: fixed, z-index: 100) overlaps the panel's leftmost 168px
   and intercepts clicks. Hover-expansion still overlays — see Rail's onClick
   for the auto-collapse-after-hub-click handling. */
.nv2-app.is-rail-pinned {
  grid-template-columns: 240px 296px 1fr;
}
.nv2-pane {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.nv2-hub-panel-col { grid-column: 2; }
.nv2-main-col      { grid-column: 3; }

/* ── Rail ─────────────────────────────────────── */
.nv2-rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 72px;
  background: linear-gradient(180deg, var(--nv2-rail) 0%, var(--nv2-rail-2) 100%);
  color: var(--nv2-rail-fg);
  align-items: stretch;
  padding: 14px 12px;
  gap: 4px;
  z-index: 100;
  overflow: hidden;
  transition: width 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms ease;
  will-change: width;
}
/* Expand the rail only via the JS-controlled .is-hover or .is-pinned classes,
   NOT the native CSS :hover pseudo. JS uses a 120ms hover-intent debounce and
   clears is-hover on hub click — but native :hover would override that and
   keep the rail expanded as long as the cursor is over it, which means after
   clicking a hub button the rail stays at 240px (overlapping the panel) until
   the user moves the mouse fully off the rail. With :hover removed, clicking
   a hub triggers our onClick which sets is-hover=false and the rail collapses
   immediately — the panel becomes accessible. */
.nv2-rail.is-hover, .nv2-rail.is-pinned {
  width: 240px;
  box-shadow: 18px 0 56px -16px rgba(15, 23, 42, 0.42);
}

.nv2-brand-row {
  display: flex; align-items: center; gap: 12px;
  padding: 0 4px; margin-bottom: 8px; height: 40px;
}
.nv2-brand-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--nv2-brand) 0%, #7c3aed 100%);
  display: grid; place-items: center;
  color: white;
  font-family: var(--nv2-font-display);
  font-weight: 800; font-size: 17px;
  letter-spacing: -0.04em;
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}
.nv2-brand-text-wrap {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 200ms ease 60ms, transform 240ms cubic-bezier(0.16, 1, 0.3, 1) 60ms;
  white-space: nowrap;
}
.nv2-rail.is-hover .nv2-brand-text-wrap,
.nv2-rail.is-pinned .nv2-brand-text-wrap { opacity: 1; transform: translateX(0); }
.nv2-brand-text {
  font-family: var(--nv2-font-display);
  font-size: 17px; font-weight: 800;
  color: white; letter-spacing: -0.02em; line-height: 1;
}
.nv2-brand-sub {
  font-size: 10.5px; font-weight: 600;
  color: var(--nv2-rail-fg-mute);
  margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.nv2-rail-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 6px 4px;
}
.nv2-rail-section {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.32);
  padding: 10px 12px 4px;
  white-space: nowrap;
  opacity: 0; transition: opacity 180ms ease 80ms;
}
.nv2-rail.is-hover .nv2-rail-section,
.nv2-rail.is-pinned .nv2-rail-section { opacity: 1; }
.nv2-hub-btn {
  position: relative;
  width: 100%; height: 40px;
  border: 0; background: transparent;
  color: var(--nv2-rail-fg-mute);
  border-radius: 9px;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 0 12px;
  font-family: inherit;
  transition: background 160ms ease, color 160ms ease;
}
.nv2-hub-btn svg {
  width: 19px; height: 19px; stroke-width: 2; flex-shrink: 0;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), color 160ms ease;
}
.nv2-hub-btn:hover { background: rgba(255,255,255,0.06); color: white; }
.nv2-hub-btn:hover svg { transform: scale(1.18); }

/* Per-icon tooltip — surfaces the section name when the rail is collapsed
   so the icon-only state isn't a guessing game. Suppressed once the rail
   itself is hovered/pinned because the in-rail label is already visible. */
.nv2-hub-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: rgba(15, 18, 30, 0.96);
  color: white;
  font-size: 12px; font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 1100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.nv2-hub-btn[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
/* Only suppress the floating tooltip when the rail is *pinned* open. In the
   transient hover-expanded state we still want it — without this, the parent
   .nv2-rail:hover selector cancels the tooltip the moment the cursor enters
   any icon (the icon is a child of the rail), making it look like nothing
   happens on hover. */
.nv2-rail.is-pinned .nv2-hub-btn[data-tooltip]::after { opacity: 0 !important; }
.nv2-hub-btn.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}
.nv2-hub-btn.is-active::before {
  content: '';
  position: absolute;
  left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--nv2-hub-accent, var(--nv2-brand-2));
  box-shadow: 0 0 12px var(--nv2-hub-accent, var(--nv2-brand-2));
}
.nv2-hub-btn.is-active svg { color: var(--nv2-hub-accent, var(--nv2-brand-2)); }
.nv2-hub-label {
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 200ms ease 80ms, transform 240ms cubic-bezier(0.16, 1, 0.3, 1) 80ms;
}
.nv2-rail.is-hover .nv2-hub-label,
.nv2-rail.is-pinned .nv2-hub-label { opacity: 1; transform: translateX(0); }
.nv2-hub-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--nv2-accent);
  color: white;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  line-height: 1.4;
}
.nv2-rail.is-hover .nv2-hub-badge,
.nv2-rail.is-pinned .nv2-hub-badge {
  position: static; margin-left: auto;
  font-size: 10.5px; padding: 2px 7px;
}
.nv2-rail-spacer { flex: 1; }
.nv2-rail-bottom { display: flex; flex-direction: column; gap: 2px; }
.nv2-rail-pin {
  position: absolute;
  top: 22px; right: 14px;
  width: 26px; height: 26px;
  border: 0; background: rgba(255,255,255,0.06);
  color: var(--nv2-rail-fg);
  border-radius: 7px;
  cursor: pointer;
  opacity: 0;
  display: grid; place-items: center;
  transition: opacity 200ms ease 100ms, background 160ms ease;
}
.nv2-rail.is-hover .nv2-rail-pin,
.nv2-rail.is-pinned .nv2-rail-pin { opacity: 1; }
.nv2-rail-pin:hover { background: rgba(255,255,255,0.16); color: white; }
.nv2-rail-pin svg { width: 13px; height: 13px; }
.nv2-rail.is-pinned .nv2-rail-pin { background: var(--nv2-brand); color: white; }

/* ── Hub Panel ─────────────────────────────────── */
.nv2-hub-panel {
  background: var(--nv2-panel);
  border-right: 1px solid var(--nv2-line);
}
.nv2-hub-header {
  position: relative;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--nv2-line-2);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 8%, var(--nv2-panel)) 0%,
    var(--nv2-panel) 70%);
  overflow: hidden;
}
.nv2-hub-header::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 14%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.nv2-hub-eyebrow {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--nv2-hub-accent, var(--nv2-brand));
  margin-bottom: 4px;
}
.nv2-hub-title { font-size: 19px; font-weight: 700; }
.nv2-hub-meta { font-size: 12px; color: var(--nv2-ink-2); margin-top: 2px; }
.nv2-hub-quick-action {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  padding: 7px 12px;
  background: var(--nv2-hub-accent, var(--nv2-brand));
  color: white;
  border: 0; border-radius: 7px;
  font-family: inherit; font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 40%, transparent);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.nv2-hub-quick-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 50%, transparent);
}
.nv2-hub-quick-action svg { width: 13px; height: 13px; }

.nv2-hub-search {
  position: relative;
  margin: 12px 16px 0;
}
.nv2-hub-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 8px;
  border: 1px solid var(--nv2-line);
  background: var(--nv2-panel-2);
  font-family: inherit; font-size: 13px;
  outline: none;
  transition: all 160ms ease;
}
.nv2-hub-search input:focus {
  border-color: var(--nv2-hub-accent, var(--nv2-brand));
  background: white;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 14%, transparent);
}
.nv2-hub-search > svg {
  position: absolute;
  left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--nv2-ink-3);
}
.nv2-hub-list { flex: 1; overflow-y: auto; padding: 8px 0 24px; }

.nv2-pinned-strip { padding: 12px 16px 0; border-bottom: 1px solid var(--nv2-line-2); margin-bottom: 6px; }
.nv2-group-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--nv2-ink-3);
  padding: 6px 4px;
  display: flex; align-items: center; gap: 8px;
}
.nv2-pin-row { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
.nv2-pin-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  background: var(--nv2-panel-2);
  border: 1px solid var(--nv2-line);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--nv2-ink);
  cursor: pointer;
  text-decoration: none;
  transition: all 140ms ease;
  white-space: nowrap;
}
.nv2-pin-chip:hover {
  border-color: var(--nv2-hub-accent, var(--nv2-brand));
  color: var(--nv2-hub-accent, var(--nv2-brand));
  transform: translateY(-1px);
}
.nv2-pin-chip svg { width: 12px; height: 12px; }
.nv2-pin-chip.is-recent { background: white; border-style: dashed; color: var(--nv2-ink-2); }

/* ── Module rows ─────────────────────────────── */
.nv2-module { margin: 0 8px 1px; }
.nv2-module-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 12px;
  border: 0; background: transparent;
  color: var(--nv2-ink);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}
.nv2-module-btn:hover { background: var(--nv2-panel-2); }
.nv2-module-btn.is-expanded {
  background: color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 10%, white);
  color: var(--nv2-hub-accent, var(--nv2-brand));
}
.nv2-module-btn .nv2-chev {
  margin-left: auto;
  transition: transform 200ms ease;
  width: 14px; height: 14px;
  color: var(--nv2-ink-3);
}
.nv2-module-btn.is-expanded .nv2-chev { transform: rotate(90deg); }
.nv2-module-btn .nv2-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.nv2-module-btn .nv2-count {
  font-size: 11px; font-weight: 600;
  color: var(--nv2-ink-3);
  background: var(--nv2-bg);
  padding: 1px 7px;
  border-radius: 999px;
}
.nv2-module-btn.is-expanded .nv2-count {
  background: white;
  color: var(--nv2-hub-accent, var(--nv2-brand));
}
.nv2-module-btn .nv2-alert-dot {
  width: 6px; height: 6px;
  background: var(--nv2-accent);
  border-radius: 50%;
}
.nv2-module-children { max-height: 0; overflow: hidden; transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1); }
.nv2-module-children.is-open { max-height: 800px; }
.nv2-module-children ul { list-style: none; margin: 4px 0 6px; padding: 0; }
.nv2-module-children li a {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 38px;
  font-size: 13px;
  color: var(--nv2-ink-2);
  text-decoration: none;
  border-radius: 6px;
  margin: 0 4px;
  transition: all 120ms ease;
}
.nv2-module-children li a:hover { background: var(--nv2-panel-2); color: var(--nv2-ink); }
.nv2-module-children li a.is-active {
  background: var(--nv2-hub-accent, var(--nv2-brand));
  color: white; font-weight: 600;
}
.nv2-module-children li a .nv2-leaf-badge {
  margin-left: auto;
  background: var(--nv2-accent);
  color: white;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

/* ── Topbar ────────────────────────────────────── */
.nv2-main { background: var(--nv2-bg); }
.nv2-topbar {
  height: 60px;
  background: white;
  border-bottom: 1px solid var(--nv2-line);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.nv2-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--nv2-ink-2);
}
.nv2-breadcrumb a { color: var(--nv2-ink-2); text-decoration: none; }
.nv2-breadcrumb a:hover { color: var(--nv2-brand); }
.nv2-breadcrumb .nv2-crumb-current { color: var(--nv2-ink); font-weight: 600; }
.nv2-breadcrumb .nv2-sep { color: var(--nv2-ink-4); font-weight: 300; }

.nv2-env-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  background: var(--nv2-warn-soft);
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-left: 8px;
}
.nv2-env-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nv2-warn);
  box-shadow: 0 0 8px var(--nv2-warn);
  animation: nv2-pulse 2.4s ease-in-out infinite;
}
@keyframes nv2-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.nv2-path-tag {
  display: inline-flex; align-items: center;
  font-family: var(--nv2-font-mono);
  font-size: 11px; font-weight: 600;
  color: var(--nv2-ink-3);
  background: var(--nv2-bg);
  padding: 3px 9px;
  border-radius: 6px;
  margin-left: 8px;
  letter-spacing: -0.01em;
}
.nv2-path-tag::before {
  content: '⌥';
  margin-right: 5px;
  opacity: 0.5;
  font-weight: 800;
}

.nv2-topbar-search {
  flex: 1; max-width: 460px; margin-left: auto;
  position: relative;
}
.nv2-topbar-search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border-radius: 10px;
  border: 1px solid var(--nv2-line);
  background: var(--nv2-bg);
  font-family: inherit; font-size: 13px;
  outline: none;
  transition: all 160ms ease;
}
.nv2-topbar-search input:focus, .nv2-topbar-search input:hover {
  border-color: var(--nv2-brand); background: white;
}
.nv2-topbar-search > svg {
  position: absolute;
  left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--nv2-ink-3);
}
.nv2-topbar-search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: inherit;
  font-size: 11px; font-weight: 600;
  background: white;
  border: 1px solid var(--nv2-line);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--nv2-ink-2);
}
.nv2-topbar-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--nv2-ink-2);
  transition: all 140ms ease;
  position: relative;
  border: 0; background: transparent;
}
.nv2-topbar-icon:hover { background: var(--nv2-bg); color: var(--nv2-brand); }
.nv2-topbar-icon .nv2-dot {
  position: absolute; top: 9px; right: 10px;
  width: 8px; height: 8px;
  background: var(--nv2-accent);
  border-radius: 50%;
  border: 2px solid white;
}
.nv2-avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv2-brand) 0%, var(--nv2-accent) 100%);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 13px;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: var(--nv2-shadow-sm);
  transition: transform 160ms ease;
}
.nv2-avatar-btn:hover { transform: scale(1.05); }

/* ── Content ───────────────────────────────────── */
.nv2-content { flex: 1; overflow-y: auto; padding: 24px 28px 64px; }

/* Neutralise legacy .app-content-area wrapper used by 122 parent route files
   (e.g. routes/dashboard.jsx wraps <Outlet/> in <div className="app-content-area">).
   Inside the v2 shell that legacy class injects:
     - background: #f5f5f7 !important   → visible grey strip above page content
     - min-height: 100vh                → forces extra blank scroll area
     - padding: 70px 10px 20px @ ≤768px → 70px grey bar at top on mobile
     - animation: fadeIn                → unwanted opacity flash on nav
   Strip all of it when nested inside .nv2-content (or any v2 scope). */
.nv2-scope .app-content-area,
.nv2-content .app-content-area {
  background: transparent !important;
  background-color: transparent !important;
  min-height: auto !important;
  animation: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.nv2-scope .container-fluid,
.nv2-content .container-fluid { padding: 0 !important; }

/* Defense-in-depth: hide any orphaned debug pills (path-tag was removed from
   shell.jsx Topbar in commit bd062cd but the CSS class still exists in this
   file and could re-appear if something imports PathTag from primitives.jsx). */
.nv2-scope .nv2-path-tag,
.nv2-topbar .nv2-path-tag { display: none !important; }
.nv2-page-header {
  margin-bottom: 18px;
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px;
}
.nv2-page-header .nv2-title h1 { font-size: 26px; font-weight: 700; }
.nv2-page-header .nv2-title p { color: var(--nv2-ink-2); font-size: 13.5px; margin: 4px 0 0; }
.nv2-page-actions { display: flex; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRIMITIVES — Buttons, Pills, Avatars, Toast, Stepper
   ═══════════════════════════════════════════════════════════════════════════ */

.nv2-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--nv2-line);
  background: white;
  color: var(--nv2-ink);
  text-decoration: none;
  transition: all 140ms ease;
  white-space: nowrap;
}
.nv2-btn:hover { border-color: var(--nv2-hub-accent, var(--nv2-brand)); color: var(--nv2-hub-accent, var(--nv2-brand)); }
.nv2-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.nv2-btn-primary {
  background: var(--nv2-hub-accent, var(--nv2-brand));
  color: white;
  border-color: var(--nv2-hub-accent, var(--nv2-brand));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 30%, transparent);
}
.nv2-btn-primary:hover {
  filter: brightness(1.08);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 40%, transparent);
}
.nv2-btn-danger { border-color: var(--nv2-danger); color: var(--nv2-danger); }
.nv2-btn-warn { border-color: var(--nv2-warn); color: #92400e; }
.nv2-btn svg { width: 14px; height: 14px; }
.nv2-btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.nv2-btn-block { width: 100%; justify-content: flex-start; }

/* Pills (status indicators) */
.nv2-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
}
.nv2-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.nv2-pill-created     { background: #e0e7ff; color: #3730a3; }
.nv2-pill-created::before { background: #6366f1; }
.nv2-pill-pending     { background: var(--nv2-warn-soft); color: #92400e; }
.nv2-pill-pending::before { background: var(--nv2-warn); }
.nv2-pill-checked     { background: #cffafe; color: #155e75; }
.nv2-pill-checked::before { background: #06b6d4; }
.nv2-pill-held        { background: var(--nv2-danger-soft); color: #991b1b; }
.nv2-pill-held::before { background: var(--nv2-danger); }
.nv2-pill-sent        { background: #ede9fe; color: #5b21b6; }
.nv2-pill-sent::before { background: #7c3aed; }
.nv2-pill-paid        { background: var(--nv2-ok-soft); color: #065f46; }
.nv2-pill-paid::before { background: var(--nv2-ok); }
.nv2-pill-cancelled   { background: #f3f4f6; color: #4b5563; }
.nv2-pill-cancelled::before { background: #9ca3af; }
.nv2-pill-error       { background: var(--nv2-danger-soft); color: #991b1b; }
.nv2-pill-error::before { background: var(--nv2-danger); }
.nv2-pill-locked      { background: #fef3c7; color: #92400e; }
.nv2-pill-locked::before { background: #f59e0b; }
.nv2-pill-kyc-verified { background: var(--nv2-ok-soft); color: #065f46; }
.nv2-pill-kyc-verified::before { background: var(--nv2-ok); }
.nv2-pill-kyc-pending  { background: var(--nv2-warn-soft); color: #92400e; }
.nv2-pill-kyc-pending::before { background: var(--nv2-warn); }
.nv2-pill-kyc-failed   { background: var(--nv2-danger-soft); color: #991b1b; }
.nv2-pill-kyc-failed::before { background: var(--nv2-danger); }
.nv2-pill-high-risk    { background: var(--nv2-danger-soft); color: #991b1b; }
.nv2-pill-high-risk::before { background: var(--nv2-danger); }
.nv2-pill-medium-risk  { background: var(--nv2-warn-soft); color: #92400e; }
.nv2-pill-medium-risk::before { background: var(--nv2-warn); }
.nv2-pill-low-risk     { background: var(--nv2-ok-soft); color: #065f46; }
.nv2-pill-low-risk::before { background: var(--nv2-ok); }
.nv2-pill-candidate    { background: #fef3c7; color: #92400e; }
.nv2-pill-candidate::before { background: #f59e0b; }
.nv2-pill-confirmed    { background: var(--nv2-danger-soft); color: #991b1b; }
.nv2-pill-confirmed::before { background: var(--nv2-danger); }
.nv2-pill-merged       { background: #ede9fe; color: #5b21b6; }
.nv2-pill-merged::before { background: #7c3aed; }
.nv2-pill-rejected     { background: #f3f4f6; color: #4b5563; }
.nv2-pill-rejected::before { background: #9ca3af; }

/* Avatar */
.nv2-avatar {
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv2-brand) 0%, #7c3aed 100%);
  color: white;
  font-weight: 700;
  font-family: var(--nv2-font-display);
  flex-shrink: 0;
}
.nv2-avatar-sm { width: 28px; height: 28px; font-size: 10px; }
.nv2-avatar-md { width: 36px; height: 36px; font-size: 13px; }
.nv2-avatar-lg { width: 44px; height: 44px; font-size: 16px; }
.nv2-avatar-xl { width: 64px; height: 64px; font-size: 22px; }

/* Flag circles */
.nv2-flag {
  display: inline-grid; place-items: center;
  border-radius: 50%;
  font-size: 9px; font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, #4361ee 0%, #7c3aed 100%);
  color: white;
}
.nv2-flag-gb { background: linear-gradient(135deg, #c8102e 50%, #012169 50%); color: white; }
.nv2-flag-ng { background: linear-gradient(90deg, #008751 33.3%, white 33.3% 66.6%, #008751 66.6%); color: #064e3b; }
.nv2-flag-in { background: linear-gradient(180deg, #ff9933 33.3%, white 33.3% 66.6%, #138808 66.6%); color: #1e293b; }
.nv2-flag-us { background: linear-gradient(180deg, #b22234 50%, #3c3b6e 50%); color: white; }
.nv2-flag-fr { background: linear-gradient(90deg, #002395 33.3%, white 33.3% 66.6%, #ed2939 66.6%); color: #1e293b; }
.nv2-flag-de { background: linear-gradient(180deg, #000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); color: white; }
.nv2-flag-ae { background: linear-gradient(180deg, #00732f 33.3%, white 33.3% 66.6%, #000 66.6%); color: white; }
.nv2-flag-ph { background: linear-gradient(135deg, #0038a8 50%, #ce1126 50%); color: white; }
.nv2-flag-pk { background: linear-gradient(90deg, white 25%, #01411c 25%); color: #064e3b; }
.nv2-flag-ke { background: linear-gradient(180deg, #000 33.3%, #b00 33.3% 66.6%, #006600 66.6%); color: white; }
.nv2-flag-mx { background: linear-gradient(90deg, #006847 33.3%, white 33.3% 66.6%, #ce1126 66.6%); color: #1e293b; }
.nv2-flag-eg { background: linear-gradient(180deg, #ce1126 33.3%, white 33.3% 66.6%, #000 66.6%); color: white; }
.nv2-flag-bd { background: #006a4e; color: white; }
.nv2-flag-gh { background: linear-gradient(180deg, #ce1126 33.3%, #fcd116 33.3% 66.6%, #006b3f 66.6%); color: white; }
.nv2-flag-jp { background: white; color: #b00; position: relative; border: 1px solid var(--nv2-line); }

/* Stepper */
.nv2-stepper {
  display: flex; align-items: center;
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 14px 18px;
  margin-bottom: 22px;
}
.nv2-step { display: flex; align-items: center; gap: 10px; flex: 1; position: relative; }
.nv2-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 32px; right: 0; top: 14px;
  height: 2px;
  background: var(--nv2-line);
  z-index: 0;
}
.nv2-step.is-complete:not(:last-child)::after { background: var(--nv2-ok); }
.nv2-step-number {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--nv2-bg);
  color: var(--nv2-ink-3);
  display: grid; place-items: center;
  font-family: var(--nv2-font-display); font-weight: 700; font-size: 13px;
  flex-shrink: 0;
  position: relative; z-index: 1;
  border: 2px solid var(--nv2-bg);
}
.nv2-step.is-active .nv2-step-number {
  background: var(--nv2-hub-accent, var(--nv2-brand));
  color: white;
  border-color: white;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 22%, transparent);
}
.nv2-step.is-complete .nv2-step-number { background: var(--nv2-ok); color: white; border-color: white; }
.nv2-step-text { font-size: 12.5px; }
.nv2-step-text strong {
  font-weight: 700;
  color: var(--nv2-ink-3);
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nv2-step.is-active .nv2-step-text strong { color: var(--nv2-hub-accent, var(--nv2-brand)); }
.nv2-step.is-complete .nv2-step-text strong { color: var(--nv2-ok); }
.nv2-step-text span { font-weight: 600; color: var(--nv2-ink); }

/* Toast stack */
.nv2-toast-stack {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; gap: 8px;
  z-index: 2000;
  pointer-events: none;
}
.nv2-toast {
  background: var(--nv2-ink); color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--nv2-shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: nv2-toast-in 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nv2-toast-success { background: var(--nv2-ok); }
.nv2-toast-error { background: var(--nv2-danger); }
.nv2-toast svg { width: 16px; height: 16px; }
@keyframes nv2-toast-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Empty state */
.nv2-empty-card {
  background: white;
  border: 1px dashed var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 56px 24px;
  text-align: center;
  color: var(--nv2-ink-2);
}
.nv2-empty-card .nv2-empty-icon { font-size: 48px; opacity: 0.5; margin-bottom: 12px; }
.nv2-empty-card h3 { font-size: 16px; color: var(--nv2-ink); margin-bottom: 6px; }
.nv2-empty-card p { max-width: 380px; margin: 0 auto; font-size: 13px; }

/* Pager */
.nv2-pager { display: flex; gap: 4px; }
.nv2-pager button {
  width: 28px; height: 28px;
  border: 1px solid var(--nv2-line);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--nv2-ink-2);
  display: grid; place-items: center;
}
.nv2-pager button:hover:not(.is-active) { color: var(--nv2-brand); border-color: var(--nv2-brand); }
.nv2-pager button.is-active { background: var(--nv2-ink); color: white; border-color: var(--nv2-ink); }

/* ═══════════════════════════════════════════════════════════════════════════
   DATA — Tabs, Filters, Tables, Stat Cards
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tab bar */
.nv2-tab-bar {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--nv2-line);
  margin-bottom: 22px;
  position: relative;
}
.nv2-tab {
  padding: 10px 16px;
  border: 0; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--nv2-ink-2);
  cursor: pointer;
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 8px 8px 0 0;
  transition: color 160ms ease, background 160ms ease;
}
.nv2-tab:hover { color: var(--nv2-ink); background: var(--nv2-panel-2); }
.nv2-tab.is-active { color: var(--nv2-hub-accent, var(--nv2-brand)); }
.nv2-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 12px; right: 12px;
  height: 2px;
  background: var(--nv2-hub-accent, var(--nv2-brand));
  border-radius: 2px 2px 0 0;
}
.nv2-tab-count {
  background: var(--nv2-bg-2);
  color: var(--nv2-ink-2);
  font-size: 11px; font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.nv2-tab.is-active .nv2-tab-count {
  background: color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 15%, white);
  color: var(--nv2-hub-accent, var(--nv2-brand));
}

/* Filter bar */
.nv2-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.nv2-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--nv2-ink-2);
  cursor: pointer;
  transition: all 140ms ease;
  font-family: inherit;
}
.nv2-chip:hover { border-color: var(--nv2-ink-3); color: var(--nv2-ink); }
.nv2-chip.is-active { background: var(--nv2-ink); color: white; border-color: var(--nv2-ink); }
.nv2-chip svg { width: 11px; height: 11px; }
.nv2-chip-divider { width: 1px; height: 18px; background: var(--nv2-line); margin: 0 4px; }

/* Stat card */
.nv2-stats-grid { display: grid; gap: 14px; margin-bottom: 22px; }
.nv2-stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nv2-stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
.nv2-stat-card {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 16px 18px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.nv2-stat-card:hover { transform: translateY(-2px); box-shadow: var(--nv2-shadow-md); }
.nv2-stat-card .nv2-stat-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--nv2-ink-3);
}
.nv2-stat-card .nv2-stat-value {
  font-family: var(--nv2-font-display);
  font-size: 28px; font-weight: 700;
  margin-top: 4px;
  color: var(--nv2-ink);
  line-height: 1.1;
}
.nv2-stat-card .nv2-stat-delta {
  font-size: 12px; font-weight: 600; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 3px;
}
.nv2-stat-card .nv2-stat-delta.is-up { color: var(--nv2-ok); }
.nv2-stat-card .nv2-stat-delta.is-down { color: var(--nv2-accent); }
.nv2-stat-card .nv2-stat-delta.is-neutral { color: var(--nv2-ink-3); }
.nv2-stat-card .nv2-stat-icon-bg {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid; place-items: center;
}

/* Hero KPI */
.nv2-hero {
  background: linear-gradient(135deg, var(--nv2-rail) 0%, var(--nv2-rail-2) 100%);
  color: white;
  border-radius: var(--nv2-radius-lg);
  padding: 26px 28px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.nv2-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 25%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.nv2-hero-grid {
  display: grid; grid-template-columns: 2fr 3fr; gap: 32px;
  position: relative; z-index: 1;
}
.nv2-hero-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: rgba(255,255,255,0.6);
}
.nv2-hero-value {
  font-family: var(--nv2-font-display);
  font-size: 44px; font-weight: 800;
  margin-top: 6px; line-height: 1;
  letter-spacing: -0.02em;
}
.nv2-hero-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 700;
  margin-top: 10px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-radius: 999px;
}
.nv2-hero-delta.is-down { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.nv2-hero-context { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-top: 12px; }
.nv2-hero-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-self: center; }
.nv2-hero-mini { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 12px 14px; }
.nv2-hero-mini-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; }
.nv2-hero-mini-val { font-family: var(--nv2-font-display); font-size: 19px; font-weight: 700; margin-top: 4px; }
.nv2-hero-mini-d { font-size: 11px; color: #6ee7b7; margin-top: 2px; }
.nv2-hero-mini-d.is-down { color: #fca5a5; }

/* Tables */
.nv2-table-card {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  overflow: hidden;
  box-shadow: var(--nv2-shadow-xs);
}
.nv2-table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--nv2-line-2);
  background: var(--nv2-panel-2);
  font-size: 12.5px;
  color: var(--nv2-ink-2);
}
.nv2-table-toolbar-left { display: flex; align-items: center; gap: 10px; }
.nv2-table-toolbar-right { display: flex; align-items: center; gap: 6px; }
.nv2-bulk-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--nv2-brand-soft) 0%, color-mix(in srgb, var(--nv2-accent) 8%, white) 100%);
  border-bottom: 1px solid var(--nv2-line-2);
  font-size: 12.5px; font-weight: 600;
  color: var(--nv2-brand);
}
.nv2-bulk-bar-actions { margin-left: auto; display: flex; gap: 6px; }

.nv2-table { width: 100%; border-collapse: collapse; }
.nv2-table thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--nv2-ink-3);
  background: var(--nv2-panel-2);
  border-bottom: 1px solid var(--nv2-line);
  white-space: nowrap;
}
.nv2-table thead th.is-num { text-align: right; }
.nv2-table thead th.is-checkbox { width: 36px; }
.nv2-table tbody tr { border-bottom: 1px solid var(--nv2-line-2); transition: background 120ms ease; }
.nv2-table tbody tr:hover { background: var(--nv2-panel-2); }
.nv2-table tbody tr.is-selected { background: color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 5%, white); }
.nv2-table tbody td { padding: 12px 16px; font-size: 13px; vertical-align: middle; }
.nv2-table td.is-id { font-family: var(--nv2-font-display); font-weight: 700; color: var(--nv2-ink); }
.nv2-table td.is-num {
  text-align: right;
  font-family: var(--nv2-font-mono);
  font-weight: 700;
  color: var(--nv2-ink);
}
.nv2-table-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: var(--nv2-panel-2);
  border-top: 1px solid var(--nv2-line-2);
  font-size: 12px; color: var(--nv2-ink-2);
}
.nv2-row-actions { display: inline-flex; gap: 2px; }
.nv2-row-actions button {
  width: 28px; height: 28px;
  border: 0; background: transparent;
  border-radius: 6px;
  color: var(--nv2-ink-3);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 120ms ease;
}
.nv2-row-actions button:hover { background: white; color: var(--nv2-brand); box-shadow: var(--nv2-shadow-xs); }
.nv2-row-actions svg { width: 14px; height: 14px; }

/* Section head */
.nv2-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 12px;
}
.nv2-section-head h3 { font-size: 14px; font-weight: 700; }
.nv2-section-head p { font-size: 12px; color: var(--nv2-ink-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS — fieldsets, inputs, side panels, action bars
   ═══════════════════════════════════════════════════════════════════════════ */

.nv2-form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.nv2-form-card {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  overflow: hidden;
}
.nv2-fieldset { padding: 18px 22px; border-bottom: 1px solid var(--nv2-line-2); }
.nv2-fieldset:last-child { border-bottom: 0; }
.nv2-fieldset-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--nv2-ink-3);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.nv2-fieldset-title svg { width: 12px; height: 12px; color: var(--nv2-hub-accent, var(--nv2-brand)); }

.nv2-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.nv2-field-row.is-full { grid-template-columns: 1fr; }
.nv2-field-row.is-thirds { grid-template-columns: 1fr 1fr 1fr; }
.nv2-field { display: flex; flex-direction: column; gap: 5px; }
.nv2-field-label {
  font-size: 12px; font-weight: 600;
  color: var(--nv2-ink);
  display: flex; align-items: center; gap: 4px;
}
.nv2-field-label .nv2-req { color: var(--nv2-accent); font-weight: 700; }
.nv2-field-input, .nv2-field-select, .nv2-field-textarea {
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid var(--nv2-line);
  background: white;
  font-family: inherit; font-size: 13px;
  color: var(--nv2-ink);
  transition: all 140ms ease;
  width: 100%;
  box-sizing: border-box;
}
.nv2-field-input:hover, .nv2-field-select:hover, .nv2-field-textarea:hover { border-color: var(--nv2-ink-3); }
.nv2-field-input:focus, .nv2-field-select:focus, .nv2-field-textarea:focus {
  outline: none;
  border-color: var(--nv2-hub-accent, var(--nv2-brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 14%, transparent);
}
.nv2-field-wrapper { position: relative; }
.nv2-field-input.has-prefix { padding-left: 38px; }
.nv2-field-prefix {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 700;
  color: var(--nv2-ink-3);
  pointer-events: none;
}
.nv2-field-suffix {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 600;
  color: var(--nv2-ink-3);
  pointer-events: none;
}
.nv2-field-help { font-size: 11.5px; color: var(--nv2-ink-3); }
.nv2-field-error { font-size: 11.5px; color: var(--nv2-accent); display: flex; align-items: center; gap: 4px; }
.nv2-field-input.is-error { border-color: var(--nv2-accent); }

.nv2-form-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: var(--nv2-panel-2);
  border-top: 1px solid var(--nv2-line);
}
.nv2-form-footer-actions { display: flex; gap: 8px; }

/* Side panel (calculation, summary) */
.nv2-side-panel {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  overflow: hidden;
  position: sticky; top: 0;
}
.nv2-side-panel-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 12%, white), white);
  border-bottom: 1px solid var(--nv2-line-2);
}
.nv2-side-panel-header h3 {
  font-size: 13px; font-weight: 700;
  color: var(--nv2-hub-accent, var(--nv2-brand));
  text-transform: uppercase; letter-spacing: 0.08em;
}
.nv2-side-panel-body { padding: 16px 18px; }
.nv2-calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  font-size: 13px;
}
.nv2-calc-row.is-divider { border-top: 1px solid var(--nv2-line-2); margin-top: 8px; padding-top: 14px; }
.nv2-calc-label { color: var(--nv2-ink-2); }
.nv2-calc-value { font-weight: 700; color: var(--nv2-ink); font-family: var(--nv2-font-display); }
.nv2-calc-row.is-total { padding: 14px 0 4px; font-size: 16px; }
.nv2-calc-row.is-total .nv2-calc-label { font-weight: 700; color: var(--nv2-ink); }
.nv2-calc-row.is-total .nv2-calc-value { color: var(--nv2-hub-accent, var(--nv2-brand)); font-size: 19px; }

/* CSV Dropzone */
.nv2-csv-dropzone {
  border: 2px dashed var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 40px 24px;
  text-align: center;
  background: var(--nv2-panel-2);
  cursor: pointer;
  transition: all 200ms ease;
}
.nv2-csv-dropzone:hover {
  border-color: var(--nv2-hub-accent, var(--nv2-brand));
  background: color-mix(in srgb, var(--nv2-hub-accent, var(--nv2-brand)) 5%, white);
}
.nv2-csv-dropzone-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--nv2-brand-soft);
  color: var(--nv2-hub-accent, var(--nv2-brand));
  display: grid; place-items: center;
  margin: 0 auto 12px;
}
.nv2-csv-dropzone-icon svg { width: 26px; height: 26px; }
.nv2-csv-dropzone h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--nv2-ink); }
.nv2-csv-dropzone p { font-size: 12.5px; color: var(--nv2-ink-2); }
.nv2-csv-dropzone-formats { font-size: 11px; color: var(--nv2-ink-3); margin-top: 8px; font-family: var(--nv2-font-mono); }

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS — Person, Queue, Hit, Bank approval, Rule, Match score, Merge compare
   ═══════════════════════════════════════════════════════════════════════════ */

/* Person card grid (Remitters / Beneficiaries) */
.nv2-people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nv2-person-card {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 16px;
  transition: all 200ms ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.nv2-person-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--nv2-shadow-md);
  border-color: var(--nv2-hub-accent, var(--nv2-brand));
}
.nv2-person-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.nv2-person-name { font-size: 14px; font-weight: 700; color: var(--nv2-ink); }
.nv2-person-id { font-family: var(--nv2-font-mono); font-size: 11px; color: var(--nv2-ink-3); margin-top: 2px; }
.nv2-person-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 11.5px; }
.nv2-person-stat { display: flex; flex-direction: column; gap: 2px; }
.nv2-person-stat-label { color: var(--nv2-ink-3); font-weight: 600; text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.06em; }
.nv2-person-stat-value { color: var(--nv2-ink); font-weight: 700; }
.nv2-person-actions {
  display: flex; gap: 6px; margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--nv2-line-2);
}

/* Queue card (KYC, Approval Queue, etc.) */
.nv2-queue-list { display: flex; flex-direction: column; gap: 10px; }
.nv2-queue-card {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 16px;
  transition: all 200ms ease;
  cursor: pointer;
}
.nv2-queue-card:hover { border-color: var(--nv2-hub-accent, var(--nv2-brand)); box-shadow: var(--nv2-shadow-md); transform: translateY(-1px); }
.nv2-queue-card.is-urgent { border-left: 3px solid var(--nv2-accent); }
.nv2-queue-card.is-high-risk { border-left: 3px solid var(--nv2-warn); }
.nv2-qcard-body { flex: 1; min-width: 0; }
.nv2-qcard-title { display: flex; align-items: center; gap: 8px; }
.nv2-qcard-name { font-size: 14px; font-weight: 700; color: var(--nv2-ink); }
.nv2-qcard-meta { font-size: 12px; color: var(--nv2-ink-3); margin-top: 2px; }
.nv2-qcard-tags { display: flex; gap: 6px; margin-top: 6px; }
.nv2-qcard-tag {
  font-size: 10.5px; font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--nv2-bg);
  color: var(--nv2-ink-2);
}
.nv2-qcard-tag.is-warn { background: var(--nv2-warn-soft); color: #92400e; }
.nv2-qcard-tag.is-danger { background: var(--nv2-danger-soft); color: #991b1b; }
.nv2-qcard-tag.is-info { background: var(--nv2-brand-soft); color: var(--nv2-brand); }
.nv2-qcard-risk { text-align: right; font-family: var(--nv2-font-display); }
.nv2-qcard-risk-score { font-size: 22px; font-weight: 700; line-height: 1; }
.nv2-qcard-risk-score.is-low { color: var(--nv2-ok); }
.nv2-qcard-risk-score.is-medium { color: var(--nv2-warn); }
.nv2-qcard-risk-score.is-high { color: var(--nv2-accent); }
.nv2-qcard-risk-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--nv2-ink-3);
  margin-top: 4px;
}
.nv2-qcard-actions { display: flex; gap: 6px; }

/* Hit card (Sanctions, Duplicates) */
.nv2-hit-card {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex; gap: 16px; align-items: center;
}
.nv2-hit-match { text-align: center; font-family: var(--nv2-font-display); flex-shrink: 0; }
.nv2-hit-match-pct { font-size: 28px; font-weight: 800; line-height: 1; }
.nv2-hit-match-pct.is-high { color: var(--nv2-danger); }
.nv2-hit-match-pct.is-medium { color: var(--nv2-warn); }
.nv2-hit-match-pct.is-low { color: var(--nv2-ink-3); }
.nv2-hit-match-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: var(--nv2-ink-3); margin-top: 4px; letter-spacing: 0.08em; }
.nv2-hit-body { flex: 1; min-width: 0; }
.nv2-hit-actions { display: flex; flex-direction: column; gap: 6px; }

/* Match score badge (duplicates) */
.nv2-match-score-badge {
  display: inline-flex; flex-direction: column; align-items: center;
  font-family: var(--nv2-font-display);
  background: white; border: 2px solid;
  padding: 6px 10px;
  border-radius: 12px;
  min-width: 70px;
}
.nv2-match-score-badge .nv2-num { font-size: 22px; font-weight: 800; line-height: 1; }
.nv2-match-score-badge .nv2-lbl { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.nv2-match-score-badge.is-high { border-color: var(--nv2-danger); color: var(--nv2-danger); }
.nv2-match-score-badge.is-medium { border-color: var(--nv2-warn); color: #b45309; }
.nv2-match-score-badge.is-low { border-color: var(--nv2-ink-3); color: var(--nv2-ink-3); }

/* Bank approval card */
.nv2-bank-card {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.nv2-bank-card.is-urgent { border-left: 3px solid var(--nv2-accent); }
.nv2-bank-icon {
  width: 44px; height: 44px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0ea5e9 0%, #4361ee 100%);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.nv2-bank-icon svg { width: 22px; height: 22px; }
.nv2-bank-name { font-size: 14px; font-weight: 700; }
.nv2-bank-details { font-family: var(--nv2-font-mono); font-size: 12px; color: var(--nv2-ink-2); margin-top: 2px; }
.nv2-bank-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 11.5px; color: var(--nv2-ink-3); }
.nv2-bank-meta strong { color: var(--nv2-ink); font-weight: 700; }

/* Rule card (auto-dispatcher) */
.nv2-rule-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 12px; align-items: center;
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.nv2-rule-card.is-disabled { opacity: 0.55; }
.nv2-rule-priority {
  font-family: var(--nv2-font-display);
  font-size: 18px; font-weight: 800;
  color: var(--nv2-hub-accent, var(--nv2-brand));
  width: 38px; text-align: center;
}
.nv2-rule-meta { font-size: 12px; color: var(--nv2-ink-3); margin-top: 3px; }
.nv2-rule-name { font-size: 13.5px; font-weight: 700; }
.nv2-rule-conditions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.nv2-rule-cond {
  font-size: 10.5px; font-weight: 600;
  background: var(--nv2-bg);
  padding: 2px 7px; border-radius: 4px;
  color: var(--nv2-ink-2);
}

/* Upload tile */
.nv2-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nv2-upload-tile {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: all 200ms ease;
  position: relative; overflow: hidden;
  text-align: left;
  font-family: inherit;
}
.nv2-upload-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--nv2-shadow-md);
  border-color: var(--nv2-hub-accent, var(--nv2-brand));
}
.nv2-upload-tile-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.nv2-upload-tile-icon svg { width: 18px; height: 18px; }
.nv2-upload-tile-name { font-size: 14px; font-weight: 700; color: var(--nv2-ink); margin-bottom: 4px; }
.nv2-upload-tile-desc { font-size: 12px; color: var(--nv2-ink-2); line-height: 1.4; min-height: 32px; }
.nv2-upload-tile-cta {
  margin-top: 14px;
  font-size: 11.5px; font-weight: 700;
  color: var(--nv2-hub-accent, var(--nv2-brand));
  display: flex; align-items: center; gap: 4px;
}

/* Merge compare layout */
.nv2-merge-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}
.nv2-merge-card {
  background: white;
  border: 2px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 20px;
}
.nv2-merge-card.is-primary { border-color: var(--nv2-ok); position: relative; }
.nv2-merge-card.is-primary::before {
  content: 'KEEP';
  position: absolute; top: 10px; right: 12px;
  font-size: 9.5px; font-weight: 800;
  background: var(--nv2-ok); color: white;
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: 0.05em;
}
.nv2-merge-card.is-duplicate { border-color: var(--nv2-accent); position: relative; }
.nv2-merge-card.is-duplicate::before {
  content: 'MERGE INTO PRIMARY';
  position: absolute; top: 10px; right: 12px;
  font-size: 9.5px; font-weight: 800;
  background: var(--nv2-accent); color: white;
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: 0.05em;
}
.nv2-merge-arrow {
  align-self: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--nv2-brand-soft);
  color: var(--nv2-brand);
  display: grid; place-items: center;
}
.nv2-merge-arrow svg { width: 22px; height: 22px; }
.nv2-merge-field {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 12.5px;
  border-bottom: 1px solid var(--nv2-line-2);
}
.nv2-merge-field:last-child { border-bottom: 0; }
.nv2-merge-field-label { color: var(--nv2-ink-3); font-weight: 600; }
.nv2-merge-field-value { color: var(--nv2-ink); font-weight: 600; text-align: right; max-width: 60%; }
.nv2-merge-field.is-diff { background: #fef3c7; padding-left: 8px; padding-right: 8px; border-radius: 4px; }
.nv2-merge-field.is-diff .nv2-merge-field-value { color: #92400e; }

/* ═══════════════════════════════════════════════════════════════════════════
   ACTIVITY / TIMELINE / OVERLAYS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Activity feed */
.nv2-activity-card {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  overflow: hidden;
}
.nv2-activity-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--nv2-line-2);
}
.nv2-activity-card-header h3 { font-size: 14px; font-weight: 700; }
.nv2-activity-card-header a { font-size: 12px; color: var(--nv2-brand); text-decoration: none; }
.nv2-activity-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--nv2-line-2);
  font-size: 13px;
}
.nv2-activity-row:last-child { border-bottom: 0; }
.nv2-activity-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.nv2-activity-icon svg { width: 14px; height: 14px; }
.nv2-activity-text { flex: 1; min-width: 0; color: var(--nv2-ink); }
.nv2-activity-time { font-size: 11px; color: var(--nv2-ink-3); white-space: nowrap; }

/* Timeline */
.nv2-timeline {
  background: white;
  border: 1px solid var(--nv2-line);
  border-radius: var(--nv2-radius);
  padding: 0;
}
.nv2-timeline-event {
  display: flex; gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--nv2-line-2);
  position: relative;
}
.nv2-timeline-event:last-child { border-bottom: 0; }
.nv2-timeline-event::before {
  content: '';
  position: absolute;
  left: 35px; top: 0; bottom: 0;
  width: 2px;
  background: var(--nv2-line);
}
.nv2-timeline-event:last-child::before { bottom: 50%; }
.nv2-timeline-event:first-child::before { top: 50%; }
.nv2-timeline-marker {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--nv2-hub-accent, var(--nv2-brand));
  display: grid; place-items: center;
  flex-shrink: 0;
  z-index: 1;
  margin-top: 6px;
}
.nv2-timeline-marker svg { width: 11px; height: 11px; color: var(--nv2-hub-accent, var(--nv2-brand)); }
.nv2-timeline-marker.is-success { border-color: var(--nv2-ok); }
.nv2-timeline-marker.is-success svg { color: var(--nv2-ok); }
.nv2-timeline-marker.is-warn { border-color: var(--nv2-warn); }
.nv2-timeline-marker.is-warn svg { color: var(--nv2-warn); }
.nv2-timeline-marker.is-danger { border-color: var(--nv2-danger); }
.nv2-timeline-marker.is-danger svg { color: var(--nv2-danger); }
.nv2-timeline-body { flex: 1; min-width: 0; }
.nv2-timeline-line1 { font-size: 13.5px; color: var(--nv2-ink); }
.nv2-timeline-line1 strong { font-weight: 700; }
.nv2-timeline-line2 { font-size: 12px; color: var(--nv2-ink-2); margin-top: 4px; line-height: 1.5; }
.nv2-timeline-meta {
  display: flex; gap: 12px; align-items: center;
  margin-top: 6px;
  font-size: 11px; color: var(--nv2-ink-3);
}

/* Sticky action bar (forms) */
.nv2-action-bar {
  position: sticky; bottom: 0;
  background: white;
  border-top: 1px solid var(--nv2-line);
  padding: 14px 26px;
  display: flex; justify-content: space-between; align-items: center;
  margin: 22px -28px -64px;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.04);
  z-index: 5;
}

/* Dropdown menu (bell, avatar, showcase picker) */
.nv2-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: var(--nv2-shadow-xl);
  border: 1px solid var(--nv2-line);
  min-width: 280px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  overflow: hidden;
}
.nv2-dropdown.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.nv2-menu-list { padding: 6px; }
.nv2-menu-list a, .nv2-menu-list button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0; background: transparent;
  font-family: inherit; font-size: 13px;
  color: var(--nv2-ink);
  text-decoration: none;
  cursor: pointer;
  border-radius: 7px;
  text-align: left;
}
.nv2-menu-list a:hover, .nv2-menu-list button:hover { background: var(--nv2-panel-2); }
.nv2-menu-list svg { width: 14px; height: 14px; color: var(--nv2-ink-2); }
.nv2-menu-divider { height: 1px; background: var(--nv2-line-2); margin: 4px 6px; }
.nv2-menu-list .is-danger { color: var(--nv2-danger); }
.nv2-menu-kbd {
  margin-left: auto;
  font-family: inherit; font-size: 10.5px;
  background: var(--nv2-bg);
  border: 1px solid var(--nv2-line);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--nv2-ink-3);
}

/* Notifications panel */
.nv2-notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--nv2-line-2);
}
.nv2-notif-list { max-height: 360px; overflow-y: auto; }
.nv2-notif-item {
  display: flex; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--nv2-line-2);
  cursor: pointer;
  transition: background 140ms ease;
}
.nv2-notif-item:hover { background: var(--nv2-panel-2); }
.nv2-notif-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.nv2-notif-icon svg { width: 16px; height: 16px; }
.nv2-notif-body { flex: 1; min-width: 0; }
.nv2-notif-title { font-size: 13px; font-weight: 600; color: var(--nv2-ink); margin-bottom: 2px; }
.nv2-notif-desc { font-size: 12px; color: var(--nv2-ink-2); line-height: 1.4; }
.nv2-notif-time { font-size: 11px; color: var(--nv2-ink-3); margin-top: 4px; }
.nv2-notif-unread { width: 7px; height: 7px; background: var(--nv2-brand); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

/* Search palette */
.nv2-palette-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  z-index: 1000;
  animation: nv2-fade-in 180ms ease;
}
.nv2-palette-overlay.is-open { display: flex; }
.nv2-palette {
  width: 660px; max-height: 70vh;
  background: white;
  border-radius: 16px;
  box-shadow: var(--nv2-shadow-xl);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: nv2-slide-down 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes nv2-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nv2-slide-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nv2-hub-fade { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.nv2-hub-fade { animation: nv2-hub-fade 280ms cubic-bezier(0.16, 1, 0.3, 1); }
