/* Nested List — promo site. One stylesheet, no client JavaScript.
   Tokens mirror src/styles/globals.css so the site reads as the product. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f5f7f9;
  --bg-3: #e8eaec;
  --bg-hover: #f0f2f4;
  --fg: #2a3135;
  --fg-2: #666666;
  --fg-3: #888888;
  --line: #e0e0e0;
  --line-2: #f0f0f0;
  --accent: #00b8d4;
  --halo: #b8bcbf;
  --dot: #333333;
  --chip: #e6eaef;
  --r: 12px;
  --r-sm: 8px;
  --r-xs: 6px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --font: "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-display: "Inter Display", Inter, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --container: 1120px;
  --measure: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #272935;
    --bg-2: #22242e;
    --bg-3: #3d404a;
    --bg-hover: #2f3141;
    --fg: #e3e5e9;
    --fg-2: #8b8e98;
    --fg-3: #6b6e78;
    --line: #3d404a;
    --line-2: #333540;
    --accent: #60a5fa;
    --dot: #e3e5e9;
    --chip: #383c49;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(96, 165, 250, 0.28); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); letter-spacing: -0.01em; }
h4 { font-size: 17px; letter-spacing: 0; }

p { margin: 0; }
p + p { margin-top: 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--measure); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--fg-2); line-height: 1.5; text-wrap: pretty; }
.muted { color: var(--fg-2); }
.small { font-size: 14px; color: var(--fg-3); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { opacity: 0.86; }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions.center { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { font-size: 15px; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-actions .signin { font-size: 15px; color: var(--fg-2); }
.nav-actions .signin:hover { color: var(--fg); text-decoration: none; }

@media (max-width: 720px) {
  .site-header .container { flex-wrap: wrap; row-gap: 6px; }
  .nav-links { order: 3; width: 100%; gap: 18px; margin-left: 0; padding-bottom: 6px; }
  .nav-actions .signin { display: none; }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.band { background: var(--bg-2); }
.section + .section:not(.band) { border-top: 1px solid var(--line-2); }
.band + .band { border-top: 1px solid var(--line-2); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .lead { margin-top: 14px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 56px; text-align: center; }
.hero h1 { max-width: 15ch; margin: 18px auto 0; }
.hero .lead { max-width: 640px; margin: 22px auto 0; }
.hero .actions { margin-top: 32px; }
.hero .fineprint { margin-top: 16px; font-size: 14px; color: var(--fg-3); }
.hero-shot { margin: 56px auto 0; max-width: 1080px; }

@media (max-width: 720px) {
  .hero { padding: 56px 0 40px; }
  .hero-shot { margin-top: 40px; }
}

/* ---------- Mini outline (the brand's self-drawing sketch) ---------- */

.mini { display: inline-flex; flex-direction: column; gap: 9px; }
.mrow { display: flex; align-items: center; }
.mrow:nth-child(2), .mrow:nth-child(3) { margin-left: 22px; }
.mdot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); margin-right: 9px; flex-shrink: 0; }
.mbar { height: 8px; border-radius: 4px; background: var(--bg-3); transform-origin: left center; }
.mrow:nth-child(1) .mbar { width: 84px; }
.mrow:nth-child(2) .mbar { width: 112px; }
.mrow:nth-child(3) .mbar { width: 64px; }
.mrow:nth-child(1) .mdot { animation: mdot1 2400ms ease-out infinite; }
.mrow:nth-child(1) .mbar { animation: mbar1 2400ms ease-out infinite; }
.mrow:nth-child(2) .mdot { animation: mdot2 2400ms ease-out infinite; }
.mrow:nth-child(2) .mbar { animation: mbar2 2400ms ease-out infinite; }
.mrow:nth-child(3) .mdot { animation: mdot3 2400ms ease-out infinite; }
.mrow:nth-child(3) .mbar { animation: mbar3 2400ms ease-out infinite; }
@keyframes mdot1 { 0% { opacity: 0; transform: scale(0.6); } 4% { opacity: 1; transform: scale(1); } 84% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes mbar1 { 0%, 4% { transform: scaleX(0); } 14% { transform: scaleX(1); } 84% { transform: scaleX(1); opacity: 1; } 93%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes mdot2 { 0%, 19% { opacity: 0; transform: scale(0.6); } 23% { opacity: 1; transform: scale(1); } 84% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes mbar2 { 0%, 23% { transform: scaleX(0); } 33% { transform: scaleX(1); } 84% { transform: scaleX(1); opacity: 1; } 93%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes mdot3 { 0%, 38% { opacity: 0; transform: scale(0.6); } 42% { opacity: 1; transform: scale(1); } 84% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes mbar3 { 0%, 42% { transform: scaleX(0); } 52% { transform: scaleX(1); } 84% { transform: scaleX(1); opacity: 1; } 93%, 100% { opacity: 0; transform: scaleX(1); } }
/* Play-once variant (home hero): same drawing, then hold — no fade, no loop. */
.mini.is-once .mrow:nth-child(1) .mdot { animation: mdot1o 1300ms ease-out 1 forwards; }
.mini.is-once .mrow:nth-child(1) .mbar { animation: mbar1o 1300ms ease-out 1 forwards; }
.mini.is-once .mrow:nth-child(2) .mdot { animation: mdot2o 1300ms ease-out 1 forwards; }
.mini.is-once .mrow:nth-child(2) .mbar { animation: mbar2o 1300ms ease-out 1 forwards; }
.mini.is-once .mrow:nth-child(3) .mdot { animation: mdot3o 1300ms ease-out 1 forwards; }
.mini.is-once .mrow:nth-child(3) .mbar { animation: mbar3o 1300ms ease-out 1 forwards; }
@keyframes mdot1o { 0% { opacity: 0; transform: scale(0.6); } 7% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes mbar1o { 0%, 7% { transform: scaleX(0); } 26% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes mdot2o { 0%, 35% { opacity: 0; transform: scale(0.6); } 42% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes mbar2o { 0%, 42% { transform: scaleX(0); } 61% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes mdot3o { 0%, 70% { opacity: 0; transform: scale(0.6); } 77% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes mbar3o { 0%, 77% { transform: scaleX(0); } 96% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .mdot, .mbar { animation: none !important; opacity: 1; transform: none; }
}

/* ---------- Screenshot frames ---------- */

.frame {
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  background: var(--bg);
  overflow: hidden;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-3); opacity: 0.35; }
.frame-bar span {
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  color: var(--fg-3);
  background: var(--bg);
  border-radius: 6px;
  padding: 3px 12px;
  min-width: 180px;
  text-align: center;
}
.frame img { width: 100%; }

.shot { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; background: var(--bg); }
.shot img { width: 100%; }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--fg-3); }

.phone {
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: var(--fg);
  box-shadow: var(--shadow);
}
.phone > * { border-radius: 32px; overflow: hidden; }
.phone img { width: 100%; }

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.feature + .feature { margin-top: 96px; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy h2, .feature-copy h3 { margin-bottom: 14px; }
.feature-copy .lead { font-size: 17px; }
.feature-copy .proof {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 15px;
  color: var(--fg-3);
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-copy { order: 0; }
  .feature + .feature { margin-top: 64px; }
}

/* ---------- Grids and cards ---------- */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* An odd number of cards: flex-wrap centres the last row. */
.cards-flex { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cards-flex > .card { flex: 0 1 calc((100% - 48px) / 3); min-width: 240px; }

.pillar h3 { margin: 14px 0 8px; }
.pillar p { color: var(--fg-2); font-size: 16px; }
.pillar svg { width: 28px; height: 28px; color: var(--fg); }

.card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card:hover { text-decoration: none; border-color: var(--fg-3); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--fg-2); font-size: 15px; }
.card .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--fg); }
.card-shot { margin: -24px -24px 18px; border-bottom: 1px solid var(--line-2); }
.card-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.list li { position: relative; padding-left: 26px; }
.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot);
}
.list strong { font-weight: 600; }
.list .proof { display: block; margin-top: 2px; font-size: 14px; color: var(--fg-3); }

/* ---------- Stat line ---------- */

.stat { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(28px, 4vw, 44px); }

/* ---------- Compare table ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.compare thead th { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); background: var(--bg-2); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; width: 32%; }
.compare .yes::before { content: "●"; color: var(--fg); margin-right: 8px; font-size: 11px; vertical-align: 1px; }
.compare .partial::before { content: "◐"; color: var(--fg-3); margin-right: 8px; font-size: 12px; vertical-align: 1px; }
.compare .no { color: var(--fg-3); }
.compare .no::before { content: "○"; margin-right: 8px; font-size: 12px; vertical-align: 1px; }

.verdict { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.verdict .card h3 { font-size: 18px; }
.verdict ul { margin: 12px 0 0; padding-left: 18px; color: var(--fg-2); font-size: 15px; }
.verdict li + li { margin-top: 6px; }

/* ---------- Prose ---------- */

.prose { max-width: var(--measure); }
.prose h2 { margin: 48px 0 14px; font-size: 26px; }
.prose h3 { margin: 32px 0 10px; }
.prose ul { padding-left: 22px; color: var(--fg-2); }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--fg-3); }

/* ---------- Keyboard table ---------- */

kbd {
  display: inline-block;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--fg);
  white-space: nowrap;
}
.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys td { padding: 10px 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.keys td:first-child { width: 42%; }
.keys tr:last-child td { border-bottom: 0; }

/* ---------- CTA ---------- */

.cta { text-align: center; padding: 104px 0; }
.cta h2 { max-width: 16ch; margin: 18px auto 0; }
.cta .lead { max-width: 560px; margin: 18px auto 0; }
.cta .actions { margin-top: 30px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line-2); padding: 56px 0 40px; font-size: 14px; color: var(--fg-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-grid h4 { margin-bottom: 12px; color: var(--fg); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--fg); }
.footer-brand p { margin-top: 10px; max-width: 280px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: var(--fg-3); font-size: 13px; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- OG card ---------- */

.og { width: 1200px; height: 630px; overflow: hidden; position: relative; background: #ffffff; color: #2a3135; }
.og .og-copy { position: absolute; left: 72px; top: 96px; width: 520px; }
.og .brand { font-size: 30px; }
.og .brand svg { width: 40px; height: 40px; }
.og h1 { font-size: 58px; margin-top: 40px; color: #24272a; }
.og p { margin-top: 22px; font-size: 23px; color: #676d70; line-height: 1.4; }
.og .og-shot { position: absolute; left: 640px; top: 90px; width: 900px; }
.og .frame { box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18); }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 120px 0; }
.notfound .mini { margin-bottom: 28px; }

/* =====================================================================
   Outline beats (.nl-*) — the app's row anatomy rebuilt for the lab.
   Values are copied from src/components/NodeItem/NodeItem.module.css,
   src/components/OutlineView/OutlineView.module.css,
   src/components/DayReferences/DayReferences.module.css and the chip/tag
   rules in src/styles/globals.css; site/outline.test.tsx guards the
   load-bearing literals so an app change fails `npm run check` here.
   ===================================================================== */

.nl-app {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7f9;
  --bg-hover: #f0f2f4;
  --bg-active: #e8eaec;
  --bg-subtle: #edeef0;
  --bg-tertiary: #e0e0e0;
  --text-primary: #2a3135;
  --text-secondary: #666666;
  --text-tertiary: #888888;
  --text-placeholder: #aaaaaa;
  --accent-primary: #00b8d4;
  --accent-light: #d6e7f3;
  --strip-selected-bg: #c9ced3;
  --chip-bg: #e6eaef;
  --chip-bg-hover: #d9dee4;
  --border-color: #e0e0e0;
  --border-light: #f0f0f0;
  --highlight-yellow: #fff59d;
  --selection-bg: #c7e0f0;
  --complete-color: #b1b3b4;
  --tag-color: #737373;
  --link-color: #6ab8ed;
  --pin-color: #ffc107;
  --icon-muted: #4c5155;
  --nav-text: #abafb1;
  --header-icon: #898b8c;
  --bullet-dot: #333333;
  --bullet-collapsed: #dde0e2;
  --bullet-hover: #b8bcbf;
  --calendar-event-bg: #e8f4fd;
  --calendar-event-border: var(--accent-primary);
  --calendar-event-past-bg: #eef1f3;
  --calendar-event-past-border: #9ec5d4;
  --calendar-event-external-bg: #f0e6ff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --header-height: 48px;
  --indent-width: 37px;
  --node-padding: 2px 0;
  --line-height: 1.25;
  --font-size-base: 16px;
  --font-size-small: 13px;
  --font-size-title: 27px;
  font-family: var(--font);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--text-primary);
  background: var(--bg-primary);
  letter-spacing: normal;
  text-align: left; /* scenes sit inside centred heroes and cards */
  text-wrap: initial;
  /* globals.css sets html { -webkit-font-smoothing: auto }; the site body is antialiased */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
@media (prefers-color-scheme: dark) {
  .nl-app {
    --bg-primary: #272935;
    --bg-secondary: #22242e;
    --bg-hover: #2f3141;
    --bg-active: #3D404A;
    --bg-subtle: #2d2f3b;
    --bg-tertiary: #3D404A;
    --text-primary: #E3E5E9;
    --text-secondary: #8B8E98;
    --text-tertiary: #6b6e78;
    --text-placeholder: #52555f;
    --accent-primary: #60A5FA;
    --accent-light: #1e2a4a;
    --strip-selected-bg: #454a57;
    --chip-bg: #383c49;
    --chip-bg-hover: #464b59;
    --border-color: #3D404A;
    --border-light: #333540;
    --highlight-yellow: #5c4a1a;
    --selection-bg: #1e2a4a;
    --complete-color: #52555f;
    --tag-color: #9498a2;
    --link-color: #7BB8FC;
    --pin-color: #facc15;
    --icon-muted: #8B8E98;
    --nav-text: #6b6e78;
    --header-icon: #7b7e88;
    --bullet-dot: #E3E5E9;
    --bullet-collapsed: #454854;
    --bullet-hover: #52555f;
    --calendar-event-bg: #1e2d4a;
    --calendar-event-past-bg: #262830;
    --calendar-event-past-border: #4a6a8a;
    --calendar-event-external-bg: #2d254a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.55);
  }
}
@media (max-width: 640px) { .nl-app { --indent-width: 22px; } }

.nl-item { --indent: calc(var(--depth, 0) * var(--indent-width)); }
.nl-done { --completed-ink: var(--complete-color); --completed-surface: var(--bg-secondary); }

.nl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: var(--node-padding);
  margin-left: var(--indent);
  position: relative;
  border-radius: 4px;
}

/* The app's always-present 16×24 chevron box (opacity 0 unless hovered; shown
   for parents on touch devices). It sets the row height. */
.nl-chevron {
  width: 16px;
  height: 24px;
  margin-left: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--icon-muted);
  visibility: hidden;
}
.nl-chevron svg { transform: scale(1.14) rotate(90deg); }
.nl-chevron.is-collapsed svg { transform: scale(1.14) rotate(0deg); }
@media (hover: none) { .nl-chevron.has-children { visibility: visible; } }

.nl-bullet {
  width: 22px;
  height: 22px;
  margin-left: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
}
.nl-bullet::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s ease;
}
.nl-bullet:hover::before { background: var(--bullet-hover); }
.nl-bullet.is-collapsed::before { background: var(--bullet-collapsed); }
.nl-bullet.is-emoji::before { width: 22px; height: 22px; border-radius: 8px; }
.nl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--completed-ink, var(--bullet-dot)); position: relative; z-index: 1; }
.nl-diamond { width: 6px; height: 6px; transform: rotate(45deg); background: var(--completed-ink, var(--bullet-dot)); position: relative; z-index: 1; }
.nl-emoji { font-size: 20px; line-height: 1; position: relative; z-index: 1; }
.nl-done .nl-emoji { filter: grayscale(100%); opacity: 0.6; }

.nl-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  flex: 1 1 0;
  min-width: 0;
  min-height: 22px;
  padding-top: 1px;
  margin-left: 3px;
  max-width: 655px;
}
.nl-wrap.has-time { display: block; }
.nl-wrap.has-time .nl-text { display: inline; }
.nl-text {
  flex: 1 1 0;
  min-width: 0;
  line-height: var(--line-height);
  overflow-wrap: break-word;
  color: var(--completed-ink, var(--text-primary));
}
.nl-text.is-done { text-decoration: line-through; }
.nl-time {
  font-size: var(--font-size-small);
  color: var(--completed-ink, var(--text-placeholder));
  white-space: nowrap;
  margin-left: 6px;
  line-height: var(--line-height);
}
.nl-note {
  flex-basis: calc(100% + 1px);
  width: 100%;
  font-size: var(--font-size-small);
  color: var(--completed-ink, var(--text-tertiary));
  line-height: 1.4;
  min-height: 18px;
  white-space: pre-wrap;
}
.nl-children { position: relative; }
.nl-children::before {
  content: "";
  position: absolute;
  left: calc(var(--indent) + 10px);
  top: 0;
  bottom: 8px;
  width: 1px;
  background: var(--bg-subtle);
}

/* inline markup = the app's stored HTML */
.nl-app span[data-date] {
  font-size: var(--font-size-base);
  font-weight: 400;
  padding: 0 0.45em;
  border-radius: 0.55em;
  background: var(--completed-surface, var(--chip-bg));
  color: var(--completed-ink, var(--text-primary));
  white-space: nowrap;
}
.nl-app [data-tag] { color: var(--tag-color); text-decoration: underline; text-underline-offset: 2px; }
.nl-app [data-tag] [data-tag-symbol] { display: inline-block; text-decoration: none; }
.nl-text a, .nl-note a { color: var(--completed-ink, var(--link-color)); text-decoration: underline; text-underline-offset: auto; }
.nl-text [data-node-ref] { color: inherit; text-decoration: underline; text-decoration-color: var(--completed-ink, var(--link-color)); }

/* page chrome */
.nl-page { padding-top: 60px; }
.nl-page-bare { padding-top: 0; }
@media (max-width: 640px) { .nl-page { padding-top: 16px; } .nl-page-bare { padding-top: 0; } }
.nl-head { padding: 0 0 16px 15px; }
.nl-page-emoji { font-size: 65px; line-height: 1; padding: 4px; margin-bottom: 8px; display: block; width: fit-content; border-radius: 8px; }
.nl-title {
  font-family: "Inter Display", Inter, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: var(--font-size-title);
  font-weight: 900;
  line-height: 1.3;
  min-height: 1.3em;
  color: var(--text-primary);
}
.nl-title span[data-date] { font-size: var(--font-size-title); font-weight: 700; }
.nl-pin { display: inline-flex; align-items: center; gap: 4px; vertical-align: baseline; margin-left: 8px; padding: 2px 4px; border-radius: 4px; color: var(--pin-color); }
.nl-pin svg { width: 15px; height: 15px; }
.nl-subtitle { margin-top: 8px; font-size: var(--font-size-base); color: var(--text-tertiary); line-height: 1.5; }
.nl-list { padding-left: 15px; }
.nl-list.is-root { padding-left: 20px; }
.nl-add { width: 21px; height: 21px; margin-top: 4px; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); border-radius: 50%; }
@media (pointer: coarse) { .nl-add { width: 28px; height: 28px; background: var(--bg-active); color: var(--text-secondary); } }
/* margin 28px + the app's .nodeList padding-bottom 100px; --nl-refs-gap lets a
   marketing use tighten it (the lab keeps the faithful default) */
.nl-refs { margin-top: calc(28px + var(--nl-refs-gap, 100px)); padding-top: 14px; padding-left: 15px; border-top: 1px solid var(--border-light); }
.nl-ref-block { margin-bottom: 4px; }
.nl-ref-block .nl-list { padding-left: 0; }

/* ---------- Lab page ---------- */

.lab-judge { max-width: var(--measure); color: var(--fg-2); padding-left: 22px; }
.lab-judge li + li { margin-top: 6px; }
.lab-real { margin-top: 28px; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; margin-top: 28px; }
.lab-beat { padding: 24px 24px 24px 20px; }
/* Under 640px the app's content column is the viewport minus 12px a side; let
   the real-size beat bleed past the site container so its rows wrap identically. */
@media (max-width: 640px) {
  .lab-real { margin-left: -24px; margin-right: -24px; }
  .lab-real .shot { border-left: 0; border-right: 0; border-radius: 0; }
  .lab-real .lab-beat { padding: 16px 12px; }
  .lab-real figcaption { padding: 0 24px; }
}
.lab-zoom { zoom: 0.67; }
.lab-checks { margin-top: 20px; }

/* =====================================================================
   Scenes: fit-to-column scaling and the phone switch (owner decision:
   desktop scenes scale like a crisp screenshot; under 640px the phone
   scene shows at true size).
   ===================================================================== */

@property --scene-zoom { syntax: '<number>'; inherits: true; initial-value: 1; }
.scene-fit { container-type: inline-size; overflow: hidden; }
/* tan(atan2(len, len)) = a plain ratio, computed on the UNZOOMED stage. */
.scene-stage { --scene-zoom: min(1, tan(atan2(100cqw, calc(var(--scene-w) * 1px)))); }
.scene { zoom: var(--scene-zoom); position: relative; overflow: hidden; }
@supports not (zoom: 1) {
  .scene-stage { position: relative; aspect-ratio: var(--scene-w) / var(--scene-h); }
  .scene { position: absolute; top: 0; left: 0; transform: scale(var(--scene-zoom)); transform-origin: 0 0; }
}
.scene-phone { display: none; }
@media (max-width: 640px) {
  .scene-desktop { display: none; }
  .scene-phone { display: block; }
  /* a true-size phone scene bleeds past the 24px page padding: 390px wide like the app */
  .scene-phone.scene-true { margin: 0 -24px; }
  .scene-phone.scene-true .scene { margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .scene-phone .scene-fit { overflow: hidden; }
}

/* ---------- Fixed frames: desktop values re-pinned after the lab's reflowing
   media rules; the phone set is a CLASS (.nl-touch), never a media query,
   because the visitor's device decides hover/pointer, not the scene. ---------- */

.nl-app.nl-fixed { --indent-width: 37px; --header-height: 48px; }
.nl-fixed .nl-chevron { visibility: hidden; }
.nl-fixed .nl-add { width: 21px; height: 21px; background: transparent; color: var(--text-tertiary); }
.nl-fixed .nl-page { padding-top: 60px; }
.nl-fixed .nl-outline > .nl-page { padding-top: 0; }
.nl-app.nl-touch { --indent-width: 22px; --header-height: 56px; }
.nl-touch .nl-chevron.has-children { visibility: visible; }
.nl-touch .nl-add { width: 28px; height: 28px; background: var(--bg-active); color: var(--text-secondary); }
.nl-touch .nl-outline { padding-top: 16px; }
.nl-touch .nl-content { padding: var(--header-height) 12px 420px; }
.nl-touch .nl-header { padding-top: 0; }

/* ---------- App shell (src/components/App.module.css) ---------- */

.nl-frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--bg-primary); }
.nl-bare { width: 100%; height: 100%; overflow: hidden; background: var(--bg-primary); }
.nl-main { position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow: hidden; }
.nl-main.is-sidebar { left: 260px; }
.nl-main.is-calendar { right: 320px; }
.nl-touch .nl-main.is-sidebar { left: 0; }
.nl-touch .nl-main.is-calendar { right: 0; }
.nl-content { padding: var(--header-height) 40px 440px; max-width: 900px; margin: 0 auto; width: 100%; }
.nl-outline { padding-top: 60px; }

/* ---------- Header (Header.module.css, SearchBar.module.css, Breadcrumbs.module.css) ---------- */

.nl-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
  min-height: var(--header-height);
}
.nl-hleft { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.nl-hright { display: flex; align-items: center; gap: 8px; }
.nl-homegroup { display: flex; align-items: center; flex: 1; min-width: 0; overflow: hidden; margin-left: 12px; }
.nl-ibtn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 4px; color: var(--header-icon); flex-shrink: 0; }
.nl-ibtn.is-round { border-radius: 50%; }
.nl-ibtn.is-active { color: var(--accent-primary); }
.nl-touch .nl-ibtn { width: 40px; height: 40px; }
.nl-search { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg-secondary); border-radius: 6px; border: 1px solid transparent; min-width: 180px; }
.nl-search-icon { display: flex; color: var(--text-tertiary); flex-shrink: 0; }
.nl-search-ph { width: 173px; font-size: var(--font-size-base); line-height: normal; color: var(--text-placeholder); }
.nl-touch .nl-search { width: 40px; min-width: 40px; height: 40px; padding: 0; gap: 0; justify-content: center; background: transparent; border-color: transparent; border-radius: 50%; }
.nl-touch .nl-search-icon { color: var(--header-icon); }
.nl-touch .nl-search-ph { display: none; }
.nl-crumbs { display: flex; align-items: center; font-size: 14px; overflow: hidden; flex: 1; min-width: 0; }
.nl-crumbs-inner { display: flex; align-items: center; overflow: hidden; }
.nl-crumbw { display: flex; align-items: center; flex-shrink: 0; }
.nl-sep { color: var(--bullet-collapsed); margin: 0 2px; display: flex; align-items: center; flex-shrink: 0; }
.nl-crumb { color: var(--nav-text); padding: 3px 6px; border-radius: 5px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; line-height: normal; }
.nl-crumb-emoji { font-size: 12px; margin-right: 4px; }

/* ---------- Sidebar (Sidebar.module.css, SidebarNodeItem.tsx) ---------- */

.nl-sidebar { position: absolute; left: 0; top: 0; bottom: 0; width: 260px; background: var(--bg-secondary); border-right: 1px solid var(--border-light); display: flex; flex-direction: column; overflow: hidden; z-index: 200; }
.nl-ssection { padding: 12px 6px; }
.nl-sheader { display: flex; align-items: center; gap: 4px; padding: 8px 12px 8px 0; font-size: var(--font-size-small); font-weight: 500; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.nl-sheader svg { flex-shrink: 0; }
.nl-sspacer { width: 16px; flex-shrink: 0; }
.nl-stoggle { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-tertiary); }
.nl-stoggle.is-open svg { transform: rotate(90deg); }
.nl-slist { display: flex; flex-direction: column; gap: 2px; }
.nl-srow { display: flex; align-items: center; gap: 2px; border-radius: 4px; }
.nl-srow.is-active { background: var(--bg-hover); }
.nl-srow .nl-stoggle { height: 24px; }
.nl-srow .nl-stoggle.no-children { opacity: 0.25; }
.nl-scontent { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 6px 6px 6px 2px; color: var(--text-secondary); font-size: var(--font-size-base); overflow: hidden; }
.nl-scontent.is-active { font-weight: 600; }
.nl-stext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-semoji { font-size: 14px; line-height: 1; flex-shrink: 0; display: inline-block; transform: scale(1.3); }
.nl-sfooter { margin-top: auto; background: var(--bg-secondary); border-top: 1px solid var(--border-light); padding: 8px 8px 8px; }
.nl-snav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 0; border-radius: 6px; color: var(--text-primary); font-size: var(--font-size-base); }
.nl-snav svg { color: var(--text-secondary); flex-shrink: 0; }

/* ---------- Lab gallery ---------- */

.lab-natural { margin: 28px calc(50% - 50vw) 0; padding: 0 24px; overflow-x: auto; }
.lab-natural .scene-stage { --scene-zoom: 1; }
.lab-natural .scene { margin: 0 auto; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }

/* ---------- Bare frames ---------- */
.nl-bare .nl-list { padding-left: var(--nl-inset, 0px); }
.nl-bare .nl-refs { padding-left: 15px; }
.nl-bare .nl-refs .nl-list { padding-left: 0; }

/* ---------- Day page header (DayHeader.module.css, DayStrip.tsx) ---------- */

.nl-dayheader { margin-bottom: 0; padding-bottom: 16px; padding-left: 0; }
.nl-controls { position: relative; display: flex; align-items: center; gap: 2px; margin-top: 10px; }
.nl-strip { position: relative; display: flex; align-items: center; min-width: 0; max-width: 100%; flex: 1; }
.nl-strip-scroller { position: relative; display: flex; align-items: flex-end; gap: 6px; padding: 2px 0; overflow: hidden; min-width: 0; }
.nl-strip-group { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex-shrink: 0; }
.nl-strip-month { width: 0; height: 12px; overflow: visible; white-space: nowrap; font-size: 9px; font-weight: 700; line-height: 12px; color: var(--text-tertiary); }
.nl-strip-row { display: flex; gap: 6px; }
.nl-strip-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 58px; height: 58px; border-radius: 11px; background: var(--bg-secondary); color: var(--text-secondary); flex-shrink: 0; }
.nl-strip-day.is-current { background: var(--strip-selected-bg); }
.nl-strip-wd { font-size: 11px; font-weight: 400; color: var(--text-secondary); line-height: 1.2; }
.nl-strip-num { font-size: 17px; font-weight: 500; color: var(--text-primary); line-height: 1.25; }
.nl-strip-dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.nl-strip-dot.is-visible { background: var(--text-tertiary); }
.nl-strip-tag { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font-size: 9px; font-weight: 700; line-height: 12px; text-transform: uppercase; color: var(--accent-primary); white-space: nowrap; }

/* ---------- Calendar panel (CalendarPanel.module.css) ---------- */

.nl-calendar { position: absolute; right: 0; top: 0; bottom: 0; width: 320px; background: var(--bg-secondary); border-left: 1px solid var(--border-light); display: flex; flex-direction: column; z-index: 200; overflow: hidden; }
.nl-cal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 6px; flex-shrink: 0; }
.nl-cal-title { font-size: var(--font-size-small); font-weight: 500; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.nl-cal-clear { font-size: 11px; font-weight: 500; color: var(--text-tertiary); padding: 3px 9px; border-radius: 5px; line-height: normal; }
.nl-cal-divider { height: 1px; background: var(--border-light); margin: 0 10px; flex-shrink: 0; }
.nl-cal-wrap { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.nl-cal-content { position: absolute; left: 0; right: 0; height: 1440px; }
.nl-hour { position: absolute; left: 0; right: 0; height: 60px; border-top: 1px solid var(--border-light); }
.nl-hour-label { position: absolute; left: 4px; width: 38px; top: -7px; font-size: 11px; color: var(--text-tertiary); background: var(--bg-secondary); text-align: right; line-height: var(--line-height); }
.nl-half { position: absolute; left: 45px; right: 0; top: 30px; height: 1px; border-top: 1px dashed var(--border-light); opacity: 0.5; }
.nl-now { position: absolute; left: 0; right: 0; z-index: 10; }
.nl-now-line { position: absolute; left: 40px; right: 0; height: 2px; background: var(--text-tertiary); }
.nl-now-dot { position: absolute; left: 37px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--text-tertiary); }
.nl-block { position: absolute; left: 50px; right: 10px; box-sizing: border-box; border-radius: 4px; background: var(--calendar-event-bg); border-left: 3px solid var(--calendar-event-border); padding: 4px 8px; overflow: hidden; z-index: 5; outline: 2px solid var(--bg-secondary); }
.nl-block.is-compact { padding-top: 0; padding-bottom: 0; }
.nl-block.is-past { background: var(--calendar-event-past-bg); border-left-color: var(--calendar-event-past-border); }
.nl-block.is-past .nl-block-title { color: var(--text-secondary); }
.nl-block.is-external { background: var(--calendar-event-external-bg); z-index: 4; }
.nl-block.is-external.is-past { opacity: 0.55; }
.nl-block-title { font-size: var(--font-size-small); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.nl-block-text { overflow: hidden; text-overflow: ellipsis; }
.nl-block-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bullet-dot); flex-shrink: 0; }
.nl-block-inline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nl-block-inline .nl-block-title { flex: 1; min-width: 0; }
.nl-block-time-inline { font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; white-space: nowrap; }
.nl-block-time { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }

/* ---------- Attachments (FileAttachments.module.css, useLShapeLayout.ts) ---------- */

.nl-attach { flex: 0 0 100%; min-width: 0; }
.nl-attach-grid { position: relative; width: 100%; margin-top: 4px; border-radius: 8px; }
.nl-card { position: absolute; overflow: hidden; border-radius: 8px; background-color: var(--bg-secondary); }
.nl-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nl-pdf { position: relative; width: 100%; height: 100%; background: #ffffff; color: #000000; font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; overflow: hidden; }
.nl-pdf-title { position: absolute; white-space: nowrap; }
.nl-pdf-line { position: absolute; white-space: nowrap; }

/* ---------- Row ⋯ and the backlinks panel (NodeItem.module.css, BacklinksPanel.module.css) ---------- */

.nl-menu { position: relative; width: 24px; height: 24px; margin-top: -1px; display: flex; align-items: center; justify-content: center; color: var(--icon-muted); flex-shrink: 0; border-radius: 50%; background: var(--chip-bg-hover); }
.nl-menu.is-root { margin-left: -39px; margin-right: 15px; }
.nl-menu.is-parent { margin-left: calc(-39px - var(--indent-width) / 2); margin-right: calc(15px + var(--indent-width) / 2); }
.nl-menu.is-leaf { margin-left: -24px; margin-right: 0; }
.nl-menu::before { content: ""; width: 20px; height: 20px; background:
  radial-gradient(circle at 5.2px 10px, currentcolor 1.8px, transparent 2.2px),
  radial-gradient(circle at 10px 10px, currentcolor 1.8px, transparent 2.2px),
  radial-gradient(circle at 14.8px 10px, currentcolor 1.8px, transparent 2.2px); }
.nl-backlinks { position: absolute; top: calc(100% + 4px); left: 0; z-index: 1200; width: 320px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; max-height: 320px; text-align: left; }
.nl-bl-header { padding: 8px 12px 6px; font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.4px; line-height: normal; }
.nl-bl-list { padding: 0 4px 6px; display: flex; flex-direction: column; }
.nl-bl-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 6px 8px; border-radius: 6px; }
.nl-bl-row.is-selected { background: var(--bg-hover); }
.nl-bl-snippet { font-size: 13.5px; line-height: normal; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nl-bl-crumb { font-size: 11.5px; line-height: normal; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- Overlays: a window into a larger frame ---------- */
.nl-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; }
.nl-viewport-inner { position: absolute; }
.nl-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); z-index: 2000; }

/* ---------- Search palette (CommandPalette.module.css) ---------- */
.nl-palette { position: absolute; z-index: 2001; display: flex; flex-direction: column; width: 640px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); overflow: hidden; text-align: left; }
.nl-pinput { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-color); }
.nl-pinput-icon { display: flex; flex-shrink: 0; color: var(--text-tertiary); }
.nl-pquery { flex: 1; min-width: 0; font-size: 16px; line-height: normal; color: var(--text-primary); }
.nl-presults { padding: 6px; }
.nl-psection { padding: 6px 10px 2px; font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }
.nl-psection[data-semantic-section] { margin-top: 6px; }
.nl-prow { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px 10px; border-radius: 6px; line-height: normal; }
.nl-prow.is-selected { background: var(--bg-hover); }
.nl-prow-text { flex: 1; min-width: 0; }
.nl-pcrumb { overflow: hidden; font-size: 11px; color: var(--text-tertiary); text-overflow: ellipsis; white-space: nowrap; }
.nl-ptitle { overflow: hidden; font-size: 14px; color: var(--text-primary); text-overflow: ellipsis; white-space: nowrap; }
.nl-ptitle mark { color: inherit; background: rgba(250, 204, 21, 0.4); border-radius: 2px; }
.nl-psnippet { display: flex; gap: 6px; align-items: baseline; overflow: hidden; margin-top: 2px; font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.nl-pchip { flex-shrink: 0; padding: 0 5px; font-size: 10px; line-height: 15px; color: var(--text-tertiary); background: var(--bg-secondary); border-radius: 3px; }
.nl-askai { display: flex; gap: 8px; align-items: center; margin-top: 4px; padding: 9px 10px; font-size: 13px; color: var(--text-secondary); border-top: 1px solid var(--border-color); }
.nl-askai-icon { color: var(--accent-primary); }
.nl-askai-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-soon { flex-shrink: 0; padding: 0 5px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-tertiary); background: var(--bg-secondary); border-radius: 3px; }

/* ---------- Settings dialog (SettingsDialog.module.css, desktop) ---------- */
.nl-dialog { position: absolute; z-index: 2001; display: flex; flex-direction: column; width: 760px; height: 640px; overflow: hidden; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); text-align: left; }
.nl-dlg-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--border-color); }
.nl-dlg-title { color: var(--text-primary); font-size: 16px; font-weight: 600; line-height: normal; }
.nl-dlg-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--text-tertiary); border-radius: 6px; }
.nl-dlg-body { display: grid; flex: 1; grid-template-columns: 180px minmax(0, 1fr); min-height: 0; }
.nl-dlg-nav { min-height: 0; padding: 12px; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
.nl-dlg-cat { display: flex; align-items: center; min-height: 40px; padding: 9px 10px; color: var(--text-secondary); font-size: 14px; font-weight: 500; line-height: normal; border-radius: 7px; }
.nl-dlg-cat.is-active { color: var(--text-primary); background: var(--bg-active); }
.nl-dlg-content { min-width: 0; min-height: 0; padding: 24px 36px 32px 28px; overflow: hidden; } /* 28px + the app's 8px stable scrollbar gutter */
.nl-dlg-panel-title { margin: 0 0 16px; color: var(--text-primary); font-size: 18px; font-weight: 600; line-height: normal; }
.nl-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; min-height: 52px; padding: 8px 0; }
.nl-setting-text { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.nl-setting-name { color: var(--text-primary); font-size: 14px; }
.nl-setting-hint { color: var(--text-tertiary); font-size: var(--font-size-small); }
.nl-switch { position: relative; flex-shrink: 0; display: block; width: 36px; height: 20px; background: var(--bg-active); border-radius: 10px; }
.nl-switch::after { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; content: ""; background: var(--bg-primary); border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.nl-switch.is-on { background: var(--accent-primary); }
.nl-switch.is-on::after { transform: translateX(16px); }
@media (prefers-color-scheme: dark) {
  .nl-switch.is-theme { background: var(--accent-primary); }
  .nl-switch.is-theme::after { transform: translateX(16px); }
}

/* ---------- "Add icon" strip in flow (NodeHoverMenu.module.css, hover: none) ---------- */
.nl-hover-strip { display: flex; align-items: center; gap: 4px; padding-bottom: 4px; }
.nl-hover-btn { display: flex; align-items: center; gap: 4px; padding: 4px 8px; font-size: 14px; line-height: normal; color: var(--text-placeholder); border-radius: 4px; white-space: nowrap; }
.nl-hover-text { color: var(--text-placeholder); }

/* ---------- Scenes on the public pages ---------- */
.scene-true .scene-stage { --scene-zoom: 1; }
.scene-fluid .nl-fluid { padding: 16px 12px; background: var(--bg-primary); }
.card-shot { height: 190px; overflow: hidden; }
.card-shot .scene-fit { overflow: visible; }
.og .scene-fit { overflow: visible; }
