:root {
  --nx-ink: #0b1220;
  --nx-muted: #5b6b86;
  --nx-line: rgba(15, 23, 42, 0.08);
  --nx-bg: #f4f6fb;
  --nx-panel: #ffffff;
  --nx-blue: #3C65F5;
  --nx-blue-deep: #2B4ACA;
  --nx-navy: #0b1c36;
  --nx-cyan: #2eb8ef;
  --nx-ok: #12b886;
  --nx-warn: #f59f00;
  --nx-radius: 16px;
  --nx-sidebar: 232px;
  --nx-font: "Sora", system-ui, sans-serif;
  --nx-display: "Syne", system-ui, sans-serif;
  --nx-tabbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.nx-body {
  font-family: var(--nx-font);
  color: var(--nx-ink);
  background: var(--nx-navy);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.nx-skip-link {
  position: absolute;
  left: .75rem;
  top: .75rem;
  z-index: 200;
  padding: .55rem .95rem;
  background: #fff;
  color: #0b1c36;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.nx-skip-link:focus,
.nx-skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #2eb8ef;
  outline-offset: 3px;
}
.nx-content:focus {
  outline: none;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.nx-app {
  display: block;
  min-height: 100vh;
  background: var(--nx-navy);
}

/* ── Desktop sidebar (fixed rail) ───────────────────────── */
.nx-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--nx-sidebar);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: .85rem .65rem .75rem;
  background: var(--nx-navy);
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nx-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .2rem .25rem 1.25rem;
  margin-bottom: .55rem;
  flex-shrink: 0;
}
.nx-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.nx-brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nx-brand .nx-beta {
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: .15rem .4rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
}
.nx-nav-close,
.nx-nav-open {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nx-nav-open {
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--nx-ink);
}
.nx-nav-close:hover,
.nx-nav-open:hover { opacity: .9; }

.nx-nav {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1 1 auto;
  min-height: 0;
  padding: .35rem 0 .9rem;
}
.nx-nav a {
  display: grid;
  gap: .18rem;
  padding: .72rem .7rem;
  border-radius: 12px;
  color: rgba(255,255,255,.72);
  transition: background .15s, color .15s;
  line-height: 1.3;
}
.nx-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nx-nav a.is-active {
  background: rgba(60,101,245,.3);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(60,101,245,.4);
}
.nx-nav .nx-nav-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}
.nx-nav .lbl { font-weight: 600; font-size: .9rem; }
.nx-nav .count {
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 650;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .1rem .45rem;
  min-width: 1.35rem;
  text-align: center;
  line-height: 1.3;
}
.nx-nav a.is-active .count {
  color: #fff;
  background: rgba(255,255,255,.16);
}
.nx-nav .hint {
  font-size: .72rem;
  color: rgba(255,255,255,.42);
  font-weight: 400;
}
.nx-nav a.is-active .hint { color: rgba(255,255,255,.7); }

.nx-side-foot {
  margin-top: auto;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
  display: grid;
  gap: .35rem;
}
.nx-side-foot a,
.nx-side-foot button,
.nx-side-foot span {
  font-size: .8rem;
  color: rgba(255,255,255,.52);
  padding: .28rem .45rem;
  border-radius: 8px;
}
.nx-side-foot a:hover,
.nx-side-foot button:hover { color: #fff; background: rgba(255,255,255,.06); }
.nx-side-foot button {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  width: 100%;
}
.nx-side-foot .nx-side-user {
  margin-top: .35rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-weight: 500;
  font-size: .82rem;
}

.nx-sidebar-backdrop {
  display: none;
}

.nx-main {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin-left: var(--nx-sidebar);
  background: var(--nx-bg);
  padding-bottom: var(--nx-tabbar-h);
}

.nx-tabbar { display: none; }

.nx-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(244,246,251,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nx-line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nx-topbar-lead {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  flex: 1;
}
.nx-topbar h1 {
  margin: 0;
  font-family: var(--nx-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.nx-top-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }

/* ── Mobile / tablet ────────────────────────────────────── */
@media (max-width: 920px) {
  :root { --nx-tabbar-h: 3.75rem; }
  body.nx-body { background: var(--nx-bg); }
  .nx-app { background: var(--nx-bg); }

  .nx-sidebar {
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: none;
    width: min(300px, 88vw);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  body.nx-nav-open .nx-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(0,0,0,.35);
  }
  .nx-nav-close { display: inline-flex; }
  .nx-nav-open { display: inline-flex; }

  .nx-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(7, 14, 28, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  body.nx-nav-open .nx-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nx-main { margin-left: 0; }

  .nx-topbar {
    padding: .75rem .9rem;
    gap: .5rem;
    background: #fff;
    color: var(--nx-ink);
    border-bottom: 1px solid var(--nx-line);
    backdrop-filter: none;
  }
  .nx-topbar h1 {
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--nx-ink);
  }
  .nx-top-actions {
    flex-wrap: nowrap;
    gap: .4rem;
  }
  .nx-top-actions .nx-btn-ghost.nx-btn-sm { display: none; }

  /* Bottom primary destinations — thumb reach */
  .nx-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    height: calc(var(--nx-tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--nx-line);
  }
  .nx-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    min-width: 0;
    padding: .2rem .15rem;
    border-radius: 10px;
    font-size: .62rem;
    font-weight: 600;
    color: var(--nx-muted);
    text-align: center;
    line-height: 1.15;
  }
  .nx-tabbar a .ico {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
  }
  .nx-tabbar a.is-active {
    color: var(--nx-blue);
    background: rgba(60,101,245,.08);
  }
}

@media (min-width: 921px) {
  body.nx-nav-open .nx-sidebar-backdrop { display: none; }
}
.nx-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--nx-line);
  font-size: .78rem;
  color: var(--nx-muted);
  font-weight: 500;
}
.nx-chip b { color: var(--nx-ink); }

.nx-content {
  padding: 1.5rem;
  width: min(100%, 1080px);
  margin: 0 auto;
}
.nx-content.wide { width: min(100%, 1200px); }

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.nx-btn:hover { transform: translateY(-1px); }
.nx-btn-primary { background: var(--nx-blue); color: #fff; box-shadow: 0 8px 22px rgba(60,101,245,.28); }
.nx-btn-primary:hover { background: var(--nx-blue-deep); }
.nx-btn-ghost { background: #fff; color: var(--nx-ink); border: 1px solid var(--nx-line); }
.nx-btn-ghost.is-on,
.nx-btn.is-on {
  background: var(--nx-blue);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(60,101,245,.22);
}
.nx-btn-dark { background: var(--nx-navy); color: #fff; }
.nx-btn-sm { padding: .45rem .85rem; font-size: .8rem; }
.nx-li-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  color: #0a66c2;
  background: rgba(10, 102, 194, .08);
  border: 1px solid rgba(10, 102, 194, .22);
  border-radius: 999px;
  padding: .12rem .45rem;
  vertical-align: middle;
}
.nx-li-badge svg { width: .85rem; height: .85rem; flex-shrink: 0; }

.nx-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.75rem 1.6rem;
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, rgba(46,184,239,.25), transparent 50%),
    linear-gradient(145deg, #07111f, #0b1c36 55%, #14305a);
  color: #fff;
  margin-bottom: 1.25rem;
}
.nx-hero-card h2 {
  font-family: var(--nx-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  margin: 0 0 .55rem;
  max-width: min(36ch, 100%);
  line-height: 1.15;
}
.nx-hero-card p {
  margin: 0 0 1.15rem;
  color: rgba(255,255,255,.72);
  max-width: min(62ch, 100%);
  font-weight: 300;
  font-size: .98rem;
}
.nx-hero-card .nx-engine-blurb,
.nx-hero-card p.nx-engine-blurb {
  max-width: min(68ch, 100%);
  color: rgba(255,255,255,.78);
}
.nx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}
.nx-hero-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-left: .15rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  line-height: 1;
}
.nx-hero-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: rgba(255,255,255,.35);
}
.nx-hero-status.is-active {
  color: #e8fff6;
  border-color: rgba(18,184,134,.55);
  background: rgba(18,184,134,.2);
  animation: nxStatusGlow 2.2s ease-in-out infinite;
}
.nx-hero-status.is-active i {
  position: relative;
  width: 9px;
  height: 9px;
  background: #2dd4a0;
  box-shadow: 0 0 0 0 rgba(45,212,160,.55);
  animation: nxStatusPulse 1.4s ease-out infinite;
}
.nx-hero-status.is-active i::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(45,212,160,.7);
  animation: nxStatusRing 1.4s ease-out infinite;
}
.nx-hero-status.is-inactive {
  color: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.nx-panel .nx-hero-status,
.nx-hero-status-onlight {
  color: #334155;
  border-color: #cbd5e1;
  background: #f1f5f9;
  animation: none;
  box-shadow: none;
}
.nx-panel .nx-hero-status.is-active,
.nx-hero-status.nx-hero-status-onlight.is-active,
.nx-hero-status-onlight.is-active {
  color: #0f172a;
  border-color: #0f766e;
  background: #d1fae5;
  animation: none;
  box-shadow: none;
}
.nx-panel .nx-hero-status.is-inactive,
.nx-hero-status.nx-hero-status-onlight.is-inactive,
.nx-hero-status-onlight.is-inactive {
  color: #475569;
  border-color: #cbd5e1;
  background: #e2e8f0;
  animation: none;
}
.nx-panel .nx-hero-status.is-active i,
.nx-hero-status-onlight.is-active i {
  background: #0f766e;
}

.nx-plan-prompt {
  margin-top: .75rem;
  padding: 1rem 1rem .95rem;
  border: 1px solid rgba(60,101,245,.28);
  border-radius: 12px;
  background: #f5f8ff;
  box-shadow: 0 8px 28px rgba(15,23,42,.08);
  position: relative;
  overflow: hidden;
}
.nx-plan-prompt-track {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: rgba(60,101,245,.12);
}
.nx-plan-prompt-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #3C65F5, #93c5fd);
  transform-origin: left center;
}
.nx-plan-prompt.is-running .nx-plan-prompt-bar {
  animation: nxPlanDrain var(--nx-plan-drain, 6s) linear forwards;
}
@keyframes nxPlanDrain {
  from { width: 100%; }
  to { width: 0%; }
}
.nx-plan-prompt-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.nx-plan-prompt-copy {
  flex: 1;
  min-width: 12rem;
  margin: 0;
  font-size: .86rem;
  line-height: 1.4;
  color: var(--nx-ink);
  font-weight: 600;
}
.nx-plan-prompt-copy span { font-weight: 500; color: var(--nx-muted); }

.nx-hero-status.is-inactive i {
  background: rgba(255,255,255,.28);
}
@keyframes nxStatusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45,212,160,.6);
    transform: scale(1);
  }
  55% {
    box-shadow: 0 0 0 8px rgba(45,212,160,0);
    transform: scale(1.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45,212,160,0);
    transform: scale(1);
  }
}
@keyframes nxStatusRing {
  0% {
    transform: scale(.65);
    opacity: .95;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}
@keyframes nxStatusGlow {
  0%, 100% {
    border-color: rgba(18,184,134,.45);
    background: rgba(18,184,134,.16);
    box-shadow: 0 0 0 0 rgba(18,184,134,0);
  }
  50% {
    border-color: rgba(45,212,160,.75);
    background: rgba(18,184,134,.28);
    box-shadow: 0 0 18px rgba(45,212,160,.22);
  }
}

.nx-grid { display: grid; gap: 1rem; }
.nx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nx-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .nx-grid-3, .nx-grid-2 { grid-template-columns: 1fr; }
}

.nx-stat {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 1.15rem 1.2rem;
}
a.nx-stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.nx-stat-link:hover {
  border-color: rgba(60,101,245,.35);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  transform: translateY(-1px);
}
.nx-stat strong {
  display: block;
  font-family: var(--nx-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin-bottom: .25rem;
}
.nx-stat span { color: var(--nx-muted); font-size: .85rem; font-weight: 300; }

.nx-panel {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 1.25rem 1.3rem;
}
.nx-panel h3 {
  margin: 0 0 .35rem;
  font-family: var(--nx-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nx-panel p.lead {
  margin: 0 0 1rem;
  color: var(--nx-muted);
  font-size: .92rem;
  font-weight: 300;
}

.nx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.nx-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem 1rem;
  padding: .85rem .9rem;
  border-radius: 12px;
  background: var(--nx-bg);
  border: 1px solid transparent;
}
.nx-list.nx-job-list > li {
  grid-template-columns: 1.35rem minmax(0, 1fr) 3.75rem minmax(13rem, 19.5rem);
  align-items: start;
}
.nx-list.nx-job-list > li > .nx-row-check {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: .35rem 0 0;
  cursor: pointer;
}
.nx-list.nx-job-list > li > .nx-list-body {
  grid-column: 2;
}
/* Score + actions become sibling grid cells so every row lines up */
.nx-list.nx-job-list > li > .nx-list-tools {
  display: contents;
}
.nx-list.nx-job-list > li > .nx-list-tools > .nx-match-score {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  margin-top: .15rem;
  width: 3.75rem;
  justify-self: end;
}
.nx-list.nx-job-list > li > .nx-list-tools > .nx-row-actions {
  grid-column: 4;
  grid-row: 1;
  width: 100%;
  min-width: 0;
}
.nx-list li.is-focus,
.nx-app-row.is-focus,
.nx-list li.is-consulted,
.nx-app-row.is-consulted {
  border-color: rgba(60, 101, 245, .45) !important;
  background: #f8faff !important;
  box-shadow: 0 0 0 3px rgba(60, 101, 245, .1);
  outline: none;
}
.nx-list li.is-focus,
.nx-app-row.is-focus {
  animation: nxFocusIn .45s ease-out;
}
.nx-list li.is-consulted,
.nx-app-row.is-consulted {
  box-shadow: inset 4px 0 0 #3c65f5, 0 0 0 3px rgba(60, 101, 245, .1);
}
.nx-list li.is-consulted.is-focus,
.nx-app-row.is-consulted.is-focus {
  border-color: rgba(60, 101, 245, .55) !important;
  background: #eef3ff !important;
  box-shadow: inset 4px 0 0 #3c65f5, 0 0 0 3px rgba(60, 101, 245, .14);
}
@keyframes nxFocusIn {
  from { box-shadow: 0 0 0 0 rgba(60, 101, 245, 0); background: #fff; }
  to { box-shadow: 0 0 0 3px rgba(60, 101, 245, .1); background: #f8faff; }
}
.nx-focus-hint {
  color: #3c65f5;
  font-weight: 600;
}
.nx-btn.is-pulse {
  animation: nxBtnPulse 1.4s ease-in-out 3;
}
@keyframes nxBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(60, 101, 245, .35); }
  50% { box-shadow: 0 0 0 6px rgba(60, 101, 245, 0); }
}
.nx-accepted-bar {
  position: sticky;
  top: .65rem;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  margin: 0 0 1rem;
  padding: .7rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef3ff 0%, #f7faff 100%);
  border: 1px solid rgba(60, 101, 245, .28);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.nx-accepted-bar[hidden] { display: none !important; }
.nx-accepted-bar-copy {
  font-size: .9rem;
  color: var(--nx-ink);
  min-width: 0;
}
.nx-persona-schema {
  display: grid;
  grid-template-columns: 1fr minmax(11rem, 14rem) 1fr;
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 820px) {
  .nx-persona-schema { grid-template-columns: 1fr; }
}
.nx-schema-col {
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: var(--nx-bg);
}
.nx-schema-col h4 {
  margin: 0 0 .65rem;
  font-family: var(--nx-display);
  font-size: .95rem;
}
.nx-schema-col ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--nx-muted);
  font-size: .88rem;
  line-height: 1.45;
}
.nx-schema-col li { margin: .25rem 0; }
.nx-schema-core {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nx-schema-hub {
  width: 100%;
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 55%, #16324f 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}
.nx-schema-hub strong {
  display: block;
  font-family: var(--nx-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: .15rem 0 .45rem;
}
.nx-schema-hub p {
  margin: 0;
  font-size: .82rem;
  opacity: .85;
  line-height: 1.4;
  font-weight: 300;
}

/* Persona loop schematic (home + how-it-works) — shared so mobile arrows stay in sync. */
.nx-persona-schema--flow {
  grid-template-columns: 1fr 48px minmax(12rem, 15rem) 48px 1fr;
  gap: .55rem;
  align-items: stretch;
}
.nx-schema-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 40px;
}
.nx-schema-arrow span {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1e3a5f;
}
.nx-schema-arrow svg {
  width: 100%;
  height: 150px;
  overflow: visible;
}
.nx-schema-path {
  fill: none;
  stroke: #2B4ACA;
  stroke-width: 2.4;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  animation: nxSchemaDash 1.6s linear infinite;
}
.nx-schema-arrow-out .nx-schema-path {
  stroke: #0ea5e9;
  animation-direction: normal;
}
.nx-schema-head {
  fill: #2B4ACA;
  animation: nxSchemaZoom 1.8s ease-in-out infinite;
  transform-origin: 52px 80px;
}
.nx-schema-arrow-out .nx-schema-head { fill: #0ea5e9; }
.nx-schema-head-a { transform-origin: 52px 28px; animation-delay: .15s; }
.nx-schema-head-b { transform-origin: 52px 80px; animation-delay: .35s; }
.nx-schema-head-c { transform-origin: 52px 132px; animation-delay: .55s; }
.nx-persona-schema--flow .nx-schema-hub {
  background: linear-gradient(160deg, #0b1c36 0%, #1e3a5f 55%, #14305a 100%);
  color: #f8fafc;
  border: 1px solid rgba(62,199,255,.35);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .22);
  transform: scale(1.04);
}
.nx-persona-schema--flow .nx-schema-hub strong {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.nx-persona-schema--flow .nx-schema-hub p {
  color: #cbd5e1;
  opacity: 1;
}
@keyframes nxSchemaDash { to { stroke-dashoffset: -36; } }
@keyframes nxSchemaZoom {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.28); opacity: 1; }
}
@media (max-width: 820px) {
  .nx-persona-schema--flow {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .nx-persona-schema--flow .nx-schema-arrow {
    display: flex;
    min-height: 36px;
    transform: rotate(90deg);
    margin: -.2rem 0;
  }
  .nx-persona-schema--flow .nx-schema-arrow svg {
    height: 56px;
    width: 120px;
  }
  .nx-persona-schema--flow .nx-schema-arrow span {
    transform: rotate(-90deg);
  }
  .nx-persona-schema--flow .nx-schema-hub {
    transform: none;
  }
  .nx-persona-schema--flow .nx-schema-col ul {
    margin-bottom: .5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx-schema-path,
  .nx-schema-head { animation: none !important; }
}
.nx-how-grid { gap: 1rem; }
.nx-how-card {
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #fff;
}
.nx-how-card h4 {
  margin: 0 0 .4rem;
  font-family: var(--nx-display);
  font-size: 1rem;
}
.nx-how-card p {
  margin: 0 0 .75rem;
  color: var(--nx-muted);
  font-size: .9rem;
  line-height: 1.45;
}
.nx-how-card a {
  font-size: .86rem;
  font-weight: 600;
  color: var(--nx-blue);
  text-decoration: none;
}
.nx-how-card a:hover { text-decoration: underline; }
.nx-source-list .title { font-size: .92rem; }
.nx-li-account {
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: var(--nx-bg);
  margin-top: 1.25rem;
  text-align: left;
}
.nx-li-account h3 { margin-top: 0; text-align: left; }
.nx-notif-prefs .nx-toggle-row {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.nx-notif-prefs .nx-toggle-copy { flex: 1; min-width: 0; text-align: left; }
.nx-notif-prefs .nx-toggle { margin-top: 0; }
.nx-li-identity {
  display: grid;
  gap: .35rem;
  margin: 0 0 .85rem;
  font-size: .9rem;
}
.nx-li-import {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--nx-line);
}
.nx-li-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem .75rem;
}
@media (max-width: 720px) {
  .nx-li-cats { grid-template-columns: 1fr; }
}
.nx-li-cats .nx-facet-opt em {
  color: var(--nx-muted);
  font-style: normal;
  font-weight: 500;
}
.nx-jd-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .55rem;
  margin: 0 0 .85rem;
  padding: .55rem .65rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, .035);
  border: 1px solid rgba(15, 23, 42, .06);
}
.nx-jd-fact {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  font-size: .78rem;
  line-height: 1.25;
  color: var(--nx-ink, #0f172a);
  padding: .2rem .45rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
}
.nx-jd-fact em {
  font-style: normal;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--nx-muted, #64748b);
}
.nx-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .28rem;
}
.nx-meta-chip {
  font-size: .72rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 999px;
  padding: .12rem .45rem;
  line-height: 1.3;
}
.nx-list .meta {
  color: var(--nx-muted);
  font-size: .8rem;
  margin-top: .2rem;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.45;
}
.nx-list .title { font-weight: 600; font-size: .92rem; overflow-wrap: break-word; word-break: normal; }
.nx-list-body { min-width: 0; }
.nx-list-tools {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .65rem .85rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: min(100%, 28rem);
}
.nx-list-tools .nx-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
  max-width: 22rem;
}
.nx-list-tools .nx-btn { flex: 0 0 auto; white-space: nowrap; }
.nx-list-tools .nx-match-score {
  margin-top: .15rem;
}
.nx-match-score {
  font-family: var(--nx-display);
  font-weight: 800;
  color: var(--nx-blue);
  font-size: 1.05rem;
  line-height: 1.2;
  min-width: 3.75rem;
  width: 3.75rem;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  /* Plain % text — never look like a bordered chip/button */
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--nx-blue);
}
.nx-match-score:hover,
.nx-match-score:focus-visible {
  text-decoration: underline;
  outline: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.nx-match-score.is-empty {
  visibility: hidden;
  min-height: 1.2em;
}
.nx-match-score.is-open {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--nx-muted);
  min-width: 3.75rem;
}

.nx-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--nx-muted);
}
.nx-skel-pulse {
  animation: nxSkelPulse 1.1s ease-in-out infinite;
}
.nx-skel-rows { display:flex; flex-direction:column; gap:.65rem; padding:.5rem 0; }
.nx-skel-row {
  display:flex; align-items:center; gap:.75rem;
  padding:.85rem 1rem;
  border:1px solid var(--nx-line);
  border-radius:12px;
  background:var(--nx-surface, #fff);
}
.nx-skel-block {
  height:.72rem; border-radius:6px;
  background:linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size:200% 100%;
  animation: nxSkelShimmer 1.2s ease-in-out infinite;
}
.nx-skel-block.w40 { width:40%; }
.nx-skel-block.w55 { width:55%; }
.nx-skel-block.w70 { width:70%; }
.nx-skel-block.w25 { width:25%; height:.55rem; margin-top:.35rem; }
.nx-skel-score { width:2.4rem; height:2.4rem; border-radius:999px; flex-shrink:0;
  background:linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size:200% 100%; animation: nxSkelShimmer 1.2s ease-in-out infinite;
}
@keyframes nxSkelShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes nxSkelPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.nx-defer-list { min-height: 4rem; }
.nx-empty h3 {
  font-family: var(--nx-display);
  color: var(--nx-ink);
  margin: 0 0 .5rem;
}
.nx-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nx-blue);
  margin-bottom: .5rem;
}
.nx-soon {
  display: inline-block;
  margin-left: .4rem;
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nx-blue);
  border: 1px solid rgba(60,101,245,.35);
  padding: .15rem .4rem;
  border-radius: 999px;
  vertical-align: middle;
  font-weight: 600;
}
.nx-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
  margin-top: 1rem;
}
@media (max-width: 900px) { .nx-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .nx-flow { grid-template-columns: 1fr; } }
.nx-flow-step {
  background: var(--nx-bg);
  border-radius: 14px;
  padding: 1rem .9rem;
  border: 1px solid var(--nx-line);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
a.nx-flow-step {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.nx-flow-step:hover {
  border-color: rgba(60,101,245,.35);
  background: #eef2ff;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
}
.nx-flow-step .n {
  font-family: var(--nx-display);
  font-weight: 800;
  color: var(--nx-blue);
  font-size: .78rem;
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.nx-flow-step h4 { margin: 0 0 .3rem; font-size: .9rem; font-family: var(--nx-display); }
.nx-flow-step p { margin: 0; font-size: .8rem; color: var(--nx-muted); font-weight: 300; }

.nx-account-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.1rem;
  margin: 0 0 1.15rem;
  padding: 1rem 1.05rem;
  background: var(--nx-bg);
  border-radius: 12px;
  border: 1px solid var(--nx-line);
}
.nx-account-meta .sk {
  display: block;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nx-muted);
  margin-bottom: .15rem;
  font-weight: 600;
}
.nx-account-meta .sv { font-size: .92rem; font-weight: 500; color: var(--nx-ink); }
.nx-pill {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.nx-pill-ok { background: rgba(18,184,134,.12); color: #0f766e; }
.nx-pill-bad { background: rgba(220,38,38,.1); color: #b91c1c; }
.nx-pill-li { background: rgba(10,102,194,.12); color: #0a66c2; }
.nx-check-row {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 0 0;
  font-size: .88rem;
  color: var(--nx-muted);
  line-height: 1.4;
}
.nx-check-row input { margin-top: .2rem; }
.nx-toggle-list { display: grid; gap: .55rem; margin-top: .75rem; }
.nx-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .8rem;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: #fff;
}
.nx-toggle-row .lbl { font-weight: 600; font-size: .88rem; }
.nx-toggle-row .hint { display: block; font-size: .75rem; color: var(--nx-muted); font-weight: 400; margin-top: .1rem; }
.nx-switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
.nx-switch input { opacity: 0; width: 0; height: 0; }
.nx-switch span {
  position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; cursor: pointer; transition: background .15s;
}
.nx-switch span::after {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .15s;
}
.nx-switch input:checked + span { background: var(--nx-blue); }
.nx-switch input:checked + span::after { transform: translateX(18px); }
.nx-inline-edit { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.nx-inline-edit input[type=text] {
  min-width: 140px; flex: 1; padding: .35rem .55rem;
  border: 1px solid var(--nx-line); border-radius: 8px; font-size: .85rem;
}
@media (max-width: 800px) {
  .nx-account-meta { grid-template-columns: 1fr; }
}

.nx-control {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(60,101,245,.06);
  border: 1px solid rgba(60,101,245,.18);
  color: var(--nx-ink);
  font-size: .88rem;
  margin: 1rem 0;
}
.nx-control i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nx-ok);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(18,184,134,.15);
}

@media (max-width: 920px) {
  .nx-content { padding: 1rem; width: 100%; }
  .nx-hero-card {
    padding: 1.25rem 1.1rem;
    border-radius: 16px;
  }
  .nx-hero-card h2 { max-width: none; font-size: 1.35rem; }
  .nx-hero-card p { max-width: none; font-size: .92rem; }
  .nx-panel { padding: 1rem; }
  .nx-list li {
    grid-template-columns: 1fr;
  }
  .nx-list.nx-job-list > li {
    grid-template-columns: 1.35rem minmax(0, 1fr) 3.75rem;
  }
  .nx-list.nx-job-list > li > .nx-row-check {
    grid-column: 1;
    grid-row: 1;
  }
  .nx-list.nx-job-list > li > .nx-list-body {
    grid-column: 2;
    grid-row: 1;
  }
  .nx-list.nx-job-list > li > .nx-list-tools > .nx-match-score {
    grid-column: 3;
    grid-row: 1;
  }
  .nx-list.nx-job-list > li > .nx-list-tools > .nx-row-actions {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .nx-list-tools {
    align-items: flex-start;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }
  .nx-list-tools .nx-match-score {
    margin-top: .2rem;
    font-size: 1.15rem;
  }
  .nx-list-tools .nx-actions {
    max-width: none;
    flex: 1 1 auto;
    justify-content: stretch;
  }
  .nx-list-tools .nx-row-actions {
    flex: 1 1 auto;
  }
  .nx-list-tools .nx-btn {
    flex: 1 1 calc(50% - .35rem);
    white-space: normal;
    text-align: center;
  }
  .nx-list .nx-actions,
  .nx-actions { width: auto; }
  .nx-actions .nx-btn { flex: 0 1 auto; }
  .nx-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .15rem;
  }
  .nx-tabs button,
  .nx-tabs a.nx-tab-link { flex: 0 0 auto; }
  .nx-price-grid { grid-template-columns: 1fr; }
  .nx-footer { padding: 1.25rem 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .nx-drawer { padding: .5rem; align-items: end; }
  .nx-drawer-panel {
    max-height: min(92vh, 900px);
    border-radius: 16px 16px 0 0;
    width: 100%;
  }
}

/* Prevent horizontal page blowouts on small screens */
html, body.nx-body { overflow-x: hidden; }
.nx-app, .nx-main, .nx-content, .nx-panel, .nx-hero-card { max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
.nx-btn { word-break: break-word; }
.nx-danger {
  border: 1px solid rgba(201,42,42,.28);
  background: #fff8f8;
  border-radius: var(--nx-radius);
  padding: 1rem 1.1rem;
}
.nx-danger h3 { color: #c92a2a; }
.nx-cv-list .title { word-break: break-word; }

.nx-footer {
  margin-top: auto;
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid var(--nx-line);
  color: var(--nx-muted);
  font-size: .8rem;
}
.nx-footer-inner {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.nx-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}
.nx-footer-links a:hover { color: var(--nx-blue); }

.nx-form { display: grid; gap: .85rem; max-width: 520px; }
.nx-form.nx-form-wide { max-width: 920px; }
.nx-form.nx-prefs-wide { max-width: none; width: 100%; }
.nx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
@media (max-width: 720px) { .nx-form-grid { grid-template-columns: 1fr; } }
.nx-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 500; }
.nx-cv-upload-card {
  max-width: 560px;
  margin-top: .35rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 2px dashed rgba(37, 99, 235, .45);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(59,130,246,.08), rgba(255,255,255,.9));
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.nx-cv-upload-card .nx-cv-file-label {
  font-weight: 700;
  color: var(--nx-ink);
}
.nx-cv-upload-card input[type=file] {
  padding: .85rem;
  border: 1px solid rgba(37, 99, 235, .35);
  background: #fff;
  cursor: pointer;
}
#nxPersonaSyncNow.is-syncing {
  pointer-events: none;
  opacity: .92;
}
#nxPersonaSyncNow .nx-persona-sync-spin {
  display: none;
  width: .85rem;
  height: .85rem;
  margin-left: .45rem;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
}
#nxPersonaSyncNow.is-syncing .nx-persona-sync-spin {
  display: inline-block;
  animation: nx-spin .7s linear infinite;
}
@keyframes nx-spin { to { transform: rotate(360deg); } }
.nx-landing-tcv-dots {
  display: flex;
  gap: .45rem;
  justify-content: center;
  margin-top: .15rem;
  width: 100%;
}
.nx-landing-tcv-dots button {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(148,163,184,.55);
  cursor: pointer;
}
.nx-landing-tcv-dots button.is-on {
  background: var(--nx-blue);
  transform: scale(1.15);
}
.nx-form input, .nx-form textarea, .nx-form select {
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  padding: .7rem .85rem;
  background: #fff;
  color: var(--nx-ink);
}
.nx-form input:disabled { background: var(--nx-bg); color: var(--nx-muted); }

/* Password show/hide */
.nx-pw-field {
  position: relative;
  display: block;
  width: 100%;
}
.nx-pw-field > input {
  width: 100%;
  padding-right: 2.85rem;
  box-sizing: border-box;
}
.nx-pw-toggle {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--nx-muted, #64748b);
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  line-height: 0;
  transition: color .15s ease, background .15s ease;
}
.nx-pw-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  pointer-events: none;
}
.nx-pw-toggle:hover,
.nx-pw-toggle:focus-visible {
  color: var(--nx-ink, #0f172a);
  background: rgba(148, 163, 184, .16);
  outline: none;
}
.nx-pw-toggle[aria-pressed="true"] {
  color: var(--nx-blue, #3C65F5);
}

.nx-form textarea { min-height: 140px; resize: vertical; }
.nx-tab-pane { display: none; }
.nx-tab-pane.is-on { display: block; }
.nx-profile-hero h2 { color: var(--nx-ink); }
.nx-profile-hero .lead { max-width: 42rem; }
.nx-legal {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 1.5rem 1.4rem;
  line-height: 1.65;
  font-size: .92rem;
  color: var(--nx-ink);
}
.nx-legal h1, .nx-legal h2, .nx-legal h3, .nx-legal h4 {
  font-family: var(--nx-display);
  letter-spacing: -0.02em;
  color: var(--nx-ink);
  line-height: 1.25;
}
.nx-legal h3 {
  margin: 1.75rem 0 .65rem;
  font-size: 1.15rem;
  padding-top: .15rem;
}
.nx-legal h3:first-child {
  margin-top: 0;
}
.nx-legal h4 { margin: 1.35rem 0 .55rem; font-size: 1.05rem; }
.nx-legal p {
  margin: 0 0 .9rem;
  color: var(--nx-muted);
}
.nx-legal p + h3,
.nx-legal ul + h3 {
  margin-top: 1.85rem;
}
.nx-legal li { color: var(--nx-muted); margin: .2rem 0; }
.nx-legal ul { padding-left: 1.15rem; margin: .35rem 0 1rem; }
.nx-legal a { color: var(--nx-blue); text-decoration: underline; text-underline-offset: 2px; }
.nx-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) { .nx-price-grid { grid-template-columns: 1fr; } }
.nx-price-card {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.nx-price-card.is-featured {
  border-color: rgba(60,101,245,.45);
  box-shadow: 0 10px 30px rgba(60,101,245,.12);
}
.nx-price-card .amt {
  font-family: var(--nx-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.nx-price-card .amt small { font-size: .9rem; font-weight: 500; color: var(--nx-muted); }
.nx-price-desc {
  margin: 0;
  color: var(--nx-ink);
  font-size: .92rem;
  line-height: 1.45;
  font-weight: 400;
}
.nx-price-credits {
  margin: 0;
  color: var(--nx-blue, #3C65F5);
  font-size: .9rem;
  font-weight: 600;
}
.nx-price-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .4rem;
  flex: 1;
}
.nx-price-features li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--nx-muted);
  font-size: .84rem;
  line-height: 1.4;
}
.nx-price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: rgba(60, 101, 245, .85);
  box-shadow: 0 0 0 3px rgba(60, 101, 245, .12);
}
.nx-price-cancel {
  margin: 0;
  color: var(--nx-muted);
  font-size: .8rem;
}
.nx-accordion details {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-bottom: .55rem;
}
.nx-accordion summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--nx-display);
  letter-spacing: -0.02em;
}
details.nx-advanced.nx-panel {
  padding: 1.1rem 1.15rem;
}
details.nx-advanced > summary {
  list-style: none;
  cursor: pointer;
  display: block;
  position: relative;
  padding-right: 4.25rem;
}
.nx-advanced-summary-main { min-width: 0; }
.nx-advanced-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  margin-bottom: .35rem;
}
details.nx-advanced > summary > span:first-child,
details.nx-advanced > summary > strong,
.nx-advanced-title-row > span,
.nx-advanced-title-row > strong {
  flex: 0 0 auto;
}
details.nx-advanced > summary .lead,
.nx-advanced-summary-main .lead {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding-right: 0;
  display: block;
}
details.nx-advanced > summary::-webkit-details-marker { display: none; }
details.nx-advanced > summary::after {
  content: 'Show';
  position: absolute;
  top: 0;
  right: 0;
  float: none;
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--nx-blue);
  margin-top: 0;
  white-space: nowrap;
  line-height: 1.4;
}
details.nx-advanced[open] > summary::after { content: 'Hide'; }
.nx-agent-side-status {
  margin: .35rem .85rem .65rem;
  padding: .55rem .7rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(60,101,245,.12), rgba(46,184,239,.08));
  border: 1px solid rgba(60,101,245,.18);
  color: var(--nx-blue);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nx-agent-side-status[hidden] { display: none !important; }
.nx-agent-side-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: .15rem;
  border-radius: 50%;
  background: var(--nx-blue);
  animation: nx-pulse-dot 1.2s ease-in-out infinite;
  vertical-align: middle;
  flex: 0 0 auto;
}
.nx-agent-side-stop {
  margin-left: auto;
  border: 1px solid rgba(60,101,245,.35);
  background: #fff;
  color: var(--nx-blue);
  font: inherit;
  font-weight: 700;
  font-size: .7rem;
  border-radius: 8px;
  padding: .2rem .5rem;
  cursor: pointer;
}
.nx-agent-side-stop[hidden] { display: none !important; }
@keyframes nx-pulse-dot {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}
.nx-brain-list {
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  padding: .35rem .85rem;
  background: #fff;
  max-height: 320px;
  overflow-y: auto;
}
#nxBrainAdd { position: relative; }
#nxBrainSuggest {
  position: absolute;
  left: 0; right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15,23,42,.12);
  max-height: 220px;
  overflow-y: auto;
}
#nxBrainSuggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .55rem .75rem;
  font: inherit;
  cursor: pointer;
}
#nxBrainSuggest button:hover { background: #f8fafc; }
.nx-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #1e1b4b;
  color: #fff;
  padding: .9rem 1.15rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: min(420px, calc(100vw - 2rem));
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
}
.nx-toast.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nx-toast.is-err { background: #b45309; }
.nx-toast .nx-toast-ico {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 6px;
  padding: 2px;
  background: rgba(255,255,255,.12);
  filter: brightness(0) invert(1);
  object-fit: contain;
}
.nx-toast .nx-toast-ico.is-spin {
  animation: nxBusySpin .9s linear infinite;
}
.nx-toast.is-busy::before {
  content: none;
  display: none;
}

/* Inline wait / progress indicator (LinkedIn import, Persona sync, Prepare…) */
.nx-busy-line {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.nx-busy-line.is-busy::before,
.nx-save-status.is-busy::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 4px;
  background: var(--nx-blue);
  box-shadow: 0 0 0 0 rgba(60,101,245,.55);
  animation: nxBusyPulse 1.15s ease-out infinite;
}
.nx-busy-line.is-busy,
.nx-save-status.is-busy {
  color: var(--nx-ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-left: .35rem;
  overflow: visible;
}
.nx-busy-line.is-busy::after,
.nx-save-status.is-busy::after {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(60,101,245,.22);
  border-top-color: var(--nx-blue);
  animation: nxBusySpin .75s linear infinite;
  flex-shrink: 0;
}
@keyframes nxBusyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(60,101,245,.6);
    transform: scale(1);
  }
  55% {
    box-shadow: 0 0 0 10px rgba(60,101,245,0);
    transform: scale(1.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(60,101,245,0);
    transform: scale(1);
  }
}
@keyframes nxBusySpin {
  to { transform: rotate(360deg); }
}

.nx-hero-status.is-update {
  color: #fff7ed;
  border-color: rgba(251,146,60,.7);
  background: rgba(234,88,12,.28);
  animation: nxStatusGlowUpdate 2.2s ease-in-out infinite;
}
.nx-hero-status.is-update i {
  position: relative;
  width: 9px;
  height: 9px;
  background: #fb923c;
  box-shadow: 0 0 0 0 rgba(251,146,60,.55);
  animation: nxStatusPulse 1.4s ease-out infinite;
}
.nx-hero-status.is-update i::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(251,146,60,.75);
  animation: nxStatusRing 1.4s ease-out infinite;
}
@keyframes nxStatusGlowUpdate {
  0%, 100% {
    border-color: rgba(234,88,12,.45);
    background: rgba(234,88,12,.22);
    box-shadow: 0 0 0 0 rgba(251,146,60,0);
  }
  50% {
    border-color: rgba(251,146,60,.8);
    background: rgba(234,88,12,.34);
    box-shadow: 0 0 18px rgba(251,146,60,.22);
  }
}

.nx-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7,17,31,.45);
  padding: 1rem;
  overflow: auto;
}
.nx-drawer.is-open { display: grid; place-items: center; }
.nx-drawer-panel {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--nx-line);
}
.nx-drawer-panel h3 { margin: 0 0 .75rem; font-family: var(--nx-display); }
.nx-drawer-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
/* Prep drawer: scroll body, keep Send/Close pinned at the bottom */
.nx-drawer-panel--sticky {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.nx-drawer-panel--sticky .nx-drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: .35rem;
}
.nx-drawer-panel--sticky .nx-drawer-actions.is-sticky {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  margin: 0 -1.4rem;
  padding: .85rem 1.4rem 1.15rem;
  border-top: 1px solid var(--nx-line);
  background: linear-gradient(180deg, rgba(255,255,255,.92), #fff 40%);
  z-index: 2;
}
.nx-match {
  display: grid;
  gap: .35rem;
}
.nx-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.nx-row-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .4rem;
  min-width: 0;
}
.nx-row-actions-primary,
.nx-row-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .35rem;
  min-height: 2rem;
}
.nx-row-actions-primary .nx-btn {
  min-width: 5.25rem;
}
.nx-row-actions-primary .nx-accept-caret,
.nx-accept-split > .nx-accept-caret {
  min-width: 1.55rem !important;
  width: 1.55rem;
  max-width: 1.7rem;
  flex: 0 0 1.55rem;
  padding-left: .2rem !important;
  padding-right: .25rem !important;
}
.nx-row-actions-secondary .nx-btn {
  opacity: .92;
  min-width: 4.25rem;
}
.nx-app-actions .nx-row-actions-primary .nx-btn[data-act="prepare"],
.nx-app-actions .nx-row-actions-primary .nx-btn[data-act="practice"] {
  min-width: 5.75rem;
}
.nx-stage-wrap {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  font-weight: 500;
  min-width: 9.5rem;
  justify-content: flex-end;
}
.nx-stage-lbl {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--nx-muted);
  font-weight: 600;
}
.nx-stage-select {
  appearance: none;
  border: 1px solid var(--nx-line);
  background: #fff;
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--nx-ink);
  cursor: pointer;
  min-width: 7.5rem;
}
.nx-stage-select:focus {
  outline: none;
  border-color: rgba(60,101,245,.45);
  box-shadow: 0 0 0 3px rgba(60,101,245,.12);
}

@media (max-width: 720px) {
  .nx-row-actions,
  .nx-row-actions-primary,
  .nx-row-actions-secondary {
    align-items: stretch;
    width: 100%;
  }
  .nx-row-actions-primary .nx-btn,
  .nx-row-actions-secondary .nx-btn,
  .nx-stage-wrap {
    flex: 1 1 calc(50% - .35rem);
  }
  .nx-row-actions-primary .nx-accept-split {
    flex: 1 1 calc(50% - .35rem);
  }
  .nx-row-actions-primary .nx-accept-caret {
    flex: 0 0 1.55rem !important;
    width: 1.55rem !important;
    max-width: 1.7rem !important;
    min-width: 1.55rem !important;
  }
  .nx-stage-wrap { justify-content: space-between; padding: 0 .15rem; }
  .nx-stage-select { flex: 1; min-width: 0; }
}
.nx-pre {
  white-space: pre-wrap;
  background: var(--nx-bg);
  border-radius: 12px;
  padding: 1rem;
  font-size: .88rem;
  color: var(--nx-ink);
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--nx-line);
}
.nx-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.nx-tabs button,
.nx-tabs a.nx-tab-link {
  border: 1px solid var(--nx-line);
  background: #fff;
  border-radius: 999px;
  padding: .45rem .9rem;
  font-weight: 600;
  font-size: .82rem;
  color: var(--nx-muted);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nx-tabs button.is-on,
.nx-tabs a.nx-tab-link.is-on { background: var(--nx-blue); color: #fff; border-color: var(--nx-blue); }
.nx-tab-count {
  display: inline-block;
  margin-left: .35rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(15, 23, 42, .08);
  color: inherit;
  opacity: .85;
}
.nx-multiselect {
  width: 100%;
  min-height: 8rem;
  border: 1px solid var(--nx-border, #dbe1ea);
  border-radius: 10px;
  padding: .4rem .55rem;
  background: #fff;
  font: inherit;
}
.nx-textarea {
  width: 100%;
  border: 1px solid var(--nx-border, #dbe1ea);
  border-radius: 10px;
  padding: .65rem .75rem;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  background: #fff;
}
.nx-prep-input {
  width: 100%;
  border: 1px solid var(--nx-border, #dbe1ea);
  border-radius: 8px;
  padding: .45rem .6rem;
  font: inherit;
  background: #fff;
}
.nx-stage-select {
  border: 1px solid var(--nx-border, #dbe1ea);
  border-radius: 8px;
  padding: .3rem .45rem;
  font-size: .82rem;
  background: #fff;
  max-width: 8.5rem;
}
.nx-save-status {
  min-height: 1.1rem;
  margin: 0 0 .5rem;
  font-size: .8rem;
  color: var(--nx-muted);
}
.nx-outcome {
  margin-top: .75rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--nx-border, #dbe1ea);
  background: #f8fafc;
}
.nx-outcome.is-ok { border-color: #86efac; background: #f0fdf4; }
.nx-outcome.is-warn { border-color: #fcd34d; background: #fffbeb; }
.nx-outcome.is-err { border-color: #fca5a5; background: #fef2f2; }
.nx-outcome .detail { margin-top: .35rem; font-size: .85rem; color: var(--nx-muted); }
.nx-muted { color: var(--nx-muted); font-weight: 400; font-size: .85em; }
.nx-field-row { margin-bottom: .75rem; }
.nx-field-row .lbl { font-size: .78rem; color: var(--nx-muted); margin-bottom: .2rem; }
.nx-field-row .val { font-size: .92rem; }
.nx-prep-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .2rem;
}
.nx-prep-field-head .lbl { margin-bottom: 0; }
.nx-prep-input-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  width: 100%;
}
.nx-prep-input-wrap .nx-prep-input,
.nx-prep-input-wrap .nx-textarea,
.nx-prep-input-wrap textarea,
.nx-prep-input-wrap select,
.nx-prep-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.nx-prep-input-wrap .nx-copy-ans {
  position: static !important;
  top: auto !important;
  right: auto !important;
  flex: 0 0 auto;
  align-self: flex-start;
  z-index: 2;
  padding: .35rem .45rem !important;
  min-width: 2rem;
  line-height: 1;
  color: var(--nx-muted);
  background: #fff;
  border-color: var(--nx-line);
  margin-top: .15rem;
}
.nx-prep-input-wrap--tall .nx-copy-ans { margin-top: .25rem; }
.nx-copy-ans {
  flex: 0 0 auto;
  padding: .2rem .4rem !important;
  min-width: 0;
  line-height: 1;
  color: var(--nx-muted);
}
.nx-copy-ans.is-copied {
  color: var(--nx-blue);
  border-color: rgba(60, 101, 245, .35);
}
.nx-btn:disabled,
.nx-btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

/* —— NX polish v10 —— */
.nx-answer-stack { display: flex; flex-direction: column; gap: 1rem; }
.nx-answer-card {
  border: 1px solid var(--nx-line, #e2e8f0);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
}
.nx-answer-head h4 {
  margin: 0 0 .45rem;
  font-family: var(--nx-display);
  font-size: 1.05rem;
  line-height: 1.35;
}
.nx-answer-meta {
  display: flex; flex-wrap: wrap; gap: .45rem .75rem;
  font-size: .78rem; color: var(--nx-muted);
}
.nx-grade {
  font-weight: 700; color: var(--nx-blue, #3c65f5);
}
.nx-answer-body { margin-top: .75rem; }
.nx-answer-p {
  margin: 0 0 .75rem;
  font-size: .95rem;
  line-height: 1.55;
  white-space: normal;
  word-wrap: break-word;
}
.nx-answer-p:last-child { margin-bottom: 0; }
.nx-answer-p.muted { color: var(--nx-muted); }
.nx-answer-feedback {
  margin-top: .75rem;
  padding: .65rem .8rem;
  border-radius: 10px;
  background: #f8fafc;
  font-size: .88rem;
  line-height: 1.45;
  color: #334155;
}
.nx-answer-video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 480px);
  margin: .75rem auto 0;
  display: block;
  border-radius: 12px;
  background: #0f172a;
  object-fit: contain;
}
.nx-results-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}
.nx-results-score-num {
  font-family: var(--nx-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--nx-blue, #3c65f5);
}
.nx-results-score-label { font-size: .8rem; color: var(--nx-muted); }
.nx-results-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.nx-results-meta strong { display: block; font-size: 1.25rem; }
.nx-results-meta span { font-size: .78rem; color: var(--nx-muted); }
.nx-complete-card {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--nx-line);
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.nx-complete-card h3 { margin: 0 0 .35rem; font-family: var(--nx-display); }
.nx-mode-row { display: flex; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.nx-chip.is-on { background: var(--nx-blue); color: #fff; }
.nx-take-frame-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--nx-line);
  background: #0b1220;
  min-height: 72vh;
}
.nx-take-frame {
  width: 100%;
  min-height: 72vh;
  border: 0;
  display: block;
  background: #fff;
}
.nx-panel-head-row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.nx-search-inline { display: flex; gap: .4rem; align-items: center; }
.nx-search-inline input {
  min-width: 220px;
  border: 1px solid var(--nx-border, #dbe1ea);
  border-radius: 10px;
  padding: .45rem .65rem;
  font: inherit;
}
.nx-prefs-wide { max-width: none; }
.nx-prefs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.nx-prefs-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nx-check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: .5rem;
  margin-top: 1.6rem;
}
.nx-why {
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--nx-muted);
  line-height: 1.35;
}
.nx-why-box {
  margin-bottom: .85rem;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  border: 0;
}
.nx-why-box h4 { margin: 0 0 .65rem; font-size: 1rem; font-family: var(--nx-display); }
.nx-why-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem .75rem;
  padding: .35rem 0;
  border-top: 1px solid #eef2f7;
  font-size: .88rem;
}
.nx-why-row .d { grid-column: 1 / -1; color: var(--nx-muted); font-size: .78rem; }
.nx-match-card { display: grid; gap: .4rem; }
.nx-match-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .75rem;
  padding: .15rem 0 .25rem;
}
.nx-match-pill { font-family: var(--nx-display); font-size: 1.55rem; font-weight: 800; line-height: 1; }
.nx-match-sub { font-size: .82rem; color: var(--nx-muted); }
.nx-match-legend { margin: .15rem 0 0; font-size: .72rem; color: var(--nx-muted); line-height: 1.35; max-width: 36rem; }
.nx-match-dim {
  padding: .55rem .65rem;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  background: #fff;
}
.nx-match-dim.is-omitted {
  background: #f8fafc;
  border-style: dashed;
  opacity: .92;
}
.nx-match-dim-top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
}
.nx-match-dim-title { font-weight: 700; font-size: .84rem; }
.nx-match-dim-meta { font-size: .68rem; color: var(--nx-muted); margin-top: .08rem; }
.nx-match-dim-score { font-weight: 800; font-size: .86rem; white-space: nowrap; }
.nx-match-dim-body { margin-top: .35rem; }
.nx-match-bar {
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  margin-top: .35rem;
  overflow: hidden;
}
.nx-match-bar i { display: block; height: 100%; border-radius: inherit; }
.nx-match-group-lbl {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--nx-muted);
  margin: .3rem 0 .15rem;
}
.nx-match-chips { display: flex; flex-wrap: wrap; gap: .25rem; }
.nx-match-chip {
  display: inline-flex;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}
.nx-match-chip.is-ok { background: #ecfdf5; color: #047857; }
.nx-match-chip.is-miss { background: #f8fafc; color: #94a3b8; }
.nx-match-pair {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .78rem;
  padding: .15rem 0;
}
.nx-match-pair span { color: var(--nx-muted); }
.nx-match-note { font-size: .72rem; color: var(--nx-muted); margin: .25rem 0 0; }
.nx-match-miss-row { font-size: .78rem; margin: .1rem 0; }
.nx-match-pair b { font-weight: 600; color: var(--nx-ink); }
.nx-muted-sm { font-size: .78rem; color: var(--nx-muted); font-weight: 400; }

.nx-voice-rec {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, .12);
  color: #b91c1c;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .01em;
}
.nx-voice-rec-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, .55);
  animation: nx-rec-pulse 1.1s ease-out infinite;
}
.nx-voice-rec-timer { font-variant-numeric: tabular-nums; min-width: 2.4rem; }
#nxPersonaVoiceStart.is-recording {
  border-color: #dc2626;
  color: #b91c1c;
  background: rgba(220, 38, 38, .08);
}
@keyframes nx-rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.nx-job-desc {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--nx-ink);
  max-height: min(52vh, 520px);
  overflow: auto;
  padding-right: .25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Sticky View drawer: one scroll surface — avoid nested scroll that hides the JD start */
.nx-drawer-panel--sticky .nx-job-desc {
  max-height: none;
  overflow: visible;
}
.nx-job-desc-plain {
  white-space: normal;
  line-height: 1.55;
}
.nx-job-desc-plain br { display: block; content: ''; margin-top: .35rem; }
.nx-job-desc,
.nx-job-desc * {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
.nx-job-desc img,
.nx-job-desc video,
.nx-job-desc iframe {
  max-width: 100% !important;
  height: auto !important;
}
.nx-job-desc table {
  width: 100% !important;
  table-layout: fixed;
}
.nx-job-desc p { margin: 0 0 .75rem; }
.nx-job-desc ul, .nx-job-desc ol { margin: 0 0 .75rem 1.1rem; padding: 0; }
.nx-job-desc h1, .nx-job-desc h2, .nx-job-desc h3, .nx-job-desc h4 {
  margin: 1rem 0 .4rem;
  font-size: 1rem;
  font-family: var(--nx-display);
}
.nx-job-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.nx-job-title-link:hover {
  border-bottom-color: rgba(60,101,245,.45);
  color: var(--nx-blue);
  text-decoration: none;
}
.nx-job-title-link:focus-visible {
  outline: 2px solid rgba(60,101,245,.35);
  outline-offset: 2px;
  border-radius: 2px;
}
.nx-chipbox {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  min-height: 2.6rem;
  padding: .4rem .5rem;
  border: 1px solid var(--nx-border, #dbe1ea);
  border-radius: 12px;
  background: #fff;
  position: relative;
}
.nx-chipbox input {
  border: 0 !important;
  outline: none;
  flex: 1 1 8rem;
  min-width: 8rem;
  padding: .25rem .35rem !important;
  background: transparent;
  box-shadow: none !important;
}
.nx-role-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .45rem .2rem .55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: .78rem;
  font-weight: 600;
}
.nx-role-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 .15rem;
}
.nx-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,.1);
  max-height: 220px;
  overflow: auto;
}
.nx-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .55rem .75rem;
  cursor: pointer;
  font: inherit;
}
.nx-suggest button:hover { background: #f8fafc; }
.nx-drawer-tabs {
  display: flex;
  gap: .35rem;
  margin: 0 0 .85rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--nx-line);
}
.nx-drawer-tabs button {
  border: 0;
  background: transparent;
  color: var(--nx-muted);
  font: inherit;
  font-weight: 600;
  font-size: .86rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  cursor: pointer;
}
.nx-drawer-tabs button.is-on {
  background: rgba(60, 101, 245, .12);
  color: var(--nx-blue);
}
.nx-why-box[hidden],
.nx-job-desc[hidden] { display: none !important; }
.nx-match-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: .55rem .65rem;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.nx-sort-lbl {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  color: var(--nx-muted);
  letter-spacing: .02em;
}
.nx-sort-select {
  appearance: none;
  border: 1px solid var(--nx-line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right .65rem center;
  border-radius: 10px;
  padding: .45rem 1.7rem .45rem .7rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--nx-ink);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.nx-sort-lbl-grow { flex: 1 1 12rem; min-width: 10rem; }
.nx-sort-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--nx-line);
  background: #fff;
  border-radius: 10px;
  padding: .45rem .7rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--nx-ink);
}
.nx-sort-input:focus {
  outline: none;
  border-color: rgba(60,101,245,.45);
  box-shadow: 0 0 0 3px rgba(60,101,245,.1);
}
.nx-mass-bar[hidden] { display: none !important; }
.nx-mass-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .55rem;
  margin: 0 0 .85rem;
  padding: .5rem .65rem;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: #fff;
}
.nx-mass-bar .nx-mass-stage {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
}
.nx-mass-bar.is-docked,
.nx-practice-mass.is-docked {
  position: fixed;
  left: max(1rem, calc(50% - 36rem));
  right: max(1rem, calc(50% - 36rem));
  bottom: .85rem;
  z-index: 80;
  margin: 0;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .18);
  border-color: rgba(60, 101, 245, .35);
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(10px);
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .nx-mass-bar.is-docked,
  .nx-practice-mass.is-docked {
    left: .75rem;
    right: .75rem;
    max-width: none;
  }
}
.nx-practice-mass {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .55rem;
  margin: 0 0 .75rem;
  padding: .5rem .65rem;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: #fff;
}
body.nx-mass-docked {
  padding-bottom: 4.5rem;
}
.nx-mass-select {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--nx-ink);
  cursor: pointer;
}
.nx-mass-sep {
  width: 1px;
  height: 1.3rem;
  background: var(--nx-line);
  margin: 0 .15rem;
}
.nx-mass-count {
  margin-left: auto;
  font-size: .8rem;
  font-weight: 600;
  color: var(--nx-blue);
}
.nx-accept-split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  vertical-align: middle;
  flex: 0 0 auto;
  white-space: nowrap;
}
.nx-accept-split > .nx-accept-main,
.nx-accept-split > [data-act="accept"],
.nx-accept-split > #nxJobDrawerAccept {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
  padding-right: .7rem;
}
.nx-accept-caret {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 1px solid rgba(255,255,255,.28) !important;
  padding-left: .2rem !important;
  padding-right: .25rem !important;
  min-width: 1.55rem !important;
  width: 1.55rem;
  max-width: 1.7rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.nx-accept-caret svg { display: block; }
.nx-accept-menu,
.nx-copy-menu-panel {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  z-index: 80;
  min-width: 11.5rem;
  padding: .25rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .06);
}
.nx-accept-menu.is-fixed,
.nx-copy-menu-panel.is-fixed {
  position: fixed;
  z-index: 4000;
}
.nx-accept-menu button,
.nx-copy-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: .55rem .7rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--nx-ink, #0f172a);
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
}
.nx-accept-menu button:hover,
.nx-copy-menu-panel button:hover {
  background: #f1f5f9;
}
.nx-copy-menu {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  vertical-align: middle;
  flex: 0 0 auto;
}
.nx-copy-menu-panel[hidden] {
  display: none !important;
}
.nx-badge-inactive {
  display: inline-block;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  vertical-align: middle;
}
.nx-row-actions-primary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .4rem;
}
.nx-page-picker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .35rem .7rem;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  color: var(--nx-muted);
  cursor: pointer;
}
.nx-page-select {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: .86rem;
  font-weight: 700;
  color: var(--nx-ink);
  cursor: pointer;
  padding: .1rem .15rem;
  min-width: 2.5rem;
  text-align: center;
}
.nx-page-select:focus { outline: none; }
.nx-row-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--nx-blue);
  cursor: pointer;
}
.nx-prefs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.nx-prefs-head h3 { margin: 0 0 .35rem; }
.nx-prefs-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
}
.nx-prefs-toggles .nx-agent-toggle {
  flex: 1 1 11rem;
  max-width: 18rem;
  min-width: 10.5rem;
}
@media (min-width: 1100px) {
  .nx-prefs-head {
    flex-wrap: nowrap;
    align-items: center;
  }
  .nx-prefs-toggles {
    flex-wrap: nowrap;
    flex: 1 1 auto;
    max-width: none;
    justify-content: flex-end;
  }
  .nx-prefs-toggles .nx-agent-toggle {
    flex: 1 1 0;
    max-width: 17rem;
    min-width: 12rem;
  }
}
.nx-agent-toggle-persona {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
}
/* Digests: same shell as Agent active (padding/height); freq select + switch inline. */
.nx-agent-toggle-digests {
  cursor: default;
}
.nx-agent-toggle-digests .nx-digest-freq-inline {
  margin-top: 0;
  flex: 0 0 auto;
}
.nx-agent-toggle-digests .nx-switch {
  flex: 0 0 auto;
}
.nx-min-match-field input.is-disabled,
.nx-min-match-field input:disabled {
  opacity: .55;
  background: #f1f5f9;
  cursor: not-allowed;
}
.nx-open-search {
  font-size: .78rem;
  color: var(--nx-muted);
}
.nx-open-search input {
  accent-color: var(--nx-blue);
}
#nxPersonaSyncNow.nx-btn-primary {
  font-size: .95rem;
  padding: .65rem 1.15rem;
  box-shadow: 0 10px 28px rgba(60,101,245,.38);
}
.nx-persona-sync-wrap {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  max-width: none;
}
.nx-persona-sync-help {
  display: none;
}
.nx-digest-freq-inline {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .15rem;
}
.nx-digest-freq-inline select {
  font: inherit;
  font-size: .78rem;
  padding: .2rem .45rem;
  border-radius: 8px;
  border: 1px solid var(--nx-line);
  background: #fff;
  color: inherit;
  max-width: 7.5rem;
}
.nx-digest-freq-inline select:disabled {
  opacity: .55;
}
.nx-prefs-auto-panel {
  border: 1px solid rgba(60, 101, 245, 0.18);
  background: linear-gradient(165deg, rgba(60, 101, 245, 0.06), rgba(255, 255, 255, 0.9) 42%);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.25rem;
}
.nx-prefs-mode {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 1rem;
  padding: .28rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.nx-prefs-mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--nx-muted, #64748b);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: .45rem .95rem;
  border-radius: 999px;
  cursor: pointer;
}
.nx-prefs-mode-btn.is-on {
  background: #fff;
  color: var(--nx-ink, #0f172a);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.nx-nl-setup {
  border: 1px solid rgba(60, 101, 245, 0.18);
  background: linear-gradient(165deg, rgba(60, 101, 245, 0.06), rgba(255, 255, 255, 0.9) 42%);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.25rem;
}
.nx-nl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.nx-nl-chips .nx-chip-filter {
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
}
.nx-nl-chips .nx-chip-filter:hover {
  border-color: rgba(60, 101, 245, 0.45);
  color: var(--nx-blue, #3c65f5);
}
.nx-nl-preview {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.22);
}
.nx-nl-preview-body { margin-top: .55rem; }
.nx-nl-row {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin: .35rem 0;
  font-size: .92rem;
}
.nx-nl-row .k {
  flex: 0 0 7rem;
  color: #64748b;
  font-weight: 600;
}
.nx-nl-row .v { flex: 1; min-width: 0; }
.nx-nl-pill {
  display: inline-block;
  margin: .1rem .25rem .1rem 0;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: .82rem;
}
.nx-agent-toggle {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0;
  padding: .7rem .9rem;
  border: 1px solid rgba(60,101,245,.22);
  border-radius: 14px;
  background: rgba(60,101,245,.06);
  cursor: pointer;
  min-width: min(100%, 16rem);
}
.nx-agent-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  flex: 1;
  min-width: 0;
}
.nx-agent-toggle-copy strong {
  font-size: .88rem;
}
.nx-agent-toggle-copy span {
  font-size: .74rem;
  color: var(--nx-muted);
  font-weight: 500;
}
.nx-facet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
  margin-top: 1.15rem;
}
.nx-facet {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .75rem .85rem;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  background: #f8fafc;
  min-height: 0;
}
.nx-facet > span.lbl { font-weight: 700; font-size: .84rem; }
.nx-facet > span.hint {
  font-size: .7rem;
  color: var(--nx-muted);
  margin-top: -.15rem;
}
.nx-facet-picker { position: relative; }
.nx-facet-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 40px;
  padding: .5rem .75rem;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--nx-ink);
}
.nx-facet-trigger:hover { border-color: rgba(60,101,245,.35); }
.nx-facet.is-open .nx-facet-trigger {
  border-color: rgba(60,101,245,.45);
  box-shadow: 0 0 0 3px rgba(60,101,245,.12);
}
.nx-facet-summary {
  color: var(--nx-muted);
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nx-facet-summary.has-value { color: var(--nx-ink); font-weight: 600; }
.nx-facet-caret {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #94a3b8;
  flex-shrink: 0;
}
.nx-facet-popover {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  z-index: 40;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15,23,42,.14);
  padding: .75rem;
}
.nx-facet-pop-head {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: .55rem;
}
.nx-facet-search {
  width: 100%;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  padding: .55rem .7rem;
  font: inherit;
  font-size: .88rem;
}
.nx-facet-pop-actions {
  display: flex;
  gap: .55rem;
  font-size: .78rem;
}
.nx-facet-pop-actions button {
  border: 0;
  background: transparent;
  color: var(--nx-blue);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.nx-facet-pop-list {
  max-height: 220px;
  overflow-y: auto;
  border-top: 1px solid var(--nx-line);
  padding-top: .35rem;
  -webkit-overflow-scrolling: touch;
}
.nx-facet-opt {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .4rem;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
}
.nx-form label.nx-facet-opt {
  display: flex;
  align-items: center;
  gap: .65rem;
  grid-template-columns: unset;
}
.nx-facet-opt:hover { background: #f8fafc; }
.nx-facet-opt input,
.nx-form label.nx-facet-opt input {
  margin: 0;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border-radius: 3px;
  accent-color: var(--nx-blue);
  flex-shrink: 0;
}
.nx-facet-pop-empty {
  color: var(--nx-muted);
  text-align: center;
  padding: 1rem 0;
  font-size: .84rem;
}
.nx-match-claim {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-left: .35rem;
  border: 1px solid rgba(22,163,74,.28);
  background: #f0fdf4;
  color: #15803d;
  border-radius: 999px;
  padding: .12rem .55rem;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1.4;
}
.nx-match-claim:hover { background: #dcfce7; }
.nx-match-claim.is-done {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
  cursor: default;
}
.nx-match-miss-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .2rem 0;
  color: #94a3b8;
  font-size: .82rem;
}
.nx-brain-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
}
.nx-brain-tabs button {
  border: 1px solid var(--nx-line);
  background: #fff;
  border-radius: 999px;
  padding: .4rem .8rem;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--nx-muted);
  cursor: pointer;
}
.nx-brain-tabs button.is-on {
  background: rgba(60,101,245,.1);
  border-color: rgba(60,101,245,.28);
  color: var(--nx-blue);
}
.nx-brain-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .15rem;
  border-bottom: 1px solid var(--nx-line);
  font-size: .88rem;
}
.nx-brain-item:last-child { border-bottom: 0; }
.nx-brain-item .name { flex: 1; min-width: 0; font-weight: 600; }
.nx-brain-src {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.nx-brain-src.is-user { background: #f0fdf4; color: #15803d; }
.nx-brain-src.is-ai { background: #f5f3ff; color: #6d28d9; }
.nx-brain-src.is-persona { background: #eff6ff; color: #2563eb; }
.nx-brain-src.is-doc { background: #fff7ed; color: #c2410c; }
.nx-brain-rm {
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: .2rem;
}
.nx-brain-rm:hover { color: #dc2626; }
.nx-brain-doc-details {
  margin: -.15rem 0 .65rem;
  padding: 0 .15rem .35rem;
}
.nx-brain-doc-details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.nx-brain-doc-details summary::-webkit-details-marker { display: none; }
.nx-brain-doc-list {
  margin: .45rem 0 0;
  padding-left: 1.1rem;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--nx-ink);
}
.nx-brain-doc-list li { margin: .2rem 0; }
.nx-brain-doc-group { border-bottom: 0; }

.nx-persona-create {
  margin: 0 0 1rem;
}
.nx-persona-create-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}
.nx-persona-create-hint {
  margin: .45rem 0 0;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--nx-muted);
}

.nx-agent-progress {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--nx-line);
}
.nx-agent-progress h4 { margin: 0 0 .55rem; font-size: .95rem; }
.nx-agent-step {
  display: flex;
  gap: .55rem;
  align-items: center;
  padding: .28rem 0;
  font-size: .86rem;
  color: var(--nx-muted);
}
.nx-agent-step.is-on { color: var(--nx-ink); font-weight: 600; }
.nx-agent-step.is-done { color: #15803d; }
.nx-agent-step .dot {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: #cbd5e1; flex-shrink: 0;
}
.nx-agent-step.is-on .dot {
  background: var(--nx-blue);
  box-shadow: 0 0 0 0 rgba(60,101,245,.45);
  animation: nxBusyPulse 1.2s ease-out infinite;
}
.nx-agent-step.is-done .dot { background: #16a34a; animation: none; }
@media (max-width: 900px) {
  .nx-facet-grid { grid-template-columns: 1fr; }
}
.nx-chip-btn {
  cursor: pointer;
  border: 0;
  font: inherit;
}
.nx-top-actions { position: relative; }
.nx-usage-popover {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  width: 260px;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
  padding: .9rem;
  z-index: 40;
}
.nx-usage-title { font-weight: 700; margin-bottom: .55rem; }
.nx-usage-row {
  display: flex; justify-content: space-between; gap: .75rem;
  font-size: .88rem; padding: .25rem 0;
}
.nx-filter-chips {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin: 0 0 1rem;
}
.nx-chip-filter {
  border: 1px solid var(--nx-line);
  background: #fff;
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .8rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}
.nx-chip-filter span {
  margin-left: .25rem;
  opacity: .7;
  font-weight: 600;
}
.nx-chip-filter.is-on {
  background: var(--nx-blue);
  border-color: var(--nx-blue);
  color: #fff;
}
.nx-chip-filter.nx-chip-inactive {
  border-style: dashed;
  border-color: #94a3b8;
  color: #64748b;
  background: #f8fafc;
}
.nx-chip-filter.nx-chip-inactive.is-on {
  background: #475569;
  border-color: #475569;
  border-style: solid;
  color: #fff;
}

/* Author display rules otherwise override the UA [hidden] stylesheet. */
[hidden],
.nx-list li[hidden],
.nx-btn[hidden],
.nx-chip-filter[hidden],
.nx-usage-popover[hidden] {
  display: none !important;
}

/* Native video take studio */
.nx-take-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 1rem;
  align-items: start;
}
.nx-take-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #0b1220 0%, #152238 55%, #1a2740 100%);
  min-height: 420px;
  border: 1px solid rgba(255,255,255,.08);
}
.nx-take-stage video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  background: #0b1220;
}
.nx-take-rec-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: none;
  align-items: center;
  gap: .4rem;
  background: rgba(200, 35, 51, .92);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .65rem;
  border-radius: 999px;
  letter-spacing: .02em;
}
.nx-take-rec-badge.is-on { display: inline-flex; }
.nx-take-rec-badge i {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #fff;
  animation: nxPulse 1s ease-in-out infinite;
}
@keyframes nxPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.nx-take-timer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
  background: rgba(0,0,0,.35);
  padding: .3rem .55rem;
  border-radius: 8px;
}
.nx-take-side {
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.3rem;
}
.nx-take-q-n {
  font-size: .75rem;
  color: var(--nx-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.nx-take-q {
  font-family: var(--nx-display);
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 1rem;
}
.nx-take-progress {
  height: 4px;
  background: #e8edf5;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.nx-take-progress > i {
  display: block;
  height: 100%;
  background: var(--nx-blue);
  width: 0%;
  transition: width .35s ease;
}
.nx-take-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.nx-take-hint {
  font-size: .82rem;
  color: var(--nx-muted);
  margin: .75rem 0 0;
}
.nx-take-done {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(60,101,245,.12), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(62,199,255,.1), transparent 45%),
    #fff;
  border: 1px solid var(--nx-line);
  border-radius: 20px;
}
.nx-take-done h2 {
  font-family: var(--nx-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 .5rem;
}
.nx-take-done p { color: var(--nx-muted); max-width: 34rem; margin: 0 auto 1.25rem; }
@media (max-width: 900px) {
  .nx-take-studio { grid-template-columns: 1fr; }
  .nx-take-stage video, .nx-take-stage { min-height: 280px; }
}

/* Interactive landing + audio take */
.nx-interactive-brief .nx-interactive-points {
  margin: .85rem 0 0;
  padding-left: 1.15rem;
  color: var(--nx-muted);
  line-height: 1.55;
}
.nx-interactive-brief .nx-interactive-points li { margin: .35rem 0; }
.nx-interactive-fields {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  max-width: 28rem;
  width: 100%;
}
.nx-interactive-field {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  width: 100%;
  min-width: 0;
}
.nx-interactive-field legend,
.nx-interactive-field .nx-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
.nx-choice {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  border: 1px solid var(--nx-border, rgba(0,0,0,.1));
  border-radius: 10px;
  cursor: pointer;
  background: var(--nx-surface, #fff);
}
.nx-choice:has(input:checked) {
  border-color: var(--nx-blue, #2b8cff);
  box-shadow: 0 0 0 1px var(--nx-blue, #2b8cff);
}
.nx-choice input { margin-top: .2rem; }
.nx-choice strong { display: block; }
.nx-choice small { display: block; color: var(--nx-muted); margin-top: .15rem; }
.nx-select {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: .65rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--nx-border, rgba(0,0,0,.12));
  background: var(--nx-surface, #fff);
  font: inherit;
}
.nx-take-studio.is-audio .nx-take-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0b1c2e 0%, #14324f 55%, #0e2438 100%);
}
.nx-take-audio-viz {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: .45rem;
  height: 4.5rem;
  opacity: .45;
}
.nx-take-audio-viz span {
  width: .55rem;
  height: 1.2rem;
  border-radius: 4px;
  background: #3ec7ff;
  transition: height .2s ease;
}
.nx-take-audio-viz.is-on {
  opacity: 1;
}
.nx-take-audio-viz.is-on span {
  animation: nx-audio-bar 0.9s ease-in-out infinite alternate;
}
.nx-take-audio-viz.is-on span:nth-child(2) { animation-delay: .1s; }
.nx-take-audio-viz.is-on span:nth-child(3) { animation-delay: .2s; }
.nx-take-audio-viz.is-on span:nth-child(4) { animation-delay: .15s; }
.nx-take-audio-viz.is-on span:nth-child(5) { animation-delay: .05s; }
@keyframes nx-audio-bar {
  from { height: 1rem; }
  to { height: 3.6rem; }
}

/* NX Interactive studio — avatar fitted into take stage (SQL embed size unchanged) */
.nx-itake-header { margin-bottom: 1rem; }
.nx-itake-stage { position: relative; overflow: hidden; border-radius: 18px; }
.nx-itake-avatar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 176px;
  height: 176px;
  min-width: 176px;
  min-height: 176px;
  z-index: 5;
  display: none;
  border-radius: 18px;
  overflow: hidden; /* clip Oddcast canvas to rounded frame */
  isolation: isolate;
  background: rgba(7, 17, 31, .72);
  border: 1px solid rgba(62, 199, 255, .35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.nx-itake-avatar.is-visible { display: block; }
.nx-itake-avatar ._html5Player,
.nx-itake-avatar [id^="vhss"] {
  position: absolute !important;
  z-index: 2 !important;
  /* sizing/transform applied by nx-sitepal fitPlayerToHost — keep SQL dims */
}
.nx-itake-avatar .error-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}
.nx-itake-avatar iframe,
.nx-itake-avatar object,
.nx-itake-avatar embed,
.nx-itake-avatar canvas {
  border-radius: 0 !important;
}
.nx-itake-avatar-badge {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 6;
  padding: .35rem .5rem;
  border-radius: 10px;
  background: rgba(11, 28, 54, .82);
  color: #fff;
  pointer-events: none;
}
.nx-itake-avatar-name {
  font-family: var(--nx-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.nx-itake-avatar-company {
  font-size: .68rem;
  color: rgba(255, 255, 255, .72);
  margin-top: .1rem;
}
.nx-itake-listen-row {
  margin: .35rem 0 .75rem;
}
/* Video: keep timer clear of the corner avatar */
.nx-itake-studio:not(.is-audio) .nx-take-timer {
  right: 198px;
}
/* Audio interactive: stage == avatar box (no oversized empty frame) */
.nx-take-studio.is-audio .nx-take-stage,
.nx-take-studio.is-audio .nx-itake-stage {
  min-height: 0;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-bottom: 3.25rem; /* room for waveform */
}
.nx-take-studio.is-audio .nx-itake-avatar {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  display: block;
  width: min(340px, 78vw);
  height: min(340px, 78vw);
  min-width: 240px;
  min-height: 240px;
  border-radius: 22px;
  margin: 0;
}
.nx-take-studio.is-audio .nx-take-audio-viz {
  position: absolute;
  left: 50%;
  bottom: .85rem;
  transform: translateX(-50%);
  z-index: 4;
}
.nx-take-studio.is-audio .nx-take-timer {
  right: .75rem;
  top: .75rem;
}
@media (max-width: 900px) {
  .nx-itake-avatar {
    width: 132px;
    height: 132px;
    min-width: 132px;
    min-height: 132px;
    top: 10px;
    right: 10px;
    border-radius: 14px;
  }
  .nx-itake-studio:not(.is-audio) .nx-take-timer {
    right: 150px;
  }
  .nx-take-studio.is-audio .nx-take-stage,
  .nx-take-studio.is-audio .nx-itake-stage {
    min-height: 0;
  }
  .nx-take-studio.is-audio .nx-itake-avatar {
    width: min(280px, 82vw);
    height: min(280px, 82vw);
    min-width: 200px;
    min-height: 200px;
    border-radius: 18px;
  }
}
@media (max-width: 960px) {
  .nx-prefs-grid, .nx-prefs-grid-4 { grid-template-columns: 1fr 1fr; }
  .nx-results-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nx-prefs-grid, .nx-prefs-grid-4 { grid-template-columns: 1fr; }
}

/* Landing / onboarding / notification toggles (G · AI–AL) */
.nx-landing-brand {
  font-family: var(--nx-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #3ec7ff;
  margin: 0 0 .35rem;
}
.nx-landing-hero h2 { max-width: min(36ch, 100%); }

/* X — guest landing demo (Persona chat + Match %) */
.nx-landing-demo {
  margin: 0 0 1.35rem;
  animation: nx-landing-in .7s ease both;
}
.nx-landing-demo-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .nx-landing-demo-grid { grid-template-columns: 1fr; }
}
.nx-landing-demo-persona,
.nx-landing-demo-match {
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1.25rem;
  box-shadow: 0 18px 40px rgba(11, 28, 54, .08);
}
.nx-landing-demo-persona { animation: nx-landing-rise .8s .12s ease both; }
.nx-landing-demo-match { animation: nx-landing-rise .8s .28s ease both; }
.nx-landing-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .65rem;
  margin-bottom: .85rem;
}
.nx-landing-demo-head strong { font-size: .95rem; color: var(--nx-ink); }
.nx-landing-demo-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
  animation: nx-landing-pulse 1.8s ease-in-out infinite;
}
.nx-landing-demo-live {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #059669; background: #ecfdf5; padding: .2rem .45rem; border-radius: 6px;
}
.nx-landing-demo-sub { width: 100%; font-size: .78rem; color: var(--nx-muted); margin-top: -.25rem; }
.nx-landing-chat { display: grid; gap: .65rem; }
.nx-landing-bubble {
  font-size: .88rem; line-height: 1.45; padding: .75rem .9rem; border-radius: 12px;
  max-width: 100%;
}
.nx-landing-bubble.is-ask {
  background: #f1f5f9; color: #334155; border-bottom-left-radius: 4px;
}
.nx-landing-bubble.is-reply {
  background: linear-gradient(145deg, #0b1c36, #14305a); color: #f8fafc;
  border-bottom-right-radius: 4px;
}
.nx-landing-cite {
  display: block; margin-top: .55rem; font-size: .78rem; color: #93c5fd; font-style: italic;
}
.nx-landing-match-score {
  display: flex; align-items: baseline; gap: .15rem;
  margin: .2rem 0 .85rem;
}
.nx-landing-match-num {
  font-family: var(--nx-display); font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: #0b1c36; letter-spacing: -0.04em;
}
.nx-landing-match-unit { font-size: 1.2rem; font-weight: 700; color: #64748b; }
.nx-landing-match-dims {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: grid; gap: .4rem;
}
.nx-landing-match-dims li {
  display: flex; justify-content: space-between; gap: .75rem;
  font-size: .84rem; color: var(--nx-muted);
  padding: .35rem 0; border-bottom: 1px solid var(--nx-line);
}
.nx-landing-match-dims b { color: var(--nx-ink); font-variant-numeric: tabular-nums; }
@keyframes nx-landing-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nx-landing-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes nx-landing-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,.08); }
}

.nx-panel-done { border-color: rgba(16,185,129,.35); box-shadow: inset 0 0 0 1px rgba(16,185,129,.12); }

/* Getting started checklist (Cursor-style progress) */
.nx-getting-started .nx-gs-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.nx-getting-started .nx-gs-head h3 {
  margin: .15rem 0 .35rem;
  font-family: var(--nx-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}
.nx-gs-meter {
  flex: 1 1 140px;
  max-width: 220px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  overflow: hidden;
}
.nx-gs-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  transition: width .45s ease;
}
.nx-gs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.nx-gs-steps li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .65rem .15rem;
  border-bottom: 1px solid var(--nx-line);
}
.nx-gs-steps li:last-child { border-bottom: 0; }
.nx-gs-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(15, 23, 42, .06);
  border: 1px solid var(--nx-line);
}
.nx-gs-steps li.is-done .nx-gs-mark {
  background: rgba(16, 185, 129, .14);
  border-color: rgba(16, 185, 129, .35);
  color: #047857;
}
.nx-gs-body .title { font-weight: 650; font-size: .95rem; }
.nx-gs-body .meta { color: var(--nx-muted); font-size: .82rem; font-weight: 300; margin-top: .1rem; }
@media (max-width: 640px) {
  .nx-gs-steps li { grid-template-columns: auto 1fr; }
  .nx-gs-steps li .nx-btn { grid-column: 2; justify-self: start; }
}

.nx-toggle-row {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .85rem 0;
  border-bottom: 1px solid var(--nx-line);
  cursor: pointer;
}
.nx-toggle-row.nx-toggle-master {
  background: var(--nx-bg);
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  padding: .9rem 1rem;
  margin-bottom: .5rem;
}
.nx-toggle-copy { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.nx-toggle-copy strong { font-size: .92rem; font-weight: 600; }
.nx-toggle-copy small { color: var(--nx-muted); font-size: .8rem; font-weight: 300; line-height: 1.35; }
.nx-toggle { position: relative; flex: 0 0 auto; margin-top: .15rem; }
.nx-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nx-toggle-ui {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background .18s ease;
}
.nx-toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.2);
  transition: transform .18s ease;
}
.nx-toggle input:checked + .nx-toggle-ui { background: #3C65F5; }
.nx-toggle input:checked + .nx-toggle-ui::after { transform: translateX(18px); }
.nx-toggle input:focus-visible + .nx-toggle-ui { outline: 2px solid rgba(60,101,245,.45); outline-offset: 2px; }

.nx-boot-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(7,17,31,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}
.nx-boot-overlay[hidden] { display: none !important; }
.nx-boot-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15,23,42,.25);
}
.nx-boot-card h3 { font-family: var(--nx-display); margin: .85rem 0 .75rem; }
.nx-boot-spinner {
  width: 42px; height: 42px; margin: 0 auto;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: #3C65F5;
  animation: nx-spin .8s linear infinite;
}
@keyframes nx-spin { to { transform: rotate(360deg); } }
.nx-boot-steps {
  list-style: none; padding: 0; margin: 0 0 1rem;
  text-align: left;
}
.nx-boot-steps li {
  padding: .45rem .6rem;
  border-radius: 8px;
  color: var(--nx-muted);
  font-size: .88rem;
  margin-bottom: .25rem;
}
.nx-boot-steps li.is-on {
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 600;
}

/* Practice create: equal-width JD + Match % columns */
.nx-practice-create-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.nx-practice-create-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.nx-practice-match-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 0;
}
.nx-practice-match-foot {
  margin-top: auto !important;
  padding-top: 1rem;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .nx-practice-create-grid { grid-template-columns: 1fr; }
  .nx-practice-match-list { overflow: visible; }
}

.nx-practice-explain {
  margin: .85rem 0 1rem;
  padding: .85rem 1rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 12px;
}
.nx-practice-mode-list {
  margin: .45rem 0 0;
  padding-left: 1.15rem;
  color: var(--nx-muted, #64748b);
  font-size: .88rem;
  line-height: 1.45;
}
.nx-practice-mode-list li { margin: .2rem 0; }

/* Row prefs: third line under title/meta; stay compact beside dual action rows */
.nx-practice-prefs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .35rem .45rem;
  margin-top: .45rem;
  max-width: 100%;
}
.nx-practice-prefs label {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin: 0;
  min-width: 0;
}
.nx-practice-prefs label > span {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--nx-muted, #64748b);
  line-height: 1.1;
}
.nx-select-sm,
.nx-practice-prefs select {
  appearance: auto;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .22rem .35rem;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  color: var(--nx-ink, #0f172a);
  max-width: 7.5rem;
  min-height: 1.7rem;
}
.nx-practice-prefs label[title="Interviewer avatar"] select,
.nx-practice-prefs [data-setup-field="avatar"] {
  max-width: 8.5rem;
}
.nx-list.nx-practice-list > li {
  grid-template-columns: 1.35rem minmax(0, 1fr) minmax(16.5rem, 26rem);
}
.nx-list.nx-practice-list > li > .nx-list-tools {
  display: contents;
}
.nx-list.nx-practice-list > li > .nx-list-tools > .nx-row-actions {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  min-width: 0;
}
.nx-list.nx-practice-list .nx-row-actions-primary .nx-btn {
  min-width: 4.6rem;
}
.nx-list.nx-practice-list .nx-row-actions-secondary .nx-btn {
  min-width: 0;
  padding-left: .55rem;
  padding-right: .55rem;
}
@media (min-width: 900px) {
  .nx-list.nx-practice-list .nx-row-actions-primary,
  .nx-list.nx-practice-list .nx-row-actions-secondary {
    flex-wrap: nowrap;
  }
}
@media (max-width: 899px) and (min-width: 721px) {
  .nx-list.nx-practice-list > li {
    grid-template-columns: 1.35rem minmax(0, 1fr) minmax(14.5rem, 22rem);
  }
  .nx-list.nx-practice-list .nx-row-actions-secondary {
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .nx-list.nx-practice-list > li {
    grid-template-columns: 1.35rem minmax(0, 1fr);
  }
  .nx-list.nx-practice-list > li > .nx-list-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .nx-list.nx-practice-list > li > .nx-list-tools > .nx-row-actions {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .nx-list.nx-practice-list .title,
  .nx-list.nx-practice-list .meta {
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
  }
}

/* AI Tips card (NX session / take) */
.nx-tip-card {
  display: none;
  margin: .75rem 0 0;
  padding: .7rem .85rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  box-shadow: 0 2px 8px rgba(245, 158, 11, .12);
  animation: nxTipReveal .35s ease-out;
}
.nx-tip-card.is-on { display: block; }
.nx-tip-card .nx-tip-head {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #92400e;
}
.nx-tip-card .nx-tip-text {
  font-size: .88rem;
  line-height: 1.4;
  color: #78350f;
}
.nx-tip-card .nx-tip-loading {
  height: .85rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #fde68a 25%, #fef3c7 50%, #fde68a 75%);
  background-size: 200% 100%;
  animation: nxTipShimmer 1.4s infinite;
}
.nx-tip-credit {
  margin: 0 0 1rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  font-size: .88rem;
  color: #5d4037;
}
.nx-tip-credit label {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  cursor: pointer;
}
.nx-tip-credit small {
  display: block;
  margin: .25rem 0 0 1.55rem;
  color: #8d6e63;
  font-size: .78rem;
}
@keyframes nxTipReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes nxTipShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Interactive visual coaching toast (face tips) */
.nx-vc-toast {
  position: absolute;
  left: 50%;
  bottom: 3.25rem;
  transform: translateX(-50%);
  z-index: 12;
  max-width: min(90%, 22rem);
  padding: .55rem .75rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, .88);
  color: #fff;
  font-size: .82rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .35);
  pointer-events: none;
}
.nx-prep-fill-assist {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(60, 101, 245, .22);
  background: linear-gradient(135deg, rgba(60, 101, 245, .06), rgba(62, 199, 255, .05));
}
.nx-prep-fill-title { margin: 0 0 .25rem; font-size: .95rem; }
.nx-vc-zone {
  position: absolute;
  z-index: 11;
  border: 2px solid rgba(62, 199, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.18), 0 0 16px rgba(62, 199, 255, 0.45);
  pointer-events: none;
  box-sizing: border-box;
}
.nx-vc-zone[hidden] { display: none !important; }
.nx-vc-toast.is-surroundings {
  background: rgba(120, 53, 15, .9);
}
.nx-vc-zone.is-surroundings {
  border-color: rgba(251, 191, 36, 0.98);
  border-style: dashed;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.16), 0 0 18px rgba(251, 191, 36, 0.55);
}
.nx-vc-zone.is-surroundings::after {
  content: 'Look here';
  position: absolute;
  left: 50%;
  top: -1.35rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #78350f;
  background: #fbbf24;
  padding: .12rem .4rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .2);
}
@keyframes nxVcZonePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.88; }
}
.nx-itake-stage { position: relative; }

/* Interactive setup — interviewer select + preview as one unit */
.nx-ix-avatar-block {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.nx-ix-avatar-block > .nx-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
.nx-ix-avatar-card {
  display: grid;
  gap: .65rem;
  padding: .75rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .1);
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(248,250,252,.96) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.nx-ix-avatar-pick {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: 0;
  width: 100%;
  min-width: 0;
}
.nx-ix-avatar-pick-lbl {
  font-size: .72rem;
  font-weight: 600;
  color: var(--nx-muted);
}
.nx-ix-avatar-pick select,
.nx-ix-avatar-card .nx-select,
#nxIxForm .nx-ix-avatar-pick select {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.nx-ix-avatar-preview {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0;
  padding: .65rem .7rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef6ff 0%, #f1f5f9 55%, #eef2ff 100%);
  border: 1px solid rgba(46, 184, 239, .22);
}
.nx-ix-avatar-preview::before {
  content: '';
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, #2eb8ef, #3c65f5);
  flex: 0 0 auto;
}
.nx-ix-avatar-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
  background: #e2e8f0;
  flex: 0 0 auto;
}
.nx-ix-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.nx-ix-avatar-meta strong {
  font-size: .95rem;
  color: var(--nx-ink, #0f172a);
}
.nx-ix-avatar-meta .nx-muted-sm {
  font-size: .78rem;
}
#nxIxForm label > select,
#nxIxForm .nx-ix-avatar-pick select {
  width: 100%;
  box-sizing: border-box;
}
.nx-drawer-panel #nxIxForm {
  display: grid;
  gap: .85rem;
}
.nx-drawer-panel #nxIxForm > label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: 0;
  width: 100%;
  min-width: 0;
}

/* Android install banner — JS only unhides it on Android browsers */
.sl-android-banner {
  display: none;
  align-items: center;
  gap: .75rem;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--nx-tabbar-h, 0px) + env(safe-area-inset-bottom, 0px) + 10px);
  z-index: 36;
  padding: .7rem .85rem;
  border-radius: 16px;
  background: linear-gradient(155deg, #0b1c36, #132a4a);
  color: #e8eefc;
  box-shadow: 0 12px 32px rgba(11, 28, 54, .35);
  border: 1px solid rgba(255,255,255,.12);
}
.sl-android-banner-go {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.sl-android-banner-go strong {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.sl-android-banner-go span {
  font-size: .72rem;
  color: rgba(232,238,252,.72);
  line-height: 1.3;
}
.sl-android-banner-x {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 921px) {
  .sl-android-banner { display: none !important; }
}
body.sl-show-android-app .sl-android-banner { display: flex; }
.nx-ol {
  margin: .4rem 0 0;
  padding-left: 1.2rem;
  color: var(--nx-muted);
  line-height: 1.55;
}
.nx-ol li { margin: .35rem 0; }
.nx-ol code {
  font-size: .85em;
  background: var(--nx-bg);
  padding: .05em .35em;
  border-radius: 6px;
}
.nx-landing-feat--android { display: none; }
@media (max-width: 920px) {
  .nx-landing-feat--desktop-ext { display: none; }
  .nx-landing-feat--android { display: flex; }
}

/* Setup banner (onboarding incomplete) */
.nx-setup-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(60,101,245,.08), rgba(46,184,239,.06));
  border: 1px solid rgba(60,101,245,.18);
  font-size: .9rem;
}

/* Applications chip skeleton (defer load) */
.nx-chip-skel {
  display: inline-block;
  min-width: 1.1rem;
  color: transparent !important;
  background: linear-gradient(90deg, rgba(15,23,42,.08) 25%, rgba(15,23,42,.14) 50%, rgba(15,23,42,.08) 75%);
  background-size: 200% 100%;
  animation: nx-chip-shimmer 1.1s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes nx-chip-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Applications hero — collapsible on mobile */
.nx-apps-hero-more summary {
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  margin-top: .35rem;
}
.nx-apps-hero-more[open] summary { margin-bottom: .5rem; }
.nx-apps-hero-more p {
  margin: 0;
  opacity: .92;
  font-size: .95rem;
  line-height: 1.45;
  max-width: 46rem;
}
@media (min-width: 721px) {
  .nx-apps-hero-more summary { display: none; }
  .nx-apps-hero-more { display: block; }
  .nx-apps-hero-more > p:first-of-type { display: block; }
}
@media (max-width: 720px) {
  .nx-apps-hero-more:not([open]) > p { display: none; }
}

/* Home strongest-fits empty state */
.nx-front-runner--empty .nx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

/* Mobile topbar — hide duplicate Upgrade / Feed Persona (also in sidebar) */
@media (max-width: 920px) {
  .nx-top-actions .nx-top-upgrade,
  .nx-top-actions .nx-top-feed {
    display: none !important;
  }
}

/* Guest try-practice modal */
.nx-try-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(11, 28, 54, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.nx-try-modal[hidden] { display: none !important; }
.nx-try-modal-card {
  position: relative;
  width: min(520px, 100%);
  background: var(--nx-panel);
  border-radius: 18px;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 24px 60px rgba(11, 28, 54, .35);
}
.nx-try-modal-x {
  position: absolute; top: .65rem; right: .75rem;
  border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--nx-muted);
}
.nx-try-picks { display: grid; gap: .65rem; margin-top: 1rem; }
.nx-try-pick {
  text-align: left;
  border: 1px solid var(--nx-line);
  background: var(--nx-bg);
  border-radius: 14px;
  padding: .85rem 1rem;
  cursor: pointer;
}
.nx-try-pick:hover { border-color: rgba(60,101,245,.45); }
.nx-try-pick strong { display: block; font-size: .95rem; }
.nx-try-pick span { font-size: .8rem; color: var(--nx-muted); }
.nx-try-status { margin: .75rem 0 0; font-size: .85rem; color: var(--nx-muted); }
.nx-landing-ix-chip { margin: .55rem 0 0; font-size: .78rem; color: var(--nx-muted); }

/* Match cards grid + sample app */
.nx-landing-demo-grid--matches {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 920px) {
  .nx-landing-demo-grid--matches { grid-template-columns: 1fr; }
}
.nx-sample-app {
  margin-top: 1rem;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  padding: .75rem 1rem;
  background: var(--nx-panel);
}
.nx-sample-app summary { cursor: pointer; font-weight: 700; }
.nx-sample-app-body { margin-top: .75rem; display: grid; gap: .65rem; }
.nx-sample-app-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .65rem;
}
.nx-sample-app-meta { margin: 0; flex: 1 1 220px; font-size: .88rem; }
.nx-sample-app-body label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; }
.nx-sample-app-carousel {
  display: grid; gap: .65rem;
  transition: opacity .18s ease, transform .18s ease;
}
.nx-sample-app-carousel.is-swap { opacity: 0; transform: translateY(4px); }
.nx-sample-app-body textarea,
.nx-sample-app-body input {
  opacity: .92; cursor: default;
  font: inherit; font-weight: 400;
  border-radius: 10px; border: 1px solid var(--nx-line);
  padding: .55rem .7rem; background: #f1f4fa;
}
.nx-sample-app-body textarea.is-filled,
.nx-sample-app-body input.is-filled {
  background: #ecfeff; border-color: #67e8f9;
}
.nx-sample-app-dots {
  display: flex; gap: .35rem; align-items: center;
}
.nx-sample-app-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #cbd5e1;
}
.nx-sample-app-dot.is-on { background: var(--nx-blue, #0ea5e9); }
#nxSampleAppFill.is-flash { transform: scale(1.03); }

/* Pipeline schematic */
.nx-landing-pipeline {
  margin: 2rem 0 1.5rem;
  padding: 1.25rem 0;
}
.nx-pipeline {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .85rem;
}
.nx-pipeline-step {
  border: 1px solid var(--nx-line);
  background: var(--nx-panel);
  border-radius: 999px;
  padding: .45rem .85rem;
  font-size: .85rem; font-weight: 700;
  cursor: pointer;
}
.nx-pipeline-step span {
  display: inline-flex; width: 1.25rem; height: 1.25rem;
  align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(60,101,245,.12);
  color: var(--nx-blue); margin-right: .35rem; font-size: .75rem;
}
.nx-pipeline-step.is-on {
  border-color: var(--nx-blue);
  background: linear-gradient(135deg, rgba(60,101,245,.1), rgba(46,184,239,.08));
}
.nx-pipeline-panel {
  border-radius: 14px;
  border: 1px solid var(--nx-line);
  background: var(--nx-panel);
  padding: 1rem 1.15rem;
}
.nx-pipeline-panel strong { display: block; margin-bottom: .35rem; }
.nx-pipeline-panel p { margin: 0; color: var(--nx-muted); font-size: .9rem; line-height: 1.45; }

/* Guest soft gate */
.nx-guest-gate {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(11, 28, 54, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.nx-guest-gate[hidden] { display: none !important; }
.nx-guest-gate-card {
  width: min(440px, 100%);
  background: var(--nx-panel);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 24px 60px rgba(11, 28, 54, .35);
}
.nx-guest-gate-score {
  margin-top: .85rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #e8f7fc);
  display: grid; gap: .25rem;
}
.nx-guest-gate-blur {
  filter: blur(4px);
  font-weight: 800; font-size: 1.15rem;
  user-select: none;
}
.nx-guest-gate-score small { color: var(--nx-muted); }

/* Demo Persona */
.nx-demo-persona-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: baseline; margin-bottom: .85rem;
}
.nx-demo-persona-meta span { color: var(--nx-muted); font-size: .85rem; }
.nx-demo-persona-left { margin-left: auto; font-weight: 700; color: var(--nx-blue) !important; }
.nx-demo-starters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .85rem; }
.nx-demo-chat {
  min-height: 140px; max-height: 320px; overflow: auto;
  display: grid; gap: .55rem;
  padding: .75rem; border-radius: 14px; background: var(--nx-bg);
  border: 1px solid var(--nx-line); margin-bottom: .75rem;
}
.nx-demo-ask { display: flex; gap: .5rem; }
.nx-demo-ask input {
  flex: 1; border-radius: 12px; border: 1px solid var(--nx-line);
  padding: .65rem .85rem; font: inherit;
}

/* Extension live mock */
.nx-ext-mock--live {
  display: grid; gap: .55rem;
  padding: .85rem;
}
.nx-ext-mock-url { margin-left: auto; font-size: .65rem; opacity: .65; }
.nx-ext-mock-lab {
  display: grid; gap: .25rem;
  font-size: .68rem; letter-spacing: .03em; text-transform: uppercase;
  color: rgba(219,231,255,.7);
}
.nx-ext-mock-lab textarea,
.nx-ext-mock-lab input {
  text-transform: none; letter-spacing: 0;
  font-size: .8rem; color: #e8eefc;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: .45rem .55rem;
  font-family: inherit;
}
.nx-ext-mock .glow-zone.is-filled {
  border-style: solid;
  color: #b7f5d0;
}
.nx-ext-mock-note { margin: .35rem 0 0; font-size: .75rem; color: rgba(219,231,255,.7); }
.nx-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Agent "New" match badge */
.nx-badge-new {
  display: inline-block;
  vertical-align: middle;
  margin-right: .4rem;
  padding: .12rem .45rem;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0b3d2e;
  background: #a7f3d0;
  line-height: 1.2;
}
#nxMatchNewLbl.nx-badge-new { margin-right: 0; vertical-align: baseline; }

/* Guest practice picker */
.nx-try-modal-card { max-width: 560px; width: min(96vw, 560px); }
.nx-try-search { width: 100%; margin: .65rem 0 .5rem; padding: .65rem .85rem; border-radius: 12px; border: 1px solid var(--nx-line, #d8dee9); background: #fff; font: inherit; }
.nx-try-picks { max-height: min(52vh, 420px); overflow: auto; display: grid; gap: .45rem; grid-template-columns: 1fr; }
.nx-try-pick { text-align: left; }
.nx-try-pick[hidden] { display: none !important; }
.nx-try-cats { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .55rem; }
.nx-try-cat { font-size: .72rem; font-weight: 700; padding: .28rem .55rem; border-radius: 999px; border: 1px solid var(--nx-line, #d8dee9); background: #fff; cursor: pointer; color: var(--nx-muted, #5b6b86); }
.nx-try-cat.is-on { background: #e8eefc; border-color: #3C65F5; color: #1e3a8a; }

/* Landing chrome — no sidebar on guest home */
body.nx-landing-chrome .nx-sidebar,
body.nx-landing-chrome .nx-sidebar-backdrop { display: none !important; }
body.nx-landing-chrome .nx-main { margin-left: 0; }
body.nx-landing-chrome .nx-content--landing { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 2.5rem; }
.nx-landing-topnav {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.25rem; position: sticky; top: 0; z-index: 40;
  background: rgba(248,250,252,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.nx-landing-topnav-brand img { display: block; height: 36px; width: auto; }
.nx-landing-topnav-links { display: flex; gap: 1.1rem; flex: 1; justify-content: center; }
.nx-landing-topnav-links a {
  font-size: .9rem; font-weight: 600; color: #334155; text-decoration: none;
}
.nx-landing-topnav-links a:hover { color: #0b1c36; }
.nx-landing-topnav-actions { display: flex; gap: .5rem; margin-left: auto; }
@media (max-width: 720px) {
  .nx-landing-topnav-links { display: none; }
  .nx-landing-topnav { justify-content: space-between; }
}
body.nx-landing-chrome .nx-landing-hero--visual {
  min-height: 0;
  display: block;
  align-items: stretch;
  border-radius: 22px;
  margin: 1rem 0 1.25rem;
  padding: 1.5rem 1.5rem 1.35rem;
  overflow: hidden; position: relative;
}
body.nx-landing-chrome .nx-landing-brand {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: .5rem;
  color: #3ec7ff;
}
