/* Clarion Next: the new design (2026-10-11). Loaded after style.css by next.html only; the classic design never sees
   it. Researched direction: a quiet sidebar so the content leads (Linear), a bento home where each tile has one job,
   rows instead of cards for the feed, hairline rings instead of shadows (Vercel), warm near-black / off-white neutrals
   and one accent, a search-first top bar (Perplexity, Koyfin) and short, eased motion (150-250 ms). Inter stays. */

/* ---------- colours: Next's own default light and dark (other themes keep theirs) ---------- */
:root {
  --page: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f2f2ef;
  --fill: rgba(24, 24, 27, 0.05);
  --fill-hover: rgba(24, 24, 27, 0.085);
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #63636b;
  --hair: rgba(24, 24, 27, 0.09);
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --on-accent: #ffffff;
  --nav: rgba(247, 247, 245, 0.82);
  --up: #15803d;
  --down: #dc2626;
  --t-critical: #b91c1c;
  --t-high: #b45309;
  --side: #f1f1ee;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --page: #0b0b0c;
    --surface: #141416;
    --surface-2: #1b1b1e;
    --fill: rgba(255, 255, 255, 0.06);
    --fill-hover: rgba(255, 255, 255, 0.1);
    --ink: #ededef;
    --ink-2: #c4c4ca;
    --muted: #8e8e97;
    --hair: rgba(255, 255, 255, 0.08);
    --accent: #8b93ff;
    --accent-soft: rgba(139, 147, 255, 0.14);
    --on-accent: #0b0b0c;
    --nav: rgba(11, 11, 12, 0.8);
    --up: #4ade80;
    --down: #f87171;
    --t-critical: #f87171;
    --t-high: #fb923c;
    --s-low: #52525b;
    --side: #09090a;
  }
}
:root[data-theme="dark"] {
  --page: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --fill: rgba(255, 255, 255, 0.06);
  --fill-hover: rgba(255, 255, 255, 0.1);
  --ink: #ededef;
  --ink-2: #c4c4ca;
  --muted: #8e8e97;
  --hair: rgba(255, 255, 255, 0.08);
  --accent: #8b93ff;
  --accent-soft: rgba(139, 147, 255, 0.14);
  --on-accent: #0b0b0c;
  --nav: rgba(11, 11, 12, 0.8);
  --up: #4ade80;
  --down: #f87171;
  --t-critical: #f87171;
  --t-high: #fb923c;
  --s-low: #52525b;
  --side: #09090a;
}

/* ---------- shapes for the whole page, whatever the theme: rings not shadows, softer corners, quick motion ---------- */
body.nx {
  --r-card: 14px;
  --r-ctl: 9px;
  --shadow: 0 0 0 1px var(--hair);
  --shadow-lift: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, var(--hair)), 0 12px 32px -16px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 160ms;
  --side-w: 236px;
  --top-h: 56px;
  background: var(--page);
  font-size: 14.5px;
}
body.nx.nx-collapsed { --side-w: 64px; }
.nx ::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.nx :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.nx .view { animation: nx-in 220ms var(--ease) backwards; }
@keyframes nx-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.nx :is(button, .btn, a.btn):active { transform: scale(0.97); }

/* ---------- the app frame ---------- */
.nx-app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }  /* no animated columns: that re-laid out the whole page every frame */
.nx-side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 12px 10px;
  background: var(--side, var(--surface-2)); border-right: 1px solid var(--hair); overflow: hidden auto; scrollbar-width: none;
}
.nx-side-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 4px 10px 8px; }
.nx-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 16px; letter-spacing: -0.02em; }
.nx-brand .mark-dot { fill: var(--accent); }
.nx-icon {
  width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted);
  cursor: pointer; transition: background-color var(--fast), color var(--fast);
}
.nx-icon:hover { background: var(--fill); color: var(--ink); }
.nx-icon.avatar.signed-in { background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; }

.nx-nav { flex: 1; }
.nx-nav .sections-inner { display: grid; gap: 1px; overflow: visible; }
.nx-group { margin: 16px 10px 5px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); opacity: 0.8; }
.nx-group:first-child { margin-top: 2px; }
.nx-nav button {
  display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; padding: 7px 10px; border-radius: 8px;
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; text-align: left; white-space: nowrap;
  transition: background-color var(--fast), color var(--fast);
}
.nx-nav button:hover { background: var(--fill); color: var(--ink); }
.nx-nav button[aria-selected="true"] { background: var(--fill-hover); color: var(--ink); }
.nx-nav button[aria-selected="true"] svg { color: var(--accent); }
.nx-nav svg, .nx-tabbar svg, .nx-side-link svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nx-side-foot { display: grid; gap: 4px; padding: 10px 4px 2px; border-top: 1px solid var(--hair); }
.nx-side-foot .status, .nx-side-foot .clock { padding: 6px 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.nx-side-link {
  display: flex; align-items: center; gap: 11px; border: 0; background: none; padding: 7px 8px; border-radius: 8px; color: var(--muted);
  font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; white-space: nowrap;
}
.nx-side-link:hover { background: var(--fill); color: var(--ink); }
a.nx-side-link { text-decoration: none; }
.nx-collapsed .nx-label, .nx-collapsed .nx-group { display: none; }
.nx-collapsed .nx-side-top { flex-direction: column; padding-left: 4px; }
.nx-collapsed .nx-nav button, .nx-collapsed .nx-side-link { justify-content: center; padding: 9px 0; }
.nx-collapsed .nx-side-foot .status { justify-content: center; }

.nx-main { min-width: 0; display: flex; flex-direction: column; }
.nx-top {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: color-mix(in srgb, var(--page) 95%, transparent);  /* nearly solid: a blur here was redrawn on every scroll frame */
  border-bottom: 1px solid var(--hair);
}
.nx-brand-mobile { display: none; }
.nx-search {
  flex: 1; max-width: 560px; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px; border: 0; border-radius: 10px;
  background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); color: var(--muted); font: inherit; font-size: 13.5px; cursor: text; text-align: left;
  transition: box-shadow var(--fast), background-color var(--fast);
}
.nx-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-search:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, var(--hair)); }
.nx-search kbd { font: 600 11px/1 var(--font); padding: 4px 6px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); color: var(--muted); }
.nx-top-actions { margin-left: auto; display: flex; gap: 4px; }

.nx .page.nx-page { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 32px 40px; }
.nx .banner { border-radius: 12px; box-shadow: var(--shadow); }
.nx .page-head.nx-head { padding: 28px 0 18px; }
.nx .nx-head h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.nx .nx-head .overline { color: var(--muted); font-size: 12.5px; font-weight: 500; margin-bottom: 4px; }
.nx .nx-head .lede { font-size: 14.5px; margin-top: 6px; }
.nx-h2, .nx .section-title { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; margin: 0; }
.nx-foot { margin: 0; max-width: none; padding: 18px 32px 28px; border-top: 1px solid var(--hair); font-size: 12px; }

/* ---------- home: the bento ---------- */
.nx-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.nx-tile { background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); padding: 16px 18px; min-width: 0; }
.nx-tile-title { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); display: flex; align-items: baseline; gap: 8px; }
.nx-tile-title .hint { text-transform: none; letter-spacing: 0; font-size: 12px; }
.nx-more { margin-left: auto; color: var(--accent); text-decoration: none; }
.nx-t-lead { grid-column: span 12; padding: 0; overflow: hidden; }
.nx-home .nx-t-lead { grid-column: span 8; grid-row: span 2; }
.nx-home .nx-t-markets { grid-column: span 4; }
.nx-home .nx-t-mood { grid-column: span 4; }
.nx-duo { display: contents; }
.nx-duo > .nx-tile { grid-column: span 4; margin: 0; }
.nx-bento:not(.nx-home) .nx-t-markets { display: none; }
/* the lead story fills its tile */
.nx .nx-t-lead #hero { height: 100%; }
.nx .nx-t-lead .hero { box-shadow: none; border-radius: 0; background: none; padding: 24px 26px 20px; height: 100%; display: flex; flex-direction: column; }
.nx .nx-t-lead .hero .headline { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.028em; line-height: 1.15; }
.nx .nx-t-lead .hero .rx { margin-top: auto; padding-top: 16px; }
.nx .nx-t-lead .hero .foot-line { margin-top: 14px; }
.nx .nx-t-lead .empty { box-shadow: none; }
/* markets as a 2 x 2 inside its tile */
.nx .nx-t-markets .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.nx .nx-t-markets .mtile { box-shadow: none; background: var(--surface-2); border-radius: 12px; padding: 10px 12px 8px; }
.nx .nx-t-markets .mtile:hover { transform: none; background: var(--fill-hover); }
.nx .nx-t-markets .mtile .val { font-size: 17px; }
.nx .nx-t-markets .mtile .nm { font-size: 11.5px; }
/* the mood gauge, compact */
.nx .nx-t-mood .mood { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0; box-shadow: none; background: none; }
.nx .nx-t-mood .mood-dial { justify-self: center; }
.nx .nx-t-mood .mood-gauge { width: 170px; }
.nx .nx-t-mood .mood-word { font-size: 15px; }
.nx .nx-t-mood .mood-parts li { grid-template-columns: 60px 1fr auto; font-size: 12px; }
.nx .nx-t-mood .hint { display: none; }
.nx .nx-duo .panel { padding: 16px 18px; }
.nx .nx-duo .mini { padding: 8px 4px; border-radius: 8px; }
.nx .nx-duo .mini:hover { background: var(--fill); }
.nx-earn { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nx-earn li { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 10px; align-items: baseline; padding: 7px 4px; border-radius: 8px; font-size: 13px; }
.nx-earn li:hover { background: var(--fill); }
.nx-earn .tk-link { font-size: 13px; text-align: left; }
.nx-earn-when { color: var(--muted); }
.nx-earn-move { font-weight: 700; font-variant-numeric: tabular-nums; }
.nx-earn small { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* ---------- feed ---------- */
.nx-feed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 12px; }
.nx-feed-sticky { position: sticky; top: var(--top-h); z-index: 10; padding: 10px 0; margin-top: 18px; background: var(--page);
  box-shadow: 0 1px 0 var(--hair); }
.nx .nx-toolbar { margin: 0; flex: 1; justify-content: flex-end; gap: 8px; }
.nx .nx-toolbar .search { max-width: 240px; height: 32px; }
.nx .nx-toolbar .quiet-select { height: 32px; }
.nx .seg { border-radius: 9px; padding: 2px; background: var(--fill); }
.nx .seg button { border-radius: 7px; padding: 5px 11px; font-size: 12.5px; }
.nx .seg button[aria-checked="true"] { box-shadow: 0 0 0 1px var(--hair), 0 1px 2px rgba(0, 0, 0, 0.15); }
.nx .search { border-radius: 9px; }
.nx .quiet-select { border-radius: 9px; }
.nx .btn { border-radius: 9px; padding: 7px 14px; font-size: 13.5px; transition: background-color var(--fast), transform var(--fast), opacity var(--fast); }
.nx .btn.primary:hover { opacity: 0.9; }

/* more top stories: a row of compact cards */
.nx .nx-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.nx .nx-cards .story { padding: 14px 16px 12px; border-radius: 14px; cursor: pointer; transition: box-shadow var(--fast), transform var(--fast); }
.nx .nx-cards .story:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.nx .nx-cards .headline { font-size: 15px; font-weight: 600; line-height: 1.3; }
.nx .nx-cards .foot-line { font-size: 12px; }

/* latest: clean rows, no card around them */
.nx .nx-rows { list-style: none; margin: 0; padding: 0; background: none; box-shadow: none; }
.nx .nx-rows .story { padding: 12px 12px; border-radius: 10px; cursor: pointer; transition: background-color var(--fast); }
.nx .nx-rows .story + .story::before { left: 12px; right: 12px; }
.nx .nx-rows .story:hover { background: var(--fill); }
.nx .nx-rows .story:hover + .story::before, .nx .nx-rows .story:hover::before { opacity: 0; }
.nx .nx-rows .headline { font-size: 14.5px; font-weight: 550; line-height: 1.35; }
.nx .nx-rows .eyebrow { margin-bottom: 5px; }
.nx .nx-rows .foot-line { margin-top: 5px; font-size: 12px; }
.nx .story.flash { animation: nx-flash 1.4s var(--ease); }
@keyframes nx-flash { 20% { background: var(--accent-soft); } }
.nx .pulse { margin: 0 0 12px; border-radius: 14px; }
.nx .new-pill { top: calc(var(--top-h) + 12px); border-radius: 999px; box-shadow: 0 8px 24px -8px var(--accent); }

/* story tags: quieter pills */
.nx .lvl, .nx .tone { border-radius: 6px; padding: 1px 7px; font-size: 11.5px; }
.nx .pchg :is(.up, .down) { font-weight: 600; }

/* ---------- the story panel ---------- */
.nx-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 200ms var(--ease); }
.nx-scrim.open { opacity: 1; }
.nx-drawer {
  will-change: transform;
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(500px, 100vw); overflow-y: auto; background: var(--surface);
  box-shadow: -1px 0 0 var(--hair), -24px 0 60px -20px rgba(0, 0, 0, 0.5); padding: 18px 24px 28px; display: flex; flex-direction: column; gap: 14px;
  transform: translateX(104%); transition: transform 230ms var(--ease); outline: none;
}
.nx-drawer.open { transform: none; }
.nx-drawer-top { display: flex; align-items: flex-start; gap: 10px; }
.nx-drawer-top .eyebrow { flex: 1; margin: 6px 0 0; }
.nx-drawer-title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.022em; }
.nx-drawer-why { margin: 0; color: var(--muted); font-size: 13.5px; }
.nx-drawer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-drawer-tags:empty { display: none; }
.nx-drawer-block { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.nx-drawer-block .rx { margin: 0; }
.nx-drawer-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.nx-drawer-meta { font-size: 13.5px; }
.nx-drawer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.nx-drawer-actions .votes { margin-left: auto; }
.nx-drawer-actions .vote { opacity: 1; }

/* ---------- other pages, tuned to the new frame ---------- */
.nx .duo:not(.nx-duo) { margin-top: 24px; }
.nx .tk-head.nx-tk-head { padding: 18px 0 16px; }
.nx .tk-symbol { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.035em; }
.nx .tk-price { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.nx .chart-panel { border-radius: 16px; }
.nx-tk-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.nx-tk-grid > [hidden] { display: none; }
.nx-tk-grid > :only-child, .nx-tk-grid > :first-child:nth-last-child(1) { grid-column: 1 / -1; }
.nx .nx-tk-grid .tech, .nx .nx-tk-grid .runway { margin: 12px 0 0; }
.nx .nx-tk-grid .runway .runway-row { grid-template-columns: minmax(0, 1fr); }
.nx .brief { border-radius: 16px; }
.nx .tk-body .nx-h2 { margin: 26px 0 8px; }
.nx .watch-grid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.nx .wcard { border-radius: 14px; }
.nx .wcard:hover { transform: translateY(-1px); }
.nx .heat-tile { border-radius: 10px; }
.nx .day-label { top: calc(var(--top-h) + 16px); }
.nx .account { gap: 14px; }
.nx .palette-box { border-radius: 16px; box-shadow: 0 0 0 1px var(--hair), 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.nx dialog { border-radius: 16px; }
.nx .toast { border-radius: 10px; }

/* ---------- tablets and phones ---------- */
.nx-tabbar { display: none; }
@media (max-width: 1100px) {
  .nx-home .nx-t-lead { grid-column: span 12; grid-row: auto; }
  .nx-home .nx-t-markets, .nx-home .nx-t-mood { grid-column: span 6; }
  .nx-duo > .nx-tile { grid-column: span 6; }
  .nx-tk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.nx { --side-w: 0px; }
  .nx-app { grid-template-columns: minmax(0, 1fr); }
  .nx-side { display: none; }
  .nx-top { padding: 0 14px; gap: 10px; }
  .nx-brand-mobile { display: inline-flex; }
  .nx-search kbd { display: none; }
  .nx #palette-btn { display: flex; }  /* the classic design hides its small search icon on phones; here it is the search bar */
  .nx .page.nx-page { padding: 0 16px 96px; }
  .nx-foot { padding: 16px 16px 96px; }
  .nx-home .nx-t-markets, .nx-home .nx-t-mood, .nx-duo > .nx-tile { grid-column: span 12; }
  .nx .nx-t-lead .hero { padding: 18px 18px 16px; }
  .nx-feed-sticky { top: var(--top-h); }
  .nx .nx-toolbar { justify-content: flex-start; }
  .nx .nx-toolbar .search { max-width: none; flex: 1 1 100%; }
  .nx-tabbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--page) 96%, transparent);
    border-top: 1px solid var(--hair);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .nx-tabbar .sections-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; overflow: visible; }
  .nx-tabbar button {
    display: grid; justify-items: center; gap: 3px; border: 0; background: none; padding: 6px 0; border-radius: 10px; color: var(--muted);
    font: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer;
  }
  .nx-tabbar button[aria-selected="true"] { color: var(--accent); }
  .nx-tabbar svg { width: 21px; height: 21px; }
  .nx-drawer { width: 100vw; padding: 16px 18px 28px; }
  .nx .tk-body { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .nx .view, .nx-drawer, .nx-scrim, .nx-app { animation: none; transition: none; }
}

/* ---------- sign-in page (login-next.html) ---------- */
.nx-auth-page { min-height: 100vh; }
.nx-auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.nx-auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 48px;
  background: var(--side, var(--surface-2)); border-right: 1px solid var(--hair);
}
.nx-auth-art .nx-brand { font-size: 19px; position: relative; z-index: 1; }
.nx-auth-pitch { position: relative; z-index: 1; max-width: 460px; }
.nx-auth-pitch h2 { margin: 0 0 22px; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -0.035em; }
.nx-auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.nx-auth-pitch li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.nx-auth-pitch svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nx-auth-radar { position: absolute; right: -120px; bottom: -120px; width: 460px; height: 460px; opacity: 0.55; pointer-events: none; }
.nx-auth-radar circle { fill: none; stroke: var(--hair); stroke-width: 1.2; }
.nx-auth-radar .beam { stroke: var(--accent); stroke-width: 1.5; opacity: 0.6; transform-origin: 200px 200px; animation: radar-turn 9s linear infinite; }
.nx-auth-radar .b1 { fill: var(--accent); stroke: none; }
.nx-auth-radar .b2 { fill: var(--up); stroke: none; }
.nx-auth-radar .b3 { fill: var(--down); stroke: none; }
.nx-auth-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 13px; }
.nx-auth-links a, .nx-auth-foot a { color: var(--muted); text-decoration: none; }
.nx-auth-links a:hover, .nx-auth-foot a:hover { color: var(--ink); }
.nx-auth-main { display: grid; place-content: center; padding: 40px 24px; gap: 18px; }
.nx-auth-card { width: min(400px, calc(100vw - 48px)); }
.nx-auth-card h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.nx-auth-lede { margin: 6px 0 24px; color: var(--muted); font-size: 14.5px; }
.nx-auth-card .field input { width: 100%; height: 44px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); border: 0; }
.nx-auth-card .field input:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); }
.nx-auth-submit { width: 100%; height: 44px; font-size: 15px; font-weight: 600; margin-top: 6px; border-radius: 10px; }
.nx-auth-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 0; }
@media (max-width: 860px) {
  .nx-auth { grid-template-columns: minmax(0, 1fr); }
  .nx-auth-art { padding: 22px 24px 26px; border-right: 0; border-bottom: 1px solid var(--hair); gap: 18px; }
  .nx-auth-pitch h2 { font-size: 22px; margin-bottom: 14px; }
  .nx-auth-pitch li { font-size: 14px; }
  .nx-auth-radar { width: 260px; height: 260px; right: -70px; bottom: auto; top: -70px; opacity: 0.35; }
  .nx-auth-main { place-content: start center; padding: 28px 24px 40px; }
}

/* ---------- About and the other public pages (about.html) ---------- */
.nx-doc-page { background: var(--page); }
.nx-doc-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 0 32px; height: 60px;
  background: color-mix(in srgb, var(--page) 95%, transparent); border-bottom: 1px solid var(--hair);
}
.nx-doc-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: center; }
.nx-doc-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; }
.nx-doc-nav a:hover { background: var(--fill); color: var(--ink); }
.nx-doc-cta { white-space: nowrap; text-decoration: none; }
.nx-doc { max-width: 880px; margin: 0 auto; padding: 0 32px 40px; }
.nx-doc section { scroll-margin-top: 80px; }
.nx-doc-hero { padding: 72px 0 40px; }
.nx-doc-hero h1 { margin: 6px 0 18px; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; font-weight: 750; letter-spacing: -0.045em; max-width: 760px; }
.nx-doc .overline { color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }
.nx-doc-lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 700px; margin: 0; }
.nx-doc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.nx-doc-facts div { padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--hair); display: grid; gap: 4px; }
.nx-doc-facts b { font-size: 30px; font-weight: 750; letter-spacing: -0.04em; }
.nx-doc-facts span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.nx-doc-sec { padding: 44px 0; border-top: 1px solid var(--hair); }
.nx-doc-sec h2 { margin: 6px 0 14px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; line-height: 1.12; }
.nx-doc-sec h3 { margin: 26px 0 8px; font-size: 16px; letter-spacing: -0.01em; }
.nx-doc-sec p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; margin: 0 0 12px; }
.nx-doc-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.nx-doc-list li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.nx-doc-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.nx-doc-list b { color: var(--ink); }
.nx-doc-steps { counter-reset: step; list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nx-doc-steps li { counter-increment: step; padding: 18px 20px 18px 58px; position: relative; border-radius: 16px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--hair); color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.nx-doc-steps li::before { content: counter(step); position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.nx-doc-steps b { color: var(--ink); display: block; margin-bottom: 2px; }
.nx-doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 8px; }
.nx-doc-person, .nx-doc-card { padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--hair); }
.nx-doc-person { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.nx-doc-avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 750; font-size: 18px;
  background: var(--accent-soft); color: var(--accent); }
.nx-doc-avatar.ai { background: var(--fill); color: var(--ink-2); font-size: 15px; }
.nx-doc-person b, .nx-doc-card b { display: block; font-size: 15px; }
.nx-doc-person span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; line-height: 1.45; }
.nx-doc-card p { margin: 6px 0 0; font-size: 14px; }
.nx-doc .nx-doc-todo { margin: 8px 0 0; font-size: 13px; color: var(--t-high); }
.nx-doc-table { display: grid; margin: 14px 0 6px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); background: var(--surface); }
.nx-doc-table > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.3fr); gap: 12px; padding: 11px 16px; font-size: 13.5px; border-top: 1px solid var(--hair); }
.nx-doc-table > .head { border-top: 0; background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.nx-doc-table span:first-child { font-weight: 550; }
.nx-doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; max-width: 880px; margin: 0 auto; padding: 22px 32px 40px;
  border-top: 1px solid var(--hair); color: var(--muted); font-size: 13px; }
.nx-doc-foot a { color: var(--muted); }
@media (max-width: 760px) {
  .nx-doc-top { padding: 0 16px; gap: 10px; }
  .nx-doc-nav { justify-content: flex-start; }
  .nx-doc-cta { display: none; }
  .nx-doc { padding: 0 18px 30px; }
  .nx-doc-hero { padding: 40px 0 26px; }
  .nx-doc-facts, .nx-doc-steps { grid-template-columns: minmax(0, 1fr); }
  .nx-doc-table > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nx-doc-table > .head { display: none; }
  .nx-doc-foot { padding: 20px 18px 32px; }
}
