/* Nolgard design system. Suprematism: flat planes, paper canvas, ink lines, a strict triad of accents. */
:root {
  color-scheme: light dark;
  --nf-paper: #F2EEE3;
  --nf-ink: #121212;
  --nf-muted: #6E6A60;
  --nf-red: #D3291D;
  --nf-ochre: #E2A41A;
  --nf-blue: #1C3D92;
  --nf-line: var(--nf-ink);
  --nf-human: var(--nf-blue);
  --nf-suspicious: var(--nf-ochre);
  --nf-bot: var(--nf-red);
  --nf-font: "Futura PT", Futura, "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --nf-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nf-gap: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --nf-paper: #0F0F0E;
    --nf-ink: #F2EEE3;
    --nf-muted: #A29D91;
    --nf-blue: #4C73D9;
  }
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nf-paper);
  color: var(--nf-ink);
  font: 16px/1.5 var(--nf-font);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--nf-red); }
code { font-family: var(--nf-mono); font-size: .92em; }
img, svg { max-width: 100%; }
hr { border: 0; border-top: 2px solid var(--nf-line); margin: var(--nf-gap) 0; }
::selection { background: var(--nf-red); color: #F2EEE3; }
:focus-visible { outline: 3px solid var(--nf-red); outline-offset: 2px; }
/* Route changes move focus to the page heading for screen readers; that is not a keyboard target. */
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.nf-muted { color: var(--nf-muted); }
.nf-label, .nf-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.nf-eyebrow { display: inline-block; margin-bottom: 12px; color: var(--nf-red); }
.nf-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Layout ---- */
.nf-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.nf-header { border-bottom: 2px solid var(--nf-line); background: var(--nf-paper); position: relative; z-index: 2; }
.nf-header > .nf-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.nf-logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 20px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--nf-ink);
}
.nf-logo::before {
  content: ""; width: 22px; height: 22px; background: var(--nf-ink); flex: none;
  box-shadow: 9px -7px 0 -4px var(--nf-red);
}
.nf-logo__mark { position: relative; width: 26px; height: 26px; flex: none; }
.nf-logo:has(.nf-logo__mark)::before { content: none; }
.nf-logo__mark::before { content: ""; position: absolute; left: 0; bottom: 0; width: 20px; height: 20px; background: var(--nf-ink); }
.nf-logo__mark::after { content: ""; position: absolute; right: 0; top: 0; width: 11px; height: 11px; background: var(--nf-red); transform: rotate(-12deg); }
.nf-logo:hover { color: var(--nf-ink); }
.nf-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nf-nav a {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nf-nav a:hover, .nf-nav a[aria-current] { border-bottom-color: var(--nf-red); color: var(--nf-ink); }
.nf-footer { border-top: 2px solid var(--nf-line); padding: 32px 0; margin-top: 64px; font-size: 14px; }
.nf-footer > .nf-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.nf-section { padding-block: 72px; position: relative; }
.nf-section + .nf-section { border-top: 2px solid var(--nf-line); }
.nf-grid { display: grid; gap: var(--nf-gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.nf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- Controls ---- */
.nf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: 700 14px/1.1 var(--nf-font); text-transform: uppercase; letter-spacing: .08em;
  color: var(--nf-ink); background: var(--nf-paper);
  border: 2px solid var(--nf-line); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.nf-btn:hover { color: var(--nf-ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--nf-ink); }
.nf-btn:active { transform: none; box-shadow: none; }
.nf-btn:disabled, .nf-btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.nf-btn--primary { background: var(--nf-ink); color: var(--nf-paper); }
.nf-btn--primary:hover { color: var(--nf-paper); box-shadow: 4px 4px 0 var(--nf-red); }
.nf-btn--red { background: var(--nf-red); border-color: var(--nf-red); color: #F2EEE3; }
.nf-btn--red:hover { color: #F2EEE3; box-shadow: 4px 4px 0 var(--nf-ink); }
.nf-btn--ghost { background: transparent; border-color: transparent; }
.nf-btn--ghost:hover { border-color: var(--nf-line); box-shadow: none; transform: none; }
.nf-btn--small { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.nf-input, .nf-select {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  font: 16px/1.3 var(--nf-font); color: var(--nf-ink); background: var(--nf-paper);
  border: 2px solid var(--nf-line);
}
.nf-input::placeholder { color: var(--nf-muted); }
.nf-input:focus-visible, .nf-select:focus-visible { outline-offset: 0; }
.nf-input[aria-invalid=true] { border-color: var(--nf-red); }
textarea.nf-input { min-height: 96px; resize: vertical; }
.nf-select { padding-right: 32px; cursor: pointer; }
.nf-field { display: grid; gap: 6px; margin: 0 0 18px; }
.nf-field .nf-label { color: var(--nf-ink); }
.nf-hint { font-size: 13px; color: var(--nf-muted); }
.nf-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.nf-check input, input.nf-check {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 20px; height: 20px; border: 2px solid var(--nf-line); background: var(--nf-paper); cursor: pointer;
}
.nf-check input[type=radio], input.nf-check[type=radio] { border-radius: 50%; }
.nf-check input:checked, input.nf-check:checked { background: var(--nf-ink); box-shadow: inset 0 0 0 3px var(--nf-paper); }
.nf-check input:checked[type=checkbox], input.nf-check:checked[type=checkbox] { background: var(--nf-red); }
.nf-range { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 28px; cursor: pointer; }
.nf-range::-webkit-slider-runnable-track { height: 4px; background: var(--nf-ink); }
.nf-range::-moz-range-track { height: 4px; background: var(--nf-ink); }
.nf-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; background: var(--nf-red); border: 2px solid var(--nf-ink); transform: rotate(45deg); }
.nf-range::-moz-range-thumb { width: 14px; height: 14px; background: var(--nf-red); border: 2px solid var(--nf-ink); border-radius: 0; transform: rotate(45deg); }

/* ---- Surfaces ---- */
.nf-card { position: relative; background: var(--nf-paper); border: 2px solid var(--nf-line); padding: 24px; min-width: 0; }
.nf-card > :last-child { margin-bottom: 0; }
.nf-card--offset { box-shadow: 6px 6px 0 var(--nf-ink); }
.nf-card--red { background: var(--nf-red); border-color: var(--nf-red); color: #F2EEE3; }
.nf-card--red a, .nf-card--red .nf-muted { color: #F2EEE3; }
.nf-card--red .nf-btn { color: var(--nf-ink); border-color: var(--nf-ink); }
.nf-card--red .nf-btn--primary { color: var(--nf-paper); }
.nf-card--red .nf-btn--ghost { background: transparent; }
.nf-card--ink { background: var(--nf-ink); border-color: var(--nf-ink); color: var(--nf-paper); }
.nf-card--ink .nf-muted { color: var(--nf-paper); opacity: .7; }
.nf-card--ink a { color: var(--nf-paper); }
.nf-kpi { display: grid; gap: 4px; min-width: 0; }
.nf-kpi__value { font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nf-kpi__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--nf-muted); }
.nf-card--red .nf-kpi__label, .nf-card--ink .nf-kpi__label { color: inherit; opacity: .8; }
.nf-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px;
  font: 700 11px/1.6 var(--nf-font); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
  border: 2px solid var(--nf-line); color: var(--nf-ink); background: transparent;
}
.nf-tag--human { background: var(--nf-human); border-color: var(--nf-human); color: #F2EEE3; }
.nf-tag--suspicious { background: var(--nf-suspicious); border-color: var(--nf-suspicious); color: #121212; }
.nf-tag--bot { background: var(--nf-bot); border-color: var(--nf-bot); color: #F2EEE3; }
.nf-tag--neutral { border-color: var(--nf-muted); color: var(--nf-muted); }
.nf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nf-table { width: 100%; border-collapse: collapse; font-size: 14px; border-top: 2px solid var(--nf-line); border-bottom: 2px solid var(--nf-line); }
.nf-table th, .nf-table td { text-align: left; padding: 8px 10px; vertical-align: top; }
.nf-table thead th {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 2px solid var(--nf-line); white-space: nowrap;
}
.nf-table tbody tr + tr td { border-top: 1px solid color-mix(in srgb, var(--nf-line) 25%, transparent); }
.nf-table tbody tr[tabindex], .nf-table tbody tr.is-clickable { cursor: pointer; }
.nf-table tbody tr[tabindex]:hover, .nf-table tbody tr.is-clickable:hover { background: color-mix(in srgb, var(--nf-ochre) 18%, transparent); }
.nf-table td.num, .nf-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.nf-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--nf-line); overflow-x: auto; }
.nf-tab {
  appearance: none; background: transparent; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px;
  padding: 10px 16px; font: 700 13px/1 var(--nf-font); text-transform: uppercase; letter-spacing: .08em;
  color: var(--nf-muted); cursor: pointer; white-space: nowrap; text-decoration: none;
}
.nf-tab:hover { color: var(--nf-ink); }
.nf-tab[aria-selected=true] { color: var(--nf-ink); border-bottom-color: var(--nf-red); }
.nf-code {
  margin: 0 0 1em; padding: 16px 18px; overflow-x: auto;
  background: var(--nf-ink); color: var(--nf-paper); border: 2px solid var(--nf-ink);
  font: 13px/1.6 var(--nf-mono); white-space: pre; tab-size: 2;
}
.nf-code code { font-size: inherit; }
.nf-kbd {
  display: inline-block; padding: 0 6px; font: 12px/1.6 var(--nf-mono);
  border: 2px solid var(--nf-line); box-shadow: 2px 2px 0 var(--nf-ink);
}
.nf-bar { display: flex; width: 100%; height: 14px; border: 2px solid var(--nf-line); background: var(--nf-paper); overflow: hidden; }
.nf-bar > span { display: block; height: 100%; min-width: 0; background: var(--nf-ink); transition: width .3s ease; }
.nf-bar > .nf-bar--human, .nf-bar > span.--human { background: var(--nf-human); }
.nf-bar > .nf-bar--suspicious, .nf-bar > span.--suspicious { background: var(--nf-suspicious); }
.nf-bar > .nf-bar--bot, .nf-bar > span.--bot { background: var(--nf-bot); }
.nf-chart { position: relative; width: 100%; min-height: 160px; }
.nf-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.nf-chart .human, .nf-chart [data-verdict=human] { fill: var(--nf-human); }
.nf-chart .suspicious, .nf-chart [data-verdict=suspicious] { fill: var(--nf-suspicious); }
.nf-chart .bot, .nf-chart [data-verdict=bot] { fill: var(--nf-bot); }
.nf-chart text { fill: var(--nf-muted); font: 11px var(--nf-font); }
.nf-chart line, .nf-chart .axis { stroke: var(--nf-line); stroke-width: 2; }
.nf-chart .grid { stroke: var(--nf-muted); stroke-width: 1; stroke-dasharray: 2 4; }
.nf-drawer {
  position: fixed; top: 0; right: 0; z-index: 50;
  width: min(560px, 100vw); height: 100vh; height: 100dvh;
  overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px;
  background: var(--nf-paper); opacity: 1; border-left: 2px solid var(--nf-line);
  box-shadow: -8px 0 0 var(--nf-ink);
}
.nf-drawer > * { margin-bottom: 24px; }
.nf-drawer__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 0; background: var(--nf-paper); border-bottom: 2px solid var(--nf-line); }
.nf-drawer__head h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 28px; }
.nf-drawer__head .nf-btn { flex-shrink: 0; }
.nf-drawer__backdrop { position: fixed; inset: 0; z-index: 49; background: rgb(18 18 18 / .45); }
@media (prefers-reduced-motion: no-preference) { .nf-drawer:not([hidden]) { animation: nf-slide .18s ease-out; } }
@keyframes nf-slide { from { transform: translateX(24px); } to { transform: none; } }
.nf-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 12px 18px;
  background: var(--nf-ink); color: var(--nf-paper); border: 2px solid var(--nf-ink);
  box-shadow: 6px 6px 0 var(--nf-red); font-weight: 700; font-size: 14px;
}
.nf-toast--prompt { display: flex; align-items: center; gap: 16px; }
.nf-toast--prompt .nf-btn { color: var(--nf-ink); background: var(--nf-paper); border-color: var(--nf-paper); }
.nf-empty {
  display: grid; place-items: center; gap: 12px; text-align: center; padding: 48px 24px;
  border: 2px dashed var(--nf-muted); color: var(--nf-muted);
}
.nf-empty::before { content: ""; width: 28px; height: 28px; background: var(--nf-ink); box-shadow: 14px -10px 0 -6px var(--nf-red); }
.nf-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border: 2px solid var(--nf-line); border-left-width: 10px; background: var(--nf-paper); font-size: 15px;
}
.nf-banner--warn { border-color: var(--nf-ochre); border-left-color: var(--nf-ochre); background: color-mix(in srgb, var(--nf-ochre) 14%, var(--nf-paper)); }
.nf-banner--error { border-color: var(--nf-red); border-left-color: var(--nf-red); background: color-mix(in srgb, var(--nf-red) 10%, var(--nf-paper)); }


/* Portal: separated planes and a 24px rhythm. */
.nf-snippet { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; min-width: 0; }
.nf-snippet .nf-code { width: 100%; margin: 0; }
.nf-secret { margin-bottom: 24px; }
.nf-install { padding-block: 24px; }
.nf-check { margin-block: 12px 24px; }
.auth-panel { display: flex; flex-direction: column; }
.nf-auth__access { margin-top: 24px; padding-top: 24px; border-top: 2px solid var(--nf-line); }
.auth-panel .nf-eyebrow { margin-bottom: 8px; }
.nf-recovery__code {
  padding: 20px 24px; background: var(--nf-ink); color: var(--nf-paper);
  font: 700 clamp(18px, 3.4vw, 26px)/1.2 var(--nf-mono); letter-spacing: .06em; overflow-wrap: anywhere; user-select: all;
}
.nf-recovery__actions { display: flex; gap: 12px; margin: 12px 0 32px; }
.nf-recovery__finish { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 24px; border-top: 2px solid var(--nf-line); }
.nf-auth__link { margin-top: 24px; padding-top: 24px; border-top: 2px solid var(--nf-line); }
.nf-overview { display: grid; gap: 24px; }
.nf-overview > .nf-section { margin: 0; padding: 0; }
.nf-overview > .nf-card.nf-section { padding: 24px; }
.nf-page-title { display: flex; align-items: center; gap: 24px; padding-block: 12px; min-width: 0; }
.nf-page-title h1 { margin: 0; overflow-wrap: anywhere; }
.nf-page-title__accent { flex: 0 0 32px; width: 32px; height: 32px; background: var(--nf-red); transform: rotate(-14deg); box-shadow: 12px 12px 0 -4px var(--nf-ochre); }
.nf-kpis { gap: 24px; }
.nf-kpi { gap: 12px; }
.nf-kpi--total { background: var(--nf-ink); color: var(--nf-paper); }
.nf-kpi--bot { background: var(--nf-red); border-color: var(--nf-red); color: #F2EEE3; }
.nf-kpi--suspicious { background: var(--nf-ochre); border-color: var(--nf-ochre); color: #121212; }
.nf-kpi--human { border-color: var(--nf-blue); border-width: 4px; }
.nf-kpi .nf-hint, .nf-kpi .nf-kpi__label { color: inherit; }
.nf-tag--observe, .nf-tag--healthy { border-color: var(--nf-blue); color: var(--nf-blue); }
.nf-tag--shadow { background: var(--nf-ochre); border-color: var(--nf-ochre); color: #121212; }
.nf-tag--block, .nf-tag--incomplete { background: var(--nf-red); border-color: var(--nf-red); color: #F2EEE3; }
.nf-chart__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.nf-chart__share { fill: none; stroke: var(--nf-ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.nf-blocks { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; height: 24px; margin-bottom: 24px; }
.nf-blocks > span { border: 1px solid var(--nf-line); }
.nf-blocks--human .is-on { background: var(--nf-blue); border-color: var(--nf-blue); }
.nf-blocks--suspicious .is-on { background: var(--nf-ochre); border-color: var(--nf-ochre); }
.nf-blocks--bot .is-on { background: var(--nf-red); border-color: var(--nf-red); }
.nf-site { display: grid; align-content: start; justify-items: start; gap: 24px; text-decoration: none; padding-top: 48px; }
.nf-site:hover { color: var(--nf-ink); }
.nf-site h2 { font-size: 28px; overflow-wrap: anywhere; }
.nf-site h2, .nf-site p { margin: 0; }
.nf-site__corner { position: absolute; top: -2px; right: -2px; width: 24px; height: 24px; border: 2px solid var(--nf-line); }
.nf-usage { border-top: 8px solid var(--nf-blue); }
.nf-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.nf-card__head h2 { margin: 0; font-size: 28px; }
.nf-account { max-width: 880px; }
.nf-account .nf-page-title > .nf-btn { margin-left: auto; }
.nf-account__profile { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.nf-account__profile p { margin: 6px 0 10px; }
.nf-account__email { font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.nf-account__plan { font-size: 22px; font-weight: 700; }
.nf-account__status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nf-account__used { margin: 0 0 16px; color: var(--nf-muted); }
.nf-account__used strong { font-size: 44px; line-height: 1; color: var(--nf-ink); margin-right: 4px; }
.nf-account__empty { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; border: 2px dashed var(--nf-muted); }
.nf-account__empty p { margin: 0 auto 0 0; font-weight: 700; }
.nf-account__empty .nf-shape--square { position: static; flex: none; width: 18px; height: 18px; background: var(--nf-red); }
.mode-option { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; align-items: center; margin: 6px 0 14px; cursor: pointer; }
.mode-option .nf-hint { grid-column: 2; }
.mode-option input { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; border: 2px solid var(--nf-line); border-radius: 50%; background: var(--nf-paper); cursor: pointer; }
.mode-option input:checked { background: var(--nf-ink); box-shadow: inset 0 0 0 3px var(--nf-paper); }
.mode-option input:focus-visible { outline: 3px solid var(--nf-blue); outline-offset: 2px; }
.nf-recovery__title { font-size: clamp(34px, 5vw, 52px); }
.nf-confirm { align-items: flex-start; gap: 4px; }
.nf-confirm h1 { margin-top: 20px; }
.nf-confirm .nf-btn { margin-top: 8px; }
.nf-confirm__mark { position: relative; width: 72px; height: 72px; }
.nf-confirm__mark--ok { border-radius: 50%; background: var(--nf-blue); }
.nf-confirm__mark--ok::after { content: ""; position: absolute; left: 22px; top: 16px; width: 18px; height: 32px; border: solid var(--nf-paper); border-width: 0 7px 7px 0; transform: rotate(40deg); }
.nf-confirm__mark--bad { background: var(--nf-red); transform: rotate(-12deg); box-shadow: 14px 14px 0 -6px var(--nf-ochre); }
@media (prefers-reduced-motion: no-preference) { .nf-confirm__mark { animation: nf-pop .32s cubic-bezier(.3, 1.6, .5, 1) both; } }
@keyframes nf-pop { from { transform: scale(.4) rotate(-30deg); opacity: 0; } }
.nf-account .nf-page-title > .nf-btn { white-space: nowrap; flex: none; }
@media (max-width: 640px) { .nf-page-title { gap: 16px; } .nf-page-title h1 { font-size: clamp(32px, 10vw, 48px); overflow-wrap: normal; } }
.nf-auth__existing { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nf-auth__existing .nf-banner { width: 100%; margin: 0; gap: 6px; }
.nf-auth__existing strong { overflow-wrap: anywhere; }
.nf-auth__existing .nf-btn--ghost { padding-inline: 0; margin-top: -4px; }
.nf-account__rows { border-top: 2px solid var(--nf-line); }
.nf-account__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--nf-line); }
.nf-account__row > div { display: grid; gap: 2px; min-width: 0; }
.nf-account .nf-card > div + .nf-btn { margin-top: 16px; }
@media (max-width: 640px) { .nf-account__profile { grid-template-columns: 1fr; } }
.nf-first-site { max-width: 640px; margin-top: 24px; }

/* Portal-only interaction and layout polish. */
#app .nf-tab[aria-current=page] { color: var(--nf-ink); border-bottom-color: var(--nf-red); }
#app .nf-tab { display: inline-flex; align-items: center; min-height: 44px; }
#account-nav a { display: inline-flex; align-items: center; min-height: 44px; }
#app .nf-loading { min-height: 360px; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--nf-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
#app .nf-loading__mark { width: 24px; height: 24px; background: var(--nf-red); transform: rotate(-14deg); }
#app .nf-notfound { display: grid; gap: 24px; }
#app .nf-notfound > .nf-btn { justify-self: start; }
#app .nf-events > .nf-page-title { margin-bottom: 24px; }
#app .nf-action-confirm { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#app .nf-action-confirm p { flex-basis: 100%; margin: 0; }
#app .nf-card { min-width: 0; }
#app .nf-card.nf-section { padding: 24px; margin-top: 24px; }
#app .nf-secret { margin-block: 24px; }
#app .nf-install { padding-block: 24px; }
#app .nf-empty::before { display: none; }
#app .event-link { min-height: 44px; }
#app .nf-drawer .table-scroll td { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  #app .nf-btn--small { min-height: 44px; }
  #app .nf-card.nf-section { padding: 18px; }
  #app .nf-page-title { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; }
  #app .nf-page-title h1 { font-size: clamp(28px, 8.2vw, 36px); overflow-wrap: anywhere; }
  #app .nf-page-title > .nf-btn { grid-column: 2; justify-self: start; margin-left: 0; }
  #app .mode-option, #app .nf-check { min-height: 44px; }
  #app .nf-snippet { min-width: 0; }
}

/* ---- Decoration: suprematist planes ---- */
.nf-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.nf-deco + *, .nf-section > .nf-container { position: relative; z-index: 1; }
.nf-shape--square, .nf-shape--circle, .nf-shape--bar, .nf-shape--cross, .nf-shape--ring { position: absolute; display: block; background: var(--nf-ink); }
.nf-shape--square { width: 120px; height: 120px; transform: rotate(-12deg); }
.nf-shape--circle { width: 120px; height: 120px; border-radius: 50%; }
.nf-shape--bar { width: 220px; height: 22px; transform: rotate(8deg); }
.nf-shape--cross { width: 90px; height: 90px; background: transparent; transform: rotate(45deg); }
.nf-shape--cross::before, .nf-shape--cross::after { content: ""; position: absolute; background: var(--nf-ink); }
.nf-shape--cross::before { left: 0; right: 0; top: 50%; height: 16px; margin-top: -8px; }
.nf-shape--cross::after { top: 0; bottom: 0; left: 50%; width: 16px; margin-left: -8px; }
.nf-shape--ring { width: 120px; height: 120px; border-radius: 50%; background: transparent; border: 10px solid var(--nf-ink); }
.nf-red { background-color: var(--nf-red); border-color: var(--nf-red); }
.nf-ochre { background-color: var(--nf-ochre); border-color: var(--nf-ochre); }
.nf-blue { background-color: var(--nf-blue); border-color: var(--nf-blue); }
.nf-ink { background-color: var(--nf-ink); border-color: var(--nf-ink); }
.nf-shape--ring.nf-red, .nf-shape--ring.nf-ochre, .nf-shape--ring.nf-blue, .nf-shape--ring.nf-ink,
.nf-shape--cross.nf-red, .nf-shape--cross.nf-ochre, .nf-shape--cross.nf-blue, .nf-shape--cross.nf-ink { background-color: transparent; }
.nf-shape--cross.nf-red::before, .nf-shape--cross.nf-red::after { background: var(--nf-red); }
.nf-shape--cross.nf-ochre::before, .nf-shape--cross.nf-ochre::after { background: var(--nf-ochre); }
.nf-shape--cross.nf-blue::before, .nf-shape--cross.nf-blue::after { background: var(--nf-blue); }
.nf-shape--cross.nf-ink::before, .nf-shape--cross.nf-ink::after { background: var(--nf-ink); }

/* ---- Page compositions (public site) ---- */
.nf-hero { position: relative; padding: 72px 0 88px; overflow: hidden; border-bottom: 2px solid var(--nf-line); }
.nf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.nf-hero__lead { font-size: 20px; max-width: 34ch; }
.nf-hero__art { width: 100%; max-width: 480px; justify-self: end; }
.nf-hero__json { margin: 0; min-width: 0; }
.nf-hero__json .nf-code { margin: 8px 0 0; box-shadow: 6px 6px 0 var(--nf-red); }
.nf-strip { padding: 14px 0; border-bottom: 2px solid var(--nf-line); font-weight: 700; }
.nf-note { margin: 0 0 1em; padding: 16px 18px; border: 2px solid var(--nf-line); border-left: 8px solid var(--nf-ochre); }
.nf-note > :last-child { margin-bottom: 0; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nf-step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; background: var(--nf-ink); color: var(--nf-paper); font-weight: 800; font-size: 20px; transform: rotate(-12deg); }
.nf-step:nth-child(2) .nf-step__num { background: var(--nf-red); color: #F2EEE3; transform: rotate(8deg); }
.nf-step:nth-child(3) .nf-step__num { background: var(--nf-blue); color: #F2EEE3; border-radius: 50%; transform: none; }
.nf-price { display: grid; gap: 12px; align-content: start; }
.nf-price__value { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.nf-list { margin: 0; padding: 0; list-style: none; }
.nf-list li { padding: 6px 0 6px 20px; position: relative; }
.nf-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 9px; height: 9px; background: var(--nf-red); transform: rotate(45deg); }
.nf-doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding: 48px 24px; }
.nf-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; border-left: 2px solid var(--nf-line); padding-left: 16px; }
.nf-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.nf-toc a { text-decoration: none; }
.nf-toc a:hover { color: var(--nf-red); }
.nf-doc article section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 2px solid var(--nf-line); scroll-margin-top: 16px; }
.nf-doc article section:last-child { border-bottom: 0; }
.nf-doc article h1, .nf-doc article p, .nf-doc article li, .nf-doc article :not(pre) > code { overflow-wrap: anywhere; }
.nf-doc article h2 { font-size: 30px; }
.nf-doc article h3 { margin-top: 1.4em; }
.nf-prose { max-width: 720px; }
.nf-prose h2 { margin-top: 1.2em; font-size: 28px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .nf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-hero__grid { grid-template-columns: 1fr; }
  .nf-hero__art { justify-self: start; max-width: 360px; }
  .nf-doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .nf-toc { position: static; max-height: none; }
}
@media (max-width: 640px) {
  :root { --nf-gap: 16px; }
  .nf-container { padding: 0 16px; }
  .nf-grid--2, .nf-grid--3, .nf-grid--4 { grid-template-columns: 1fr; }
  .nf-grid { grid-template-columns: 1fr; }
  .nf-section { padding-block: 48px; }
  .nf-hero { padding: 40px 0 56px; }
  .nf-hero__lead { font-size: 17px; }
  .nf-card { padding: 18px; }
  .nf-card--offset { box-shadow: 4px 4px 0 var(--nf-ink); }
  .nf-header > .nf-container { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .nf-nav { gap: 2px 14px; }
  .nf-drawer { padding: 0 16px 24px; }
  .nf-doc { padding: 24px 16px; }
  .nf-doc article h1 { font-size: clamp(32px, 8vw, 40px); }
  .nf-shape--square, .nf-shape--circle, .nf-shape--ring { width: 72px; height: 72px; }
  .nf-shape--bar { width: 140px; height: 14px; }
  .nf-btn { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .nf-btn:hover { transform: none; }
}
@media print {
  .nf-deco, .nf-nav, .nf-toc { display: none; }
  .nf-card--offset { box-shadow: none; }
  /* Saving a farm report as PDF: page content only, no portal chrome. */
  .nf-header, .nf-footer, .nf-tabs, .nf-banner, .nf-toast, .nf-report .nf-btn { display: none !important; }
  .nf-report { padding: 0; }
  .nf-report .nf-section { padding-block: 16px; break-inside: avoid; }
  .nf-report .nf-card { box-shadow: none; break-inside: avoid; }
}

/* ---- Landing v2 ---- */
.nf-l-log { margin: 0; min-width: 0; border: 2px solid var(--nf-line); background: var(--nf-paper); box-shadow: 6px 6px 0 var(--nf-red); }
.nf-l-log__head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 10px 14px; border-bottom: 2px solid var(--nf-line); }
.nf-l-log table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nf-l-log th, .nf-l-log td { padding: 9px 14px; text-align: left; vertical-align: top; }
.nf-l-log thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--nf-line); }
.nf-l-log tbody tr + tr td { border-top: 1px solid color-mix(in srgb, var(--nf-line) 25%, transparent); }
.nf-l-log td.nf-l-num, .nf-l-log th.nf-l-num { text-align: right; }
.nf-l-log td.nf-l-num { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; }
.nf-l-why { display: block; font-size: 12px; color: var(--nf-muted); }
.nf-l-new { color: var(--nf-muted); }
.nf-l-seen { color: var(--nf-red); font-weight: 700; }
.nf-l-log del { color: var(--nf-muted); font-weight: 400; font-size: 13px; margin-right: 6px; }
.nf-l-log__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 12px 14px; border-top: 2px solid var(--nf-line); font-weight: 700; }
.nf-l-log__foot strong { color: var(--nf-red); }
.nf-l-safe { margin-top: 14px; font-size: 15px; }
.nf-l-life { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--nf-gap); list-style: none; margin: 0; padding: 0; }
.nf-l-life > li { min-width: 0; padding-top: 14px; border-top: 6px solid var(--nf-line); }
.nf-l-life > li:nth-child(2) { border-top-color: var(--nf-red); }
.nf-l-life > li:nth-child(3) { border-top-color: var(--nf-ochre); }
.nf-l-life > li:nth-child(4) { border-top-color: var(--nf-blue); }
.nf-l-life h3 { margin-bottom: .4em; }
.nf-l-life ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.nf-l-trace { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nf-l-trace > li { min-width: 0; padding-left: 12px; border-left: 4px solid color-mix(in srgb, var(--nf-line) 25%, transparent); }
.nf-l-trace .nf-label { display: block; color: var(--nf-muted); }
.nf-l-trace code { overflow-wrap: anywhere; }
.nf-l-case h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.nf-l-case--allow { border-left: 8px solid var(--nf-blue); }
.nf-l-case--limit { border-left: 8px solid var(--nf-ochre); }
.nf-l-case--challenge { border-left: 8px solid var(--nf-ink); }
.nf-l-case--block { border-left: 8px solid var(--nf-red); }
.nf-l-stack { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nf-l-stack a { display: inline-block; padding: 8px 14px; border: 2px solid var(--nf-line); text-decoration: none; font-weight: 700; }
.nf-l-stack a:hover { background: var(--nf-ink); color: var(--nf-paper); }
.nf-l-feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border: 1px solid var(--nf-line); }
.nf-l-feat > li { min-width: 0; padding: 14px 16px; border: 1px solid var(--nf-line); background: var(--nf-paper); }
.nf-l-feat a { display: block; font-weight: 700; text-decoration: none; }
.nf-l-feat a:hover { color: var(--nf-red); }
.nf-l-feat span { display: block; font-size: 14px; color: var(--nf-muted); }
.nf-l-rows { width: 100%; border-collapse: collapse; font-size: 15px; }
.nf-l-rows th, .nf-l-rows td { padding: 9px 12px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--nf-line) 25%, transparent); }
.nf-l-rows thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--nf-line); }
.nf-l-rows td:last-child, .nf-l-rows th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.nf-l-rows__wrap { overflow-x: auto; }
.nf-l-rows__empty { padding: 14px 12px; color: var(--nf-muted); }
.nf-l-demo { max-width: 1080px; }
.nf-l-attempts { margin-top: 24px; border: 2px solid var(--nf-line); }
.nf-l-attempts h2 { margin: 0; font-size: 24px; }
.nf-l-attempts .nf-l-log__head { align-items: center; }
.nf-l-rows { table-layout: fixed; }
.nf-l-rows th:first-child { width: 6%; }
.nf-l-rows th:nth-child(2) { width: 32%; }
.nf-l-rows th:nth-child(3) { width: 20%; }
.nf-l-rows th:nth-child(4) { width: 25%; }
.nf-l-rows td, .nf-l-rows th { overflow-wrap: anywhere; }
.nf-l-log td:first-child { overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .nf-l-life { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nf-l-log th, .nf-l-log td { padding: 8px 10px; }
}
@media (max-width: 640px) {
  .nf-l-life { grid-template-columns: 1fr; }
  .nf-l-feat { grid-template-columns: 1fr; }
  .nf-l-log table { table-layout: fixed; }
  .nf-l-log th, .nf-l-log td { padding: 8px 6px; }
  .nf-l-log thead th { letter-spacing: .04em; }
  .nf-l-log th:first-child { width: 44%; }
  .nf-l-log th:last-child { width: 20%; }
  .nf-l-rows th, .nf-l-rows td { padding: 6px 4px; font-size: 12px; }
  .nf-l-rows thead th { font-size: 9px; letter-spacing: 0; overflow-wrap: normal; }
}
@media (max-width: 360px) {
  .nf-l-log table { font-size: 12px; }
  .nf-l-log thead th { font-size: 10px; letter-spacing: 0; }
}

/* ---- Feature pages ---- */
.nf-f-lead { font-size: clamp(17px, 2.1vw, 21px); max-width: 62ch; margin-bottom: 0; }
.nf-f-trace { border-left: 8px solid var(--nf-red); max-width: 820px; }
.nf-f-trace__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--nf-line); }
.nf-f-trace__head .nf-label { color: var(--nf-muted); }
.nf-f-trace__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nf-f-trace__row { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 6px 18px; align-items: baseline; min-width: 0; padding: 12px 0; }
.nf-f-trace__row + .nf-f-trace__row { border-top: 1px solid color-mix(in srgb, var(--nf-line) 25%, transparent); }
.nf-f-trace__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--nf-muted); }
.nf-f-trace__val { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.nf-f-trace__val code { overflow-wrap: anywhere; }
.nf-f-trace__row--out .nf-f-trace__val { font-weight: 800; font-size: 18px; }
.nf-f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nf-f-chip { display: inline-block; padding: 1px 8px; border: 2px solid var(--nf-line); font: 700 12px/1.7 var(--nf-mono); overflow-wrap: anywhere; }
.nf-f-chip--fire { border-color: var(--nf-ochre); }
.nf-f-steps { list-style: none; counter-reset: nf-f-step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--nf-gap); }
.nf-f-steps > li { counter-increment: nf-f-step; min-width: 0; padding-top: 14px; border-top: 6px solid var(--nf-line); }
.nf-f-steps > li:nth-child(2) { border-top-color: var(--nf-ochre); }
.nf-f-steps > li:nth-child(3) { border-top-color: var(--nf-blue); }
.nf-f-steps > li::before { content: counter(nf-f-step); display: block; margin-bottom: 8px; font: 800 13px/1 var(--nf-font); letter-spacing: .08em; color: var(--nf-red); }
.nf-f-steps h3 { margin-bottom: .4em; font-size: 18px; }
.nf-f-steps p { margin: 0; font-size: 15px; }
.nf-f-steps + .nf-grid { margin-top: 32px; }
.nf-f-limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 78ch; }
.nf-f-limits > li { position: relative; min-width: 0; padding-left: 24px; overflow-wrap: anywhere; }
.nf-f-limits > li::before { content: ""; position: absolute; left: 0; top: .62em; width: 13px; height: 3px; background: var(--nf-red); }
.nf-f-related { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nf-f-related a { display: inline-block; padding: 8px 14px; border: 2px solid var(--nf-line); font-weight: 700; font-size: 14px; text-decoration: none; }
.nf-f-related a:hover { background: var(--nf-ink); color: var(--nf-paper); }
.nf-f-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.nf-f-group + .nf-f-group { margin-top: 48px; }
.nf-f-group > h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.nf-f-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2px; list-style: none; margin: 0; padding: 0; border: 2px solid var(--nf-line); background: var(--nf-line); }
.nf-f-list > li { min-width: 0; background: var(--nf-paper); }
.nf-f-list a { display: block; height: 100%; padding: 16px 18px; text-decoration: none; }
.nf-f-list a:hover { background: var(--nf-ink); color: var(--nf-paper); }
.nf-f-list strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 800; text-transform: uppercase; }
.nf-f-list span { display: block; font-size: 14px; color: var(--nf-muted); }
.nf-f-list a:hover span { color: var(--nf-paper); opacity: .75; }
@media (max-width: 760px) {
  .nf-f-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nf-f-trace__row { grid-template-columns: 1fr; gap: 4px; }
  .nf-f-list { grid-template-columns: 1fr; }
  .nf-f-cta .nf-btn { flex: 1 1 100%; }
}
