/* tokens.css */
/* Nextday design tokens. The single source of truth for colour, type, space and motion.
   Taken from the live brand at nextday.is (public/styles.css in nextday-web).
   Components use semantic tokens (--nd-surface, --nd-text...) never raw palette values. */

@font-face { font-family: 'DM Sans'; src: url('/assets/dm-sans-0.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/dm-sans-1.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/dm-sans-2.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/dm-sans-3.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  /* Palette */
  --nd-paper: #f6f5ef;
  --nd-paper-deep: #e8e7df;
  --nd-ink: #242622;
  --nd-ink-soft: #3a3d37;
  --nd-muted: #63665e;
  --nd-line: #d8d9cf;
  --nd-olive: #d9ded0;
  --nd-olive-deep: #768666;
  --nd-orange: #ef552f;
  --nd-orange-soft: #f7a182;
  --nd-orange-ink: #b93b1e;
  --nd-white: #fbfcf8;
  --nd-danger: #b3261e;
  --nd-success: #4f6b3a;

  /* Semantic */
  --nd-surface: var(--nd-paper);
  --nd-surface-raised: var(--nd-white);
  --nd-surface-sunken: var(--nd-paper-deep);
  --nd-text: var(--nd-ink);
  --nd-text-muted: var(--nd-muted);
  --nd-border: var(--nd-line);
  --nd-accent: var(--nd-orange);
  --nd-accent-text: var(--nd-orange-ink);
  --nd-on-accent: #171e18;
  --nd-focus: var(--nd-orange);

  /* Type */
  --nd-font: 'DM Sans', Arial, sans-serif;
  --nd-font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --nd-text-xs: 12px;
  --nd-text-sm: 14px;
  --nd-text-md: 16px;
  --nd-text-lg: 19px;
  --nd-text-xl: clamp(26px, 2.6vw, 44px);
  --nd-text-2xl: clamp(38px, 4.6vw, 75px);
  --nd-text-hero: clamp(48px, 7.8vw, 136px);
  --nd-tracking-tight: -0.055em;
  --nd-tracking-eyebrow: 0.085em;
  --nd-leading: 1.55;

  /* Space (4px base) */
  --nd-space-1: 4px;
  --nd-space-2: 8px;
  --nd-space-3: 12px;
  --nd-space-4: 16px;
  --nd-space-5: 24px;
  --nd-space-6: 32px;
  --nd-space-7: 48px;
  --nd-space-8: 72px;
  --nd-space-9: 110px;
  --nd-gutter: clamp(16px, 4.4vw, 80px);
  --nd-measure: 68ch;
  --nd-max: 1440px;

  /* Shape and depth */
  --nd-radius-sm: 3px;
  --nd-radius: 7px;
  --nd-shadow: 0 22px 50px -30px rgba(35, 48, 25, 0.3);

  /* Motion */
  --nd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nd-fast: 0.15s;
  --nd-slow: 0.4s;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --nd-surface: #1b1d1a;
    --nd-surface-raised: #242622;
    --nd-surface-sunken: #141513;
    --nd-text: #eceee8;
    --nd-text-muted: #a4a89c;
    --nd-border: #3a3d37;
    --nd-accent-text: #f7a182;
  }
}
:root[data-theme='dark'] {
  --nd-surface: #1b1d1a;
  --nd-surface-raised: #242622;
  --nd-surface-sunken: #141513;
  --nd-text: #eceee8;
  --nd-text-muted: #a4a89c;
  --nd-border: #3a3d37;
  --nd-accent-text: #f7a182;
}

/* base.css */
/* Base: reset, typography and accessibility defaults. Uses tokens only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--nd-surface);
  color: var(--nd-text);
  font-family: var(--nd-font);
  font-size: var(--nd-text-md);
  line-height: var(--nd-leading);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.06; letter-spacing: var(--nd-tracking-tight); }
h1 { font-size: var(--nd-text-2xl); }
h2 { font-size: var(--nd-text-xl); }
h3 { font-size: var(--nd-text-lg); letter-spacing: -0.02em; }
p { max-width: var(--nd-measure); }
a { color: inherit; text-underline-offset: 4px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre { font-family: var(--nd-font-mono); font-size: 0.9em; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--nd-accent); color: #fff; }
:focus-visible { outline: 3px solid var(--nd-focus); outline-offset: 4px; }
[hidden] { display: none !important; }

.nd-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nd-skip { position: fixed; top: var(--nd-space-3); left: var(--nd-space-3); z-index: 100; padding: var(--nd-space-3) var(--nd-space-4); background: var(--nd-surface-raised); transform: translateY(-160%); }
.nd-skip:focus { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* components.css */
/* Components. Class names are .nd-<component>[__part][--variant]. Markup lives in engine/components.ts. */

/* Layout shell */
.nd-shell { display: flex; flex-direction: column; min-height: 100vh; }
.nd-main { flex: 1; width: 100%; max-width: var(--nd-max); margin: 0 auto; padding: var(--nd-space-7) var(--nd-gutter) var(--nd-space-8); }
.nd-stack > * + * { margin-top: var(--nd-space-5); }

/* Header */
.nd-header { display: flex; align-items: center; gap: var(--nd-space-5); padding: var(--nd-space-4) var(--nd-gutter); border-bottom: 1px solid var(--nd-border); }
.nd-wordmark { display: inline-flex; align-items: baseline; font-size: 26px; font-weight: 700; letter-spacing: -1.6px; line-height: 1; text-decoration: none; }
.nd-wordmark span { color: var(--nd-accent); padding-left: 1px; }
.nd-header__client { padding-left: var(--nd-space-5); border-left: 1px solid var(--nd-border); font-size: var(--nd-text-sm); font-weight: 500; }
.nd-header__end { margin-left: auto; display: flex; gap: var(--nd-space-4); align-items: center; font-size: var(--nd-text-sm); color: var(--nd-text-muted); }

/* Footer */
.nd-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--nd-space-4); padding: var(--nd-space-5) var(--nd-gutter); border-top: 1px solid var(--nd-border); font-size: var(--nd-text-xs); color: var(--nd-text-muted); }

/* Eyebrow */
.nd-eyebrow { display: flex; align-items: center; gap: var(--nd-space-3); font-size: var(--nd-text-xs); font-weight: 600; letter-spacing: var(--nd-tracking-eyebrow); text-transform: uppercase; color: var(--nd-text-muted); }
.nd-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--nd-accent); }

/* Hero */
.nd-hero { padding: var(--nd-space-7) 0 var(--nd-space-8); border-bottom: 1px solid var(--nd-border); }
.nd-hero h1 { font-size: var(--nd-text-hero); font-weight: 400; letter-spacing: -0.06em; margin-top: var(--nd-space-5); }
.nd-hero h1 em { font-style: normal; color: var(--nd-accent); }
.nd-hero__lead { margin-top: var(--nd-space-5); font-size: var(--nd-text-lg); color: var(--nd-text-muted); }
.nd-hero__actions { display: flex; flex-wrap: wrap; gap: var(--nd-space-3); margin-top: var(--nd-space-6); }

/* Buttons */
.nd-button { display: inline-flex; align-items: center; gap: var(--nd-space-5); min-height: 48px; padding: var(--nd-space-3) var(--nd-space-5); border: 1px solid var(--nd-text); border-radius: var(--nd-radius-sm); background: transparent; font-size: var(--nd-text-sm); font-weight: 500; text-decoration: none; cursor: pointer; transition: transform var(--nd-fast) var(--nd-ease), background var(--nd-fast); }
.nd-button:hover { transform: translateY(-2px); }
.nd-button--primary { background: var(--nd-accent); border-color: var(--nd-accent); color: var(--nd-on-accent); }

/* Sections and grids */
.nd-section { padding: var(--nd-space-7) 0; }
.nd-section + .nd-section { border-top: 1px solid var(--nd-border); }
.nd-section__head { display: grid; grid-template-columns: 1fr 2fr; gap: var(--nd-space-6); align-items: start; margin-bottom: var(--nd-space-6); }
.nd-section__head > .nd-eyebrow { padding-top: 12px; }
.nd-grid { display: grid; gap: var(--nd-space-5); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

/* Card */
.nd-card { padding: var(--nd-space-5); background: var(--nd-surface-raised); border: 1px solid var(--nd-border); border-radius: var(--nd-radius); }
.nd-card h3 { margin-bottom: var(--nd-space-3); }
.nd-card p { color: var(--nd-text-muted); font-size: var(--nd-text-sm); }
.nd-card__index { display: block; margin-bottom: var(--nd-space-5); font-size: var(--nd-text-xs); color: var(--nd-text-muted); }

/* Stat */
.nd-stat { padding-top: var(--nd-space-4); border-top: 1px solid var(--nd-text); }
.nd-stat__label { font-size: var(--nd-text-xs); color: var(--nd-text-muted); }
.nd-stat__value { display: block; margin-top: var(--nd-space-2); font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nd-stat__note { display: block; margin-top: var(--nd-space-2); font-size: var(--nd-text-xs); color: var(--nd-text-muted); }

/* Status badge */
.nd-badge { display: inline-flex; align-items: center; gap: var(--nd-space-2); padding: 2px var(--nd-space-3); border: 1px solid var(--nd-border); border-radius: 999px; font-size: var(--nd-text-xs); font-weight: 500; }
.nd-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--nd-text-muted); }
.nd-badge--live::before { background: var(--nd-success); }
.nd-badge--setup::before { background: var(--nd-accent); }
.nd-badge--down::before { background: var(--nd-danger); }

/* Steps / timeline */
.nd-steps { list-style: none; margin: var(--nd-space-5) 0 0; padding: 0; display: grid; gap: var(--nd-space-5); grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); counter-reset: nd-step; }
.nd-steps li { padding-top: var(--nd-space-4); border-top: 1px solid var(--nd-border); counter-increment: nd-step; }
.nd-steps li::before { content: counter(nd-step, decimal-leading-zero); display: block; margin-bottom: var(--nd-space-4); font-size: var(--nd-text-xs); color: var(--nd-text-muted); }
.nd-steps h3 { margin-bottom: var(--nd-space-2); }
.nd-steps p { color: var(--nd-text-muted); font-size: var(--nd-text-sm); }
.nd-steps li[data-state='done'] { border-top-color: var(--nd-text); }
.nd-steps li[data-state='current'] { border-top: 2px solid var(--nd-accent); }

/* Table */
.nd-table { font-size: var(--nd-text-sm); font-variant-numeric: tabular-nums; }
.nd-table th, .nd-table td { padding: var(--nd-space-3) var(--nd-space-2); border-bottom: 1px solid var(--nd-border); text-align: left; }
.nd-table th { font-weight: 500; color: var(--nd-text-muted); font-size: var(--nd-text-xs); }
.nd-table td[data-num] { text-align: right; }

/* Notice */
.nd-notice { padding: var(--nd-space-4) var(--nd-space-5); border-left: 3px solid var(--nd-accent); background: var(--nd-surface-sunken); font-size: var(--nd-text-sm); }

/* Forms (self-serve trial: sign-up, agreements, connecting a source) */
.nd-form { display: grid; gap: var(--nd-space-5); max-width: 720px; }
.nd-field { display: grid; gap: var(--nd-space-2); }
.nd-field > span { font-size: var(--nd-text-sm); font-weight: 500; }
.nd-field small { font-size: var(--nd-text-xs); color: var(--nd-text-muted); }
.nd-field input, .nd-field select, .nd-field textarea { width: 100%; min-height: 48px; padding: var(--nd-space-3); border: 1px solid var(--nd-border); border-radius: var(--nd-radius-sm); background: var(--nd-surface-raised); color: var(--nd-text); font: inherit; }
.nd-field input:focus, .nd-field select:focus, .nd-field textarea:focus { outline: 2px solid var(--nd-focus); outline-offset: 1px; }
.nd-check { display: grid; grid-template-columns: 22px 1fr; gap: var(--nd-space-3); align-items: start; font-size: var(--nd-text-sm); }
.nd-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--nd-accent); }
.nd-form button { justify-self: start; }
.nd-inline-form { display: inline; }
.nd-legal { max-width: var(--nd-measure); font-size: var(--nd-text-sm); }
.nd-legal h2 { font-size: var(--nd-text-lg); margin-top: var(--nd-space-6); }
.nd-legal h3 { font-size: var(--nd-text-md); margin-top: var(--nd-space-5); }
.nd-legal p, .nd-legal li { margin-top: var(--nd-space-3); }
.nd-legal ol, .nd-legal ul { padding-left: var(--nd-space-5); }
.nd-code { display: block; padding: var(--nd-space-3) var(--nd-space-4); background: var(--nd-surface-sunken); border-radius: var(--nd-radius-sm); font-family: var(--nd-font-mono); font-size: var(--nd-text-sm); overflow-wrap: anywhere; }

/* Charts: server-rendered SVG, no script. Colour comes from classes, never inline style (CSP). */
.nd-chart { display: block; width: 100%; height: auto; overflow: visible; }
.nd-chart text { fill: var(--nd-text-muted); font-size: 11px; font-family: var(--nd-font); }
.nd-chart .nd-chart__axis { stroke: var(--nd-border); stroke-width: 1; }
.nd-chart .nd-chart__bar { fill: var(--nd-text); }
.nd-chart .nd-chart__bar--prior { fill: var(--nd-olive-deep); opacity: 0.45; }
.nd-chart .nd-chart__bar--negative { fill: var(--nd-danger); }
.nd-chart .nd-chart__line { fill: none; stroke: var(--nd-accent); stroke-width: 2; }
.nd-chart .nd-chart__line--prior { fill: none; stroke: var(--nd-olive-deep); stroke-width: 1.5; stroke-dasharray: 4 3; }
.nd-chart .nd-chart__dot { fill: var(--nd-accent); }
.nd-legend { display: flex; flex-wrap: wrap; gap: var(--nd-space-4); margin-top: var(--nd-space-3); font-size: var(--nd-text-xs); color: var(--nd-text-muted); }
.nd-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: var(--nd-space-2); border-radius: 2px; background: var(--nd-text); vertical-align: -1px; }
.nd-legend .nd-legend__prior::before { background: var(--nd-olive-deep); opacity: 0.45; }
.nd-legend .nd-legend__accent::before { background: var(--nd-accent); }

/* Findings (ábendingar): a ranked list with the krónur at stake */
.nd-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--nd-space-4); counter-reset: nd-finding; }
.nd-findings li { display: grid; grid-template-columns: 1fr auto; gap: var(--nd-space-2) var(--nd-space-5); padding: var(--nd-space-4) var(--nd-space-5); background: var(--nd-surface-raised); border: 1px solid var(--nd-border); border-left: 3px solid var(--nd-accent); border-radius: var(--nd-radius-sm); }
.nd-findings h3 { font-size: var(--nd-text-md); }
.nd-findings p { grid-column: 1 / -1; color: var(--nd-text-muted); font-size: var(--nd-text-sm); }
.nd-findings strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Progress (a source loading its history) */
.nd-progress { display: block; width: 100%; height: 6px; border-radius: 999px; background: var(--nd-surface-sunken); overflow: hidden; }
.nd-progress > span { display: block; height: 100%; background: var(--nd-accent); }
.nd-progress[data-pct='0'] > span { width: 0; } .nd-progress[data-pct='10'] > span { width: 10%; } .nd-progress[data-pct='20'] > span { width: 20%; }
.nd-progress[data-pct='30'] > span { width: 30%; } .nd-progress[data-pct='40'] > span { width: 40%; } .nd-progress[data-pct='50'] > span { width: 50%; }
.nd-progress[data-pct='60'] > span { width: 60%; } .nd-progress[data-pct='70'] > span { width: 70%; } .nd-progress[data-pct='80'] > span { width: 80%; }
.nd-progress[data-pct='90'] > span { width: 90%; } .nd-progress[data-pct='100'] > span { width: 100%; }
.nd-nav { display: flex; flex-wrap: wrap; gap: var(--nd-space-2) var(--nd-space-5); padding: var(--nd-space-4) 0; border-bottom: 1px solid var(--nd-border); font-size: var(--nd-text-sm); }
.nd-nav a[aria-current='page'] { color: var(--nd-accent-text); font-weight: 600; }

@media (max-width: 760px) {
  .nd-section__head { grid-template-columns: 1fr; gap: var(--nd-space-4); }
  .nd-section__head > .nd-eyebrow { padding-top: 0; }
  .nd-header { flex-wrap: wrap; gap: var(--nd-space-3); }
  .nd-header__client { padding-left: var(--nd-space-3); }
  .nd-findings li { grid-template-columns: 1fr; }
}

/* app.css */
/* App shell: the product look for signed-in apps (the trial first). Nextday's own take on the Klaustur demo
   (nextday-web/public/klaustur): a dark moss sidebar, serif page headings, white panels, tabular numbers, colour for
   state only. Pure CSS: no script, no inline style (CSP), widths come from data attributes in 5 % steps. */

:is(.nd-app, .nd-onboard) {
  --app-side: #1e2721;
  --app-side-deep: #151c17;
  --app-side-text: #cdd6cb;
  --app-side-muted: #8d9b8d;
  --app-side-line: #ffffff14;
  --app-bg: #f4f3ec;
  --app-card: #fffffd;
  --app-line: #e3e3d9;
  --app-line-soft: #eeeee6;
  --app-ink: #1f231f;
  --app-muted: #6b7068;
  --app-faint: #9a9d94;
  --app-accent: #ef552f;
  --app-accent-ink: #b93b1e;
  --app-accent-soft: #fbe6de;
  --app-up: #3f6b3a;
  --app-up-soft: #e6efe1;
  --app-down: #a8352a;
  --app-down-soft: #f7e4df;
  --app-serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --app-radius: 14px;
  --app-radius-sm: 9px;
  --app-shadow: 0 1px 0 #ffffff inset, 0 10px 30px -18px #2a3a2533;
}
.nd-app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  /* The sidebar column stays dark the whole height of a long page. */
  background: linear-gradient(to right, var(--app-side-deep) 248px, var(--app-bg) 248px);
  color: var(--app-ink);
  font-family: var(--nd-font);
  font-size: 14px;
  line-height: 1.5;
}
.nd-app ::selection, .nd-onboard ::selection { background: var(--app-accent); color: #fff; }
:is(.nd-app, .nd-onboard) a { text-underline-offset: 3px; }
:is(.nd-app, .nd-onboard) svg.nd-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- sidebar ---------- */
.nd-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 26px 16px 20px; background: linear-gradient(170deg, var(--app-side) 0%, var(--app-side-deep) 100%); color: var(--app-side-text); overflow: hidden; }
/* Only the links scroll; brand, company and foot stay put. The scrollbar is thin and shows only while the pointer is over the list. */
.nd-side__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px 8px; scrollbar-width: thin; scrollbar-color: transparent transparent; scrollbar-gutter: stable; }
.nd-side__nav:hover, .nd-side__nav:focus-within { scrollbar-color: #ffffff2e transparent; }
.nd-side__nav::-webkit-scrollbar { width: 6px; }
.nd-side__nav::-webkit-scrollbar-track { background: transparent; }
.nd-side__nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.nd-side__nav:hover::-webkit-scrollbar-thumb { background: #ffffff2e; }
.nd-side__group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: 6px; user-select: none; }
.nd-side__group > summary::-webkit-details-marker { display: none; }
.nd-side__group > summary::after { content: ''; width: 6px; height: 6px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; opacity: .7; }
.nd-side__group:not([open]) > summary::after { transform: rotate(-45deg); }
.nd-side__group > summary:hover { color: #fff; }
.nd-side__group > summary:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
.nd-side__group:has([aria-current='page']) > summary { color: #fff; }
.nd-side__brand { display: flex; align-items: baseline; gap: 10px; padding: 0 10px 18px; text-decoration: none; color: #fff; }
.nd-side__brand b { font-size: 24px; font-weight: 700; letter-spacing: -1.4px; }
.nd-side__brand b i { font-style: normal; color: var(--app-accent); }
.nd-side__brand span { font-size: 12px; color: var(--app-side-muted); }
.nd-side__company { display: block; margin: 0 4px 14px; padding: 12px 12px; border: 1px solid var(--app-side-line); border-radius: var(--app-radius-sm); background: #ffffff08; text-decoration: none; color: #fff; }
.nd-side__company small { display: block; font-size: 11px; color: var(--app-side-muted); }
.nd-side__company strong { display: block; font-size: 14px; font-weight: 500; margin-top: 2px; }
.nd-side__caption { padding: 14px 12px 6px; font-size: 11px; color: var(--app-side-muted); }
.nd-side__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--app-side-text); text-decoration: none; font-size: 14px; transition: background .15s, color .15s; }
.nd-side__link:hover { background: #ffffff0d; color: #fff; }
.nd-side__link[aria-current='page'] { background: #ffffff14; color: #fff; box-shadow: inset 3px 0 0 var(--app-accent); }
.nd-side__link[aria-current='page'] .nd-icon { color: var(--app-accent); }
.nd-side__count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--app-accent); color: #fff; font-size: 11px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.nd-side__link--locked { color: var(--app-side-muted); }
.nd-side__lock { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 5px; border-radius: 999px; border: 1px solid var(--app-side-line); font-size: 10px; letter-spacing: .02em; color: var(--app-side-muted); }
.nd-side__lock .nd-icon { width: 11px; height: 11px; }
.nd-side__trial a { color: #fff; }
.nd-side__foot { margin-top: auto; padding: 18px 8px 0; display: grid; gap: 14px; }
.nd-side__trial { padding: 14px; border-radius: var(--app-radius-sm); background: #ffffff0a; border: 1px solid var(--app-side-line); font-size: 12px; color: var(--app-side-muted); }
.nd-side__trial strong { display: block; color: #fff; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.nd-side__meter { height: 4px; border-radius: 4px; background: #ffffff1a; overflow: hidden; margin-bottom: 8px; }
.nd-side__meter > i { display: block; height: 100%; background: var(--app-accent); }
.nd-side__user { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--app-side-muted); }
.nd-side__user a { margin-left: auto; color: var(--app-side-text); }
.nd-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ffffff1a; color: #fff; font-size: 12px; font-weight: 600; flex: none; }

/* ---------- main column ---------- */
.nd-main-col { min-width: 0; display: flex; flex-direction: column; }
.nd-topbar { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 40px; border-bottom: 1px solid var(--app-line); background: #fffffdcc; position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(8px); }
.nd-crumbs { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--app-faint); min-width: 0; }
.nd-crumbs a { color: var(--app-muted); text-decoration: none; }
.nd-crumbs strong { color: var(--app-ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-topbar__end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nd-content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 34px 40px 64px; }
.nd-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.nd-page-head h1 { font-family: var(--app-serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.02em; line-height: 1.1; }
.nd-page-head p { margin-top: 8px; color: var(--app-muted); font-size: 14px; max-width: 70ch; }
.nd-page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- pills, buttons ---------- */
.nd-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12px; background: #eceee6; color: var(--app-muted); white-space: nowrap; border: 1px solid #e2e4da; }
.nd-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.nd-pill--live { background: var(--app-up-soft); color: var(--app-up); border-color: #d6e3d0; }
.nd-pill--wait { background: var(--app-accent-soft); color: var(--app-accent-ink); border-color: #f4d3c6; }
.nd-pill--down { background: var(--app-down-soft); color: var(--app-down); border-color: #efcfc7; }
.nd-pill--plain::before { display: none; }
.nd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 1px solid var(--app-line); border-radius: 9px; background: var(--app-card); color: var(--app-ink); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.nd-btn:hover { border-color: #cfd0c4; background: #fff; transform: translateY(-1px); }
.nd-btn--primary { background: var(--app-ink); border-color: var(--app-ink); color: #fff; }
.nd-btn--primary:hover { background: #000; border-color: #000; color: #fff; }
.nd-btn--accent { background: var(--app-accent); border-color: var(--app-accent); color: #fff; }
.nd-btn--accent:hover { background: var(--app-accent-ink); border-color: var(--app-accent-ink); color: #fff; }
.nd-btn--quiet { border-color: transparent; background: transparent; color: var(--app-muted); padding-left: 8px; padding-right: 8px; }
.nd-btn--danger { color: var(--app-down); }
.nd-btn .nd-icon { width: 16px; height: 16px; }
.nd-inline { display: inline; margin: 0; }

/* ---------- money at stake: the one number ---------- */
.nd-stake { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; border-radius: var(--app-radius); overflow: hidden; background: var(--app-side); color: #fff; margin-bottom: 22px; box-shadow: var(--app-shadow); }
.nd-stake__lead { padding: 30px 32px; background: radial-gradient(120% 140% at 0% 0%, #2c3a2f 0%, var(--app-side) 55%, var(--app-side-deep) 100%); }
.nd-stake__lead small { display: block; font-size: 13px; color: var(--app-side-muted); }
.nd-stake__value { display: block; margin: 14px 0 6px; font-family: var(--app-serif); font-size: clamp(38px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nd-stake__value span { font-family: var(--nd-font); font-size: 18px; color: var(--app-side-muted); margin-left: 6px; letter-spacing: 0; }
.nd-stake__lead p { color: var(--app-side-text); font-size: 13px; max-width: 38ch; margin: 10px 0 22px; }
.nd-stake__queue { list-style: none; margin: 0; padding: 14px 18px; background: #ffffff06; border-left: 1px solid var(--app-side-line); display: grid; align-content: start; }
.nd-stake__queue li a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 10px; border-radius: 9px; color: inherit; text-decoration: none; }
.nd-stake__queue li a:hover { background: #ffffff0d; }
.nd-stake__queue li + li { border-top: 1px solid var(--app-side-line); }
.nd-stake__rank { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #ffffff12; font-size: 12px; color: var(--app-side-text); font-variant-numeric: tabular-nums; }
.nd-stake__queue strong { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-stake__queue small { display: block; font-size: 12px; color: var(--app-side-muted); }
.nd-stake__queue em { font-style: normal; font-size: 14px; color: #ffd3c4; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- KPI cards ---------- */
.nd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.nd-kpi { background: var(--app-card); border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 18px 20px 14px; box-shadow: var(--app-shadow); min-width: 0; display: flex; flex-direction: column; }
.nd-kpi__label { font-size: 13px; color: var(--app-muted); }
.nd-kpi__value { margin: 10px 0 8px; font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nd-kpi__value span { font-size: 14px; color: var(--app-faint); font-weight: 400; margin-left: 5px; letter-spacing: 0; }
.nd-kpi__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--app-faint); margin-top: auto; }
.nd-delta { display: inline-flex; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; background: #eef0e8; color: var(--app-muted); }
.nd-delta--up { background: var(--app-up-soft); color: var(--app-up); }
.nd-delta--down { background: var(--app-down-soft); color: var(--app-down); }
.nd-spark { display: block; width: 100%; height: 38px; margin: 2px 0 10px; }
.nd-spark path.nd-spark__line { fill: none; stroke: var(--app-ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.nd-spark path.nd-spark__area { fill: #1f231f0d; stroke: none; }
.nd-spark circle { fill: var(--app-accent); }

/* ---------- panels ---------- */
.nd-grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 22px; margin-bottom: 22px; align-items: stretch; }
.nd-grid-2--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nd-panel { background: var(--app-card); border: 1px solid var(--app-line); border-radius: var(--app-radius); box-shadow: var(--app-shadow); min-width: 0; overflow: hidden; }
.nd-panel + .nd-panel { margin-top: 22px; }
.nd-grid-2 > .nd-panel + .nd-panel { margin-top: 0; }
.nd-panel + .nd-grid-2 { margin-top: 22px; }
.nd-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 0; margin-bottom: 14px; }
.nd-panel__head h2 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.nd-panel__head p { font-size: 13px; color: var(--app-muted); margin-top: 3px; }
.nd-panel__head a { font-size: 13px; color: var(--app-accent-ink); white-space: nowrap; text-decoration: none; }
.nd-panel__head a:hover { text-decoration: underline; }
.nd-panel__body { padding: 0 22px 22px; }
.nd-panel__foot { padding: 12px 22px; border-top: 1px solid var(--app-line-soft); font-size: 12px; color: var(--app-faint); }

/* ---------- tables (Stripe discipline: tabular, right-aligned numbers) ---------- */
:is(.nd-app, .nd-onboard) .nd-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
:is(.nd-app, .nd-onboard) .nd-tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--app-faint); padding: 10px 22px; border-bottom: 1px solid var(--app-line); background: #fbfbf7; white-space: nowrap; }
:is(.nd-app, .nd-onboard) .nd-tbl td { padding: 12px 22px; border-bottom: 1px solid var(--app-line-soft); color: var(--app-ink); vertical-align: middle; }
:is(.nd-app, .nd-onboard) .nd-tbl tr:last-child td { border-bottom: 0; }
:is(.nd-app, .nd-onboard) .nd-tbl tbody tr:hover td { background: #fafaf5; }
:is(.nd-app, .nd-onboard) .nd-tbl [data-num] { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(.nd-app, .nd-onboard) .nd-tbl td small { display: block; color: var(--app-faint); font-size: 12px; }
.nd-tbl-wrap { overflow-x: auto; }
.nd-up { color: var(--app-up); }
.nd-down { color: var(--app-down); }

/* ---------- bars and meters (widths in 5 % steps, no inline style) ---------- */
.nd-meter { display: block; height: 6px; border-radius: 6px; background: #eeeee6; overflow: hidden; min-width: 80px; }
.nd-meter > i { display: block; height: 100%; background: var(--app-ink); border-radius: 6px; }
.nd-meter--accent > i { background: var(--app-accent); }
[data-w='0'] > i { width: 0; } [data-w='5'] > i { width: 5%; } [data-w='10'] > i { width: 10%; } [data-w='15'] > i { width: 15%; }
[data-w='20'] > i { width: 20%; } [data-w='25'] > i { width: 25%; } [data-w='30'] > i { width: 30%; } [data-w='35'] > i { width: 35%; }
[data-w='40'] > i { width: 40%; } [data-w='45'] > i { width: 45%; } [data-w='50'] > i { width: 50%; } [data-w='55'] > i { width: 55%; }
[data-w='60'] > i { width: 60%; } [data-w='65'] > i { width: 65%; } [data-w='70'] > i { width: 70%; } [data-w='75'] > i { width: 75%; }
[data-w='80'] > i { width: 80%; } [data-w='85'] > i { width: 85%; } [data-w='90'] > i { width: 90%; } [data-w='95'] > i { width: 95%; }
[data-w='100'] > i { width: 100%; }

/* ---------- findings as a work queue (Ramp) ---------- */
.nd-queue { list-style: none; margin: 0; padding: 0; }
.nd-queue > li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--app-line-soft); }
.nd-queue > li:first-child { border-top: 0; }
.nd-queue__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--app-accent-soft); color: var(--app-accent-ink); }
.nd-queue__icon--receivable { background: #f6ecd9; color: #8e6420; }
.nd-queue__icon--customer { background: #e8eef4; color: #3e6380; }
.nd-queue__icon--spend { background: var(--app-accent-soft); color: var(--app-accent-ink); }
.nd-queue__icon--margin { background: #ece8f3; color: #5c4a85; }
.nd-queue h3 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.nd-queue p { font-size: 13px; color: var(--app-muted); margin-top: 6px; max-width: 80ch; }
.nd-queue__action { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13px; color: var(--app-ink); }
.nd-queue__action .nd-icon { width: 16px; height: 16px; color: var(--app-accent); margin-top: 2px; }
.nd-queue__stake { text-align: right; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nd-queue__stake small { display: block; font-size: 12px; font-weight: 400; color: var(--app-faint); }

/* ---------- chart wrapper ---------- */
:is(.nd-app, .nd-onboard) .nd-chart text { fill: var(--app-faint); font-size: 11px; }
:is(.nd-app, .nd-onboard) .nd-chart .nd-chart__bar { fill: var(--app-ink); }
:is(.nd-app, .nd-onboard) .nd-chart .nd-chart__bar--prior { fill: #c9cdbf; opacity: 1; }
:is(.nd-app, .nd-onboard) .nd-chart .nd-chart__axis { stroke: var(--app-line-soft); }
:is(.nd-app, .nd-onboard) .nd-legend { color: var(--app-faint); }
:is(.nd-app, .nd-onboard) .nd-legend span::before { background: var(--app-ink); }
:is(.nd-app, .nd-onboard) .nd-legend .nd-legend__prior::before { background: #c9cdbf; opacity: 1; }

/* ---------- skeleton (loading) and empty states ---------- */
.nd-skel { display: block; border-radius: 6px; background: linear-gradient(90deg, #ecece4 0%, #f5f5ef 40%, #ecece4 80%); background-size: 300% 100%; animation: nd-skel 1.4s ease-in-out infinite; }
.nd-skel--line { height: 12px; margin-top: 10px; }
.nd-skel--value { height: 30px; width: 60%; margin-top: 14px; }
.nd-skel--chart { height: 180px; margin-top: 8px; }
.nd-skel--w40 { width: 40%; } .nd-skel--w70 { width: 70%; }
@keyframes nd-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.nd-load { display: grid; gap: 10px; }
.nd-load__row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 90px; gap: 14px; align-items: center; font-size: 13px; }
.nd-load__row span:last-child { text-align: right; color: var(--app-faint); font-variant-numeric: tabular-nums; }
.nd-empty { padding: 44px 24px; text-align: center; color: var(--app-muted); }
.nd-empty h3 { font-size: 17px; color: var(--app-ink); font-weight: 500; margin-bottom: 8px; }
.nd-empty p { margin: 0 auto 18px; max-width: 46ch; font-size: 14px; }
.nd-callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--app-radius-sm); background: #f0efe6; border: 1px solid #e4e3d7; color: var(--app-muted); font-size: 13px; margin-bottom: 22px; }
.nd-callout .nd-icon { color: var(--app-accent); margin-top: 1px; }
.nd-callout strong { color: var(--app-ink); font-weight: 500; }
.nd-callout--warn { background: var(--app-accent-soft); border-color: #f3d2c5; color: #7d3a28; }

/* ---------- forms inside the app ---------- */
:is(.nd-app, .nd-onboard) .nd-form { max-width: 640px; gap: 18px; }
:is(.nd-app, .nd-onboard) .nd-field > span { font-size: 13px; color: var(--app-ink); }
:is(.nd-app, .nd-onboard) .nd-field input, .nd-app .nd-field select { min-height: 44px; border-radius: 9px; border-color: var(--app-line); background: #fff; }
:is(.nd-app, .nd-onboard) .nd-field input:focus, .nd-app .nd-field select:focus { outline: 2px solid var(--app-ink); outline-offset: 1px; }
:is(.nd-app, .nd-onboard) .nd-check { padding: 14px; border: 1px solid var(--app-line); border-radius: 10px; background: #fff; font-size: 13px; color: var(--app-muted); }
:is(.nd-app, .nd-onboard) .nd-check a { color: var(--app-ink); font-weight: 500; }
:is(.nd-app, .nd-onboard) .nd-check input { accent-color: var(--app-ink); }
:is(.nd-app, .nd-onboard) .nd-form .nd-button--primary, .nd-app .nd-form button[type='submit'] { background: var(--app-ink); border-color: var(--app-ink); color: #fff; border-radius: 9px; min-height: 46px; }
:is(.nd-app, .nd-onboard) .nd-legal h2 { font-family: var(--app-serif); font-weight: 400; font-size: 22px; }

/* ---------- onboarding: split screen with a stepper ---------- */
.nd-onboard { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.4fr); min-height: 100vh; background: var(--app-bg); color: var(--app-ink); font-family: var(--nd-font); }
.nd-onboard__side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 34px 44px; background: radial-gradient(130% 90% at 0% 0%, #2c3a2f 0%, var(--app-side) 50%, var(--app-side-deep) 100%); color: var(--app-side-text); }
.nd-onboard__side h2 { font-family: var(--app-serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; color: #fff; margin: 40px 0 14px; letter-spacing: -0.02em; }
.nd-onboard__side > p { color: var(--app-side-text); font-size: 15px; max-width: 36ch; }
.nd-stepper { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 0; }
.nd-stepper li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; position: relative; }
.nd-stepper li::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: 0; width: 1px; background: var(--app-side-line); }
.nd-stepper li:last-child::before { display: none; }
.nd-stepper b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ffffff33; font-size: 13px; font-weight: 500; color: var(--app-side-text); font-variant-numeric: tabular-nums; }
.nd-stepper strong { display: block; color: #fff; font-weight: 500; font-size: 15px; margin-top: 4px; }
.nd-stepper small { display: block; font-size: 13px; color: var(--app-side-muted); margin-top: 2px; }
.nd-stepper [data-state='done'] b { background: #ffffff1a; border-color: transparent; color: #fff; }
.nd-stepper [data-state='current'] b { background: var(--app-accent); border-color: var(--app-accent); color: #fff; }
.nd-stepper [data-state='next'] strong { color: var(--app-side-text); }
.nd-onboard__trust { margin-top: auto; display: grid; gap: 8px; font-size: 13px; color: var(--app-side-muted); }
.nd-onboard__trust span { display: flex; gap: 10px; align-items: center; }
.nd-onboard__trust .nd-icon { width: 16px; height: 16px; color: var(--app-side-text); }
.nd-onboard__main { padding: 48px clamp(24px, 6vw, 96px) 64px; min-width: 0; }
.nd-onboard__main > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; font-size: 13px; color: var(--app-faint); }
.nd-onboard__main h1 { font-family: var(--app-serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; }
.nd-onboard__main > .nd-lead { color: var(--app-muted); font-size: 16px; margin: 14px 0 32px; max-width: 58ch; }
.nd-steps-card { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; max-width: 680px; }
.nd-steps-card li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 12px; }
.nd-steps-card b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eeeee6; font-size: 13px; font-weight: 500; }
.nd-steps-card strong { display: block; font-weight: 500; font-size: 15px; }
.nd-steps-card small { display: block; font-size: 13px; color: var(--app-muted); margin-top: 3px; }
.nd-steps-card [data-state='done'] b { background: var(--app-up-soft); color: var(--app-up); }
.nd-steps-card [data-state='current'] { border-color: var(--app-ink); }
.nd-steps-card [data-state='current'] b { background: var(--app-ink); color: #fff; }

/* ---------- welcome (home before any workspace) ---------- */
.nd-welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--app-radius); overflow: hidden; border: 1px solid var(--app-line); background: var(--app-card); box-shadow: var(--app-shadow); margin-bottom: 22px; }
.nd-welcome__copy { padding: 40px 40px 36px; }
.nd-welcome__copy h2 { font-family: var(--app-serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; }
.nd-welcome__copy p { color: var(--app-muted); font-size: 15px; margin: 14px 0 26px; max-width: 48ch; }
.nd-welcome__copy .nd-page-head__actions { gap: 12px; }
.nd-welcome__preview { background: radial-gradient(120% 120% at 100% 0%, #2c3a2f 0%, var(--app-side) 55%, var(--app-side-deep) 100%); padding: 32px; display: grid; align-content: center; gap: 12px; }
.nd-mini { background: #ffffff0d; border: 1px solid var(--app-side-line); border-radius: 12px; padding: 14px 16px; color: var(--app-side-text); }
.nd-mini small { display: block; font-size: 12px; color: var(--app-side-muted); }
.nd-mini strong { display: block; color: #fff; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 4px; }
.nd-mini em { font-style: normal; color: #ffd3c4; }
.nd-mini-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nd-ws-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.nd-ws { display: block; padding: 18px 20px; border-radius: var(--app-radius); border: 1px solid var(--app-line); background: var(--app-card); text-decoration: none; color: inherit; box-shadow: var(--app-shadow); transition: border-color .15s, transform .15s; }
.nd-ws:hover { border-color: #cfd0c4; transform: translateY(-2px); }
.nd-ws strong { display: block; font-size: 16px; font-weight: 500; margin: 10px 0 4px; }
.nd-ws small { color: var(--app-faint); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nd-grid-2, .nd-grid-2--even { grid-template-columns: minmax(0, 1fr); }
  .nd-stake { grid-template-columns: minmax(0, 1fr); }
  .nd-stake__queue { border-left: 0; border-top: 1px solid var(--app-side-line); }
}
/* Phones and narrow tablets (Apple HIG: a tab bar on iPhone, the sidebar on wider screens). The sidebar becomes a
   sheet opened from the menu button or the Meira tab (#valmynd, :target, no script under the CSP); the main
   destinations sit in a bottom tab bar within thumb reach, above the home indicator (safe-area insets). */
.nd-mobilebar, .nd-tabbar, .nd-side__sheet-head, .nd-scrim { display: none; }
@media (max-width: 860px) {
  .nd-app { grid-template-columns: minmax(0, 1fr); background: var(--app-bg); padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .nd-mobilebar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    background: linear-gradient(170deg, var(--app-side) 0%, var(--app-side-deep) 100%); color: #fff; }
  .nd-mobilebar__brand { text-decoration: none; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -1px; }
  .nd-mobilebar__brand i { font-style: normal; color: var(--app-accent); }
  .nd-mobilebar__title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
  .nd-mobilebar__menu { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 10px; color: #fff; }
  .nd-mobilebar__menu:active { background: #ffffff1a; }
  /* The sheet: the whole sidebar, full height, slides in from the left over a dimmed page. */
  .nd-side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(86vw, 340px); height: 100dvh; padding: calc(12px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-104%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: 0 0 0 100vmax #0b120d00; }
  .nd-side:target { transform: none; visibility: visible; transition: transform .25s ease; box-shadow: 0 0 0 100vmax #0b120d80; }
  .nd-side .nd-side__nav { margin-bottom: 8px; }
  html:has(.nd-side:target) { overflow: hidden; }
  .nd-side:target ~ .nd-scrim { display: block; position: fixed; inset: 0; z-index: 35; }
  .nd-side__sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; color: #fff; font-size: 17px; }
  .nd-side__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 10px; color: #fff; }
  .nd-side__brand { display: none; }
  .nd-side__link { min-height: 44px; font-size: 15px; }
  /* Bottom tab bar: four destinations and Meira, labels under icons, the current one in the accent colour. */
  .nd-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: #fffffdeb; border-top: 1px solid var(--app-line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
  .nd-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; padding: 2px 2px;
    text-decoration: none; color: var(--app-muted); font-size: 10.5px; font-weight: 600; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
  .nd-tabbar a span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nd-tabbar a[aria-current='page'] { color: var(--app-accent); }
  .nd-tabbar a:active { background: var(--app-line-soft); }
  .nd-tabbar svg.nd-icon { width: 23px; height: 23px; }
  .nd-tabbar em { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--app-accent); color: #fff; font-style: normal; font-size: 10px; line-height: 17px; text-align: center; }
  .nd-topbar .nd-crumbs { display: none; }
  .nd-topbar { position: static; height: auto; min-height: 0; padding: 10px 18px 0; border-bottom: 0; background: transparent; backdrop-filter: none; justify-content: flex-end; }
  .nd-topbar:has(.nd-topbar__end:empty) { display: none; }
  .nd-tbl-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .nd-content { padding: 22px 18px 48px; }
  .nd-page-head { flex-direction: column; align-items: flex-start; }
  .nd-onboard { grid-template-columns: minmax(0, 1fr); }
  .nd-onboard__side { position: static; height: auto; padding: 26px 22px; }
  .nd-onboard__side h2 { margin-top: 20px; }
  .nd-onboard__trust { display: none; }
  .nd-welcome { grid-template-columns: minmax(0, 1fr); }
  .nd-queue > li { grid-template-columns: 36px minmax(0, 1fr); }
  .nd-queue__stake { grid-column: 2; text-align: left; }
  .nd-load__row { grid-template-columns: minmax(0, 1fr) 90px; }
  .nd-load__row span:nth-child(2) { display: none; }
}
@media (max-width: 560px) { .nd-kpis { grid-template-columns: minmax(0, 1fr); } }
/* Tables on phones: lists become cards, matrices keep the first column in view while the months scroll. */
@media (max-width: 640px) {
  :is(.nd-app, .nd-onboard) .nd-tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  :is(.nd-app, .nd-onboard) .nd-tbl--stack, :is(.nd-app, .nd-onboard) .nd-tbl--stack tbody { display: block; }
  :is(.nd-app, .nd-onboard) .nd-tbl--stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--app-line-soft); }
  :is(.nd-app, .nd-onboard) .nd-tbl--stack tr:last-child { border-bottom: 0; }
  :is(.nd-app, .nd-onboard) .nd-tbl--stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 3px 0; border: 0; text-align: right; }
  :is(.nd-app, .nd-onboard) .nd-tbl--stack td:first-child { display: block; text-align: left; padding: 0 0 6px; font-size: 14px; }
  :is(.nd-app, .nd-onboard) .nd-tbl--stack td:first-child::before { display: none; }
  :is(.nd-app, .nd-onboard) .nd-tbl--stack td::before { content: attr(data-label); color: var(--app-faint); font-size: 12px; text-align: left; white-space: nowrap; }
  :is(.nd-app, .nd-onboard) .nd-tbl--stack td:not([data-label])::before { content: ''; }
  :is(.nd-app, .nd-onboard) .nd-tbl--stack td:empty { display: none; }
  :is(.nd-app, .nd-onboard) .nd-tbl--stack tbody tr:hover td { background: transparent; }
  :is(.nd-app, .nd-onboard) .nd-tbl th, :is(.nd-app, .nd-onboard) .nd-tbl td { padding-left: 14px; padding-right: 14px; }
  :is(.nd-app, .nd-onboard) .nd-tbl--matrix th:first-child, :is(.nd-app, .nd-onboard) .nd-tbl--matrix td:first-child { position: sticky; left: 0; z-index: 1; background: var(--app-card); box-shadow: 1px 0 0 var(--app-line); }
  :is(.nd-app, .nd-onboard) .nd-tbl--matrix th:first-child { background: #fbfbf7; }
  .nd-print-btn { display: none; }
}
/* Print and Save as PDF: the page only, no menus, tables whole, panels kept together, light background. */
@media print {
  @page { margin: 14mm 12mm; }
  .nd-side, .nd-mobilebar, .nd-tabbar, .nd-scrim, .nd-topbar, .nd-skip, .nd-print-btn, .nd-page-head__actions, .nd-tabs, .nd-btn { display: none !important; }
  .nd-app { display: block; background: #fff; padding: 0; }
  .nd-content { padding: 0; max-width: none; }
  .nd-panel, .nd-kpi, .nd-tile, .nd-stake, figure { break-inside: avoid; box-shadow: none; }
  .nd-tbl-wrap { overflow: visible; }
  :is(.nd-app, .nd-onboard) .nd-tbl { font-size: 10.5px; }
  :is(.nd-app, .nd-onboard) .nd-tbl th, :is(.nd-app, .nd-onboard) .nd-tbl td { padding: 5px 8px; }
  .nd-stake { background: #1e2721; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
  figure svg { max-height: 70mm; }
}

/* ---------- chips, tabs and tiles (report library, source lineage) ---------- */
.nd-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.nd-chip { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .1px; background: var(--app-line-soft); color: var(--app-muted); border: 1px solid #0000000f; white-space: nowrap; }
.nd-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--app-line); }
.nd-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; margin-bottom: -1px; text-decoration: none; color: var(--app-muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.nd-tabs a:hover { color: var(--app-ink); }
.nd-tabs a[aria-current='page'] { color: var(--app-ink); border-bottom-color: var(--app-accent); }
.nd-tabs a span { font-size: 11px; padding: 0 6px; border-radius: 999px; background: #0000000d; }
.nd-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; align-items: end; padding: 16px; margin: 0 0 12px; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 12px; }
.nd-app .nd-filters .nd-field > span { font-size: 12px; color: var(--app-muted); font-weight: 600; }
.nd-app .nd-filters .nd-field input, .nd-app .nd-filters .nd-field select { min-height: 40px; padding: 6px 10px; font-size: 14px; }
.nd-filters__actions { display: flex; align-items: center; gap: 12px; }
.nd-filters__actions button { min-height: 40px; padding: 0 20px; border: 0; border-radius: 9px; background: var(--app-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.nd-filters__actions a { font-size: 13px; color: var(--app-muted); }
.nd-filters__summary { margin: 0 0 18px; font-size: 13px; color: var(--app-muted); }
.nd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 22px; scroll-margin-top: 80px; }
.nd-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: var(--app-card); border: 1px solid var(--app-line); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.nd-tile:hover { border-color: var(--app-accent); transform: translateY(-1px); box-shadow: 0 6px 18px #0b14280f; }
.nd-tile--off { opacity: .78; background: transparent; border-style: dashed; }
.nd-tile__top { display: flex; align-items: center; gap: 8px; color: var(--app-muted); }
.nd-tile__top small { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.nd-tile__top .nd-pill { margin-left: auto; }
.nd-tile strong { font-size: 15px; line-height: 1.3; }
.nd-tile__note { font-size: 13px; line-height: 1.45; color: var(--app-muted); }
.nd-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--app-muted); margin: 6px 0 10px; scroll-margin-top: 80px; }

/* ---------- lines over bars (pulse scores over overtime), the data model matrix ---------- */
:is(.nd-app, .nd-onboard) .nd-chart .nd-chart__line { fill: none; stroke: var(--app-accent); stroke-width: 2.4; }
:is(.nd-app, .nd-onboard) .nd-chart .nd-chart__line--alt { stroke: var(--app-ink); stroke-dasharray: 5 4; stroke-width: 1.8; }
:is(.nd-app, .nd-onboard) .nd-chart .nd-chart__dot { fill: var(--app-accent); }
:is(.nd-app, .nd-onboard) .nd-chart .nd-chart__dot--alt { fill: var(--app-ink); }
:is(.nd-app, .nd-onboard) .nd-legend .nd-legend__line::before { background: var(--app-accent); }
:is(.nd-app, .nd-onboard) .nd-legend .nd-legend__alt::before { background: var(--app-ink); }
.nd-matrix td, .nd-matrix th { text-align: center; }
.nd-matrix td:first-child, .nd-matrix th:first-child { text-align: left; }
.nd-dot-on { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--app-accent); }
.nd-dot-off { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--app-line); }
.nd-neg { color: var(--app-down); font-weight: 600; }
.nd-pos { color: var(--app-up); }
@media (prefers-reduced-motion: reduce) { .nd-side, .nd-side:target { transition: none; } }

.nd-spark { width: 100%; height: 54px; } .nd-spark .l { fill: none; stroke: var(--app-ink); stroke-width: 1.6; }
.nd-spark .t { stroke: var(--app-muted); stroke-dasharray: 4 4; stroke-width: 1; } .nd-spark .g { fill: #5b7a46; } .nd-spark .b { fill: #d64a2a; }
.nd-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
@keyframes nd-fade { from { opacity: 0; } }
@keyframes nd-slide { from { transform: translateX(40px); opacity: .4; } }
@keyframes nd-toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; } }
.nd-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 760px) {
  .nd-inbox > li { grid-template-columns: 36px minmax(0, 1fr); gap: 6px 12px; padding: 16px; }
  .nd-inbox__side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .nd-inbox h3 { font-size: 16px; }
  .nd-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nd-tabs::-webkit-scrollbar { display: none; }
  .nd-tabs a { white-space: nowrap; flex: none; }
}
.nd-tabbar__locked { opacity: .6; }
.nd-grid-3 > .nd-panel { margin: 0; }

/* ---------- work board (job board): columns per stage, cards per item ---------- */
.nd-board { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.nd-board__col { flex: 1 1 0; min-width: 200px; background: var(--app-line-soft); border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 10px; scroll-snap-align: start; display: flex; flex-direction: column; }
.nd-board__col > header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 4px 6px 10px; }
.nd-board__col > header strong { font-size: 13px; font-weight: 600; }
.nd-board__col > header span { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--app-card); border: 1px solid var(--app-line); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.nd-board__col > header small { flex-basis: 100%; font-size: 12px; color: var(--app-faint); font-variant-numeric: tabular-nums; }
.nd-board__cards { display: grid; gap: 8px; align-content: start; }
.nd-board__card { position: relative; display: grid; gap: 3px; padding: 11px 12px; border-radius: var(--app-radius-sm); background: var(--app-card); border: 1px solid var(--app-line); color: var(--app-ink); text-decoration: none; font-size: 13px; transition: transform .15s, border-color .15s; }
a.nd-board__card:hover { transform: translateY(-1px); border-color: var(--app-accent); }
.nd-board__card strong { font-weight: 500; line-height: 1.3; }
.nd-board__card small { color: var(--app-muted); font-size: 12px; line-height: 1.35; }
.nd-board__card b { font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }
.nd-board__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.nd-board__meta i { font-style: normal; font-size: 11px; color: var(--app-faint); padding: 1px 6px; border-radius: 5px; background: var(--app-line-soft); }
.nd-board__badge { justify-self: start; margin-bottom: 2px; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--app-accent-ink); }
.nd-board__card--late { border-color: var(--app-down); box-shadow: inset 3px 0 0 var(--app-down); }
.nd-board__card--warn { border-color: var(--app-accent); box-shadow: inset 3px 0 0 var(--app-accent); }
.nd-board__card--done { opacity: .72; }
.nd-board__empty { font-size: 12px; color: var(--app-faint); padding: 6px; }

/* ---------- steps: a horizontal timeline ---------- */
.nd-steps { list-style: none; margin: 0; padding: 4px 0 0; display: flex; overflow-x: auto; }
.nd-steps li { position: relative; flex: 1 1 0; min-width: 96px; display: grid; align-content: start; gap: 2px; padding: 22px 10px 0 0; font-size: 13px; }
.nd-steps li::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--app-line); }
.nd-steps li:last-child::before { right: auto; width: 12px; }
.nd-steps__dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--app-card); border: 2px solid var(--app-line); }
.nd-steps [data-state='done']::before { background: var(--app-ink); }
.nd-steps [data-state='done'] .nd-steps__dot { background: var(--app-ink); border-color: var(--app-ink); }
.nd-steps [data-state='current'] .nd-steps__dot { background: var(--app-accent); border-color: var(--app-accent); box-shadow: 0 0 0 5px var(--app-accent-soft); }
.nd-steps [data-state='warn'] .nd-steps__dot { background: var(--app-down); border-color: var(--app-down); box-shadow: 0 0 0 5px var(--app-down-soft); }
.nd-steps strong { font-weight: 500; }
.nd-steps small { color: var(--app-faint); font-variant-numeric: tabular-nums; }
.nd-steps em { font-style: normal; font-size: 12px; color: var(--app-down); }
.nd-steps [data-state='next'] strong { color: var(--app-faint); }

/* ---------- small additions for client pages: numbered list, legend unit, link under a finding ---------- */
.nd-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.nd-list code, .nd-tbl code { font-family: var(--nd-font-mono); font-size: 12px; padding: 1px 6px; border-radius: 5px; background: var(--app-line-soft); }
:is(.nd-app, .nd-onboard) .nd-legend .nd-legend__unit { margin-left: auto; }
:is(.nd-app, .nd-onboard) .nd-legend .nd-legend__unit::before { display: none; }
:is(.nd-app, .nd-onboard) .nd-legend .nd-legend__accent::before { background: var(--app-accent); }
:is(.nd-app, .nd-onboard) .nd-chart .nd-chart__bar--alt { fill: var(--app-muted); }
.nd-queue__link { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--app-accent-ink); }

/* ---------- folding sidebar (AppShell.collapsible): a checkbox before the sidebar, no inline style; app.js remembers ---------- */
.nd-side-fold { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nd-side__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nd-side__fold { display: grid; place-items: center; width: 32px; height: 32px; margin-top: -4px; border-radius: 8px; color: var(--app-side-muted); cursor: pointer; flex: none; transition: background .15s, color .15s; }
.nd-side__fold:hover { background: #ffffff12; color: #fff; }
.nd-side-fold:focus-visible ~ .nd-side .nd-side__fold { outline: 2px solid var(--app-accent); outline-offset: 2px; }
@media (min-width: 861px) {
  .nd-app:has(> .nd-side-fold:checked) { grid-template-columns: 76px minmax(0, 1fr); background: linear-gradient(to right, var(--app-side-deep) 76px, var(--app-bg) 76px); }
  .nd-side-fold:checked ~ .nd-side { padding-left: 12px; padding-right: 12px; }
  .nd-side-fold:checked ~ .nd-side .nd-side__top { flex-direction: column; align-items: center; gap: 10px; }
  .nd-side-fold:checked ~ .nd-side .nd-side__brand { padding: 0 0 6px; }
  .nd-side-fold:checked ~ .nd-side .nd-side__brand b { font-size: 0; }
  .nd-side-fold:checked ~ .nd-side .nd-side__brand b::before { content: 'n'; font-size: 24px; }
  .nd-side-fold:checked ~ .nd-side .nd-side__brand b i { font-size: 24px; }
  .nd-side-fold:checked ~ .nd-side :is(.nd-side__brand span, .nd-side__company, .nd-side__caption, .nd-side__link > span, .nd-side__foot) { display: none; }
  .nd-side-fold:checked ~ .nd-side .nd-side__fold svg { transform: scaleX(-1); }
  .nd-side-fold:checked ~ .nd-side .nd-side__link { justify-content: center; padding: 11px 0; position: relative; }
  .nd-side-fold:checked ~ .nd-side .nd-side__link .nd-side__count { display: block; position: absolute; top: 4px; right: 6px; min-width: 16px; padding: 0 4px; font-size: 9px; }
  html.nd-ready :is(.nd-side, .nd-app) { transition: grid-template-columns .2s var(--nd-ease); }
}
@media (max-width: 860px) { .nd-side__fold { display: none; } }

/* clear.css */
/* The clear theme (AppShell.theme 'clear'): Apple's clarity, Nextday's black and orange.
   Scoped to .nd-app[data-theme~='clear'] so every other client is unchanged. Sources it follows:
   - Type: the platform font (SF Pro on Apple devices through -apple-system, Segoe UI and Roboto elsewhere); tight
     tracking on display sizes; iOS sizes on phones (34 large title, 17 body, 10 tab labels).
   - Colour: one ground, grey steps by role (Radix and Geist: background, hover, border, low and high contrast text),
     black for primary actions, orange only for the one thing to act on, red only for "today".
   - Motion (Emil Kowalski, Atlassian, Polaris): ease-out on enter, 120 to 300 ms, scale .97 on press, never from 0,
     the iOS drawer curve for sheets, cross-document view transitions between pages, nothing under reduced motion.
   - Phones (Apple HIG): 16 px margins, 44 px targets, a large title that hands over to the bar as you scroll, a floating
     glass tab bar above the home indicator, safe areas everywhere. */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: nd-vt-out 160ms cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: nd-vt-in 260ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes nd-vt-out { to { opacity: 0; } }
@keyframes nd-vt-in { from { opacity: 0; transform: translateY(6px); } }
.nd-app[data-theme~='clear'] .nd-side { view-transition-name: nd-side; }
.nd-app[data-theme~='clear'] .nd-tabbar { view-transition-name: nd-tabbar; }

.nd-app[data-theme~='clear'] {
  --app-side: #fbfbfd; --app-side-deep: #fbfbfd; --app-side-text: #1d1d1f; --app-side-muted: #6e6e73; --app-side-line: rgba(0, 0, 0, .06);
  --app-bg: #f2f2f4; --app-card: #ffffff; --app-line: rgba(0, 0, 0, .08); --app-line-soft: rgba(0, 0, 0, .05);
  --app-ink: #1d1d1f; --app-muted: #6e6e73; --app-faint: #86868b;
  --app-accent: #ff6b1a; --app-accent-ink: #b43f00; --app-accent-soft: #fff1e8;
  --app-up: #248a3d; --app-up-soft: #e8f5ec; --app-down: #d70015; --app-down-soft: #ffeceb; --app-today: #ff3b30;
  --app-fill: rgba(118, 118, 128, .12); --app-fill-strong: rgba(118, 118, 128, .2);
  --app-radius: 18px; --app-radius-sm: 12px;
  --app-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .04);
  --app-serif: var(--nd-font);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --nd-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI Variable', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--app-bg); font-family: var(--nd-font); font-size: 15px; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'cv11', 'ss01';
}
.nd-app[data-theme~='clear'] ::selection { background: #ffd8c2; color: #1d1d1f; }
.nd-app[data-theme~='clear'] :focus-visible { outline: 3px solid #ff6b1a80; outline-offset: 2px; border-radius: 8px; }
.nd-app[data-theme~='clear'] svg.nd-icon { stroke-width: 1.7; }

/* ---------- sidebar: translucent light, one flat list ---------- */
.nd-app[data-theme~='clear'] .nd-side { background: rgba(251, 251, 253, .82); border-right: 1px solid var(--app-side-line); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); padding: 22px 14px 18px; gap: 2px; }
.nd-app[data-theme~='clear'] .nd-side__brand { color: var(--app-ink); padding: 2px 10px 16px; }
.nd-app[data-theme~='clear'] .nd-side__brand b { font-size: 21px; letter-spacing: -0.04em; }
.nd-app[data-theme~='clear'] .nd-side__company { margin: 0 2px 12px; padding: 10px 12px; border: 0; border-radius: var(--app-radius-sm); background: var(--app-fill); color: var(--app-ink); }
.nd-app[data-theme~='clear'] .nd-side__company small { color: var(--app-muted); font-size: 12px; }
.nd-app[data-theme~='clear'] .nd-side__company strong { font-weight: 600; }
.nd-app[data-theme~='clear'] .nd-side__link { color: var(--app-ink); padding: 8px 10px; border-radius: 10px; font-size: 14px; gap: 11px; transition: background-color 150ms ease, transform 120ms var(--ease-out); }
.nd-app[data-theme~='clear'] .nd-side__link:hover { background: rgba(0, 0, 0, .04); color: var(--app-ink); }
.nd-app[data-theme~='clear'] .nd-side__link:active { transform: scale(.98); }
.nd-app[data-theme~='clear'] .nd-side__link[aria-current='page'] { background: rgba(0, 0, 0, .07); box-shadow: none; font-weight: 600; }
.nd-app[data-theme~='clear'] .nd-side__link[aria-current='page'] .nd-icon { color: var(--app-ink); }
.nd-app[data-theme~='clear'] .nd-side__count { background: transparent; color: var(--app-faint); font-weight: 500; padding: 0; }
.nd-app[data-theme~='clear'] .nd-side__nav:hover { scrollbar-color: rgba(0, 0, 0, .18) transparent; }
.nd-app[data-theme~='clear'] .nd-side__fold { color: var(--app-muted); }
.nd-app[data-theme~='clear'] .nd-side__fold:hover { background: rgba(0, 0, 0, .05); color: var(--app-ink); }
.nd-app[data-theme~='clear'] .nd-side__user { color: var(--app-muted); }
.nd-app[data-theme~='clear'] .nd-side__user a { color: var(--app-muted); }
.nd-app[data-theme~='clear'] .nd-avatar { background: #e8e8ed; color: var(--app-ink); }
@media (min-width: 861px) {
  .nd-app[data-theme~='clear'] { background: var(--app-bg); }
  .nd-app[data-theme~='clear']:has(> .nd-side-fold:checked) { background: var(--app-bg); }
  html.nd-ready .nd-app[data-theme~='clear'] { transition: grid-template-columns 260ms var(--ease-in-out); }
}

/* ---------- top bar and page head ---------- */
.nd-app[data-theme~='clear'] .nd-topbar { height: 56px; background: rgba(245, 245, 247, .72); border-bottom: 1px solid transparent; backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); padding: 0 48px; }
.nd-app[data-theme~='clear'] .nd-crumbs { color: var(--app-faint); }
.nd-app[data-theme~='clear'] .nd-content { max-width: 1240px; padding: 28px 48px 72px; }
.nd-app[data-theme~='clear'] .nd-page-head { margin-bottom: 28px; }
.nd-app[data-theme~='clear'] .nd-page-head h1 { font-family: var(--nd-font); font-weight: 700; font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.035em; line-height: 1.05; }
.nd-app[data-theme~='clear'] .nd-page-head p { font-size: 17px; line-height: 1.45; color: var(--app-muted); margin-top: 10px; }

/* ---------- surfaces ---------- */
.nd-app[data-theme~='clear'] :is(.nd-panel, .nd-kpi, .nd-kpi-tile) { border: 0; border-radius: var(--app-radius); box-shadow: var(--app-shadow); background: var(--app-card); }
.nd-app[data-theme~='clear'] .nd-panel + .nd-panel, .nd-app[data-theme~='clear'] .nd-panel + .nd-grid-2 { margin-top: 28px; }
.nd-app[data-theme~='clear'] .nd-panel__head { padding: 22px 24px 0; }
.nd-app[data-theme~='clear'] .nd-panel__head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.nd-app[data-theme~='clear'] .nd-panel__head p { font-size: 14px; }
.nd-app[data-theme~='clear'] .nd-panel__head a { color: var(--app-accent-ink); font-weight: 500; font-size: 14px; }
.nd-app[data-theme~='clear'] .nd-panel__body { padding: 0 24px 24px; }
.nd-app[data-theme~='clear'] .nd-kpi__value { font-weight: 700; letter-spacing: -0.035em; }
.nd-app[data-theme~='clear'] .nd-callout { border: 0; border-radius: var(--app-radius-sm); background: var(--app-fill); color: var(--app-ink); }
.nd-app[data-theme~='clear'] .nd-tbl th { font-size: 12px; font-weight: 600; color: var(--app-faint); letter-spacing: 0; text-transform: none; }
.nd-app[data-theme~='clear'] .nd-tbl td { border-color: var(--app-line-soft); }
.nd-app[data-theme~='clear'] .nd-tbl tbody tr { transition: background-color 120ms ease; }
.nd-app[data-theme~='clear'] .nd-tbl tbody tr:hover { background: #fafafa; }
.nd-app[data-theme~='clear'] .nd-chip { border: 0; background: var(--app-fill); color: var(--app-muted); font-weight: 500; }
.nd-app[data-theme~='clear'] .nd-pill { border: 0; background: var(--app-fill); color: var(--app-muted); font-weight: 500; }
.nd-app[data-theme~='clear'] .nd-pill--live { background: var(--app-up-soft); color: var(--app-up); }
.nd-app[data-theme~='clear'] .nd-pill--wait { background: var(--app-accent-soft); color: var(--app-accent-ink); }
.nd-app[data-theme~='clear'] .nd-pill--down { background: var(--app-down-soft); color: var(--app-down); }

/* ---------- buttons: black primary, orange for the one action, pills, press feedback ---------- */
.nd-app[data-theme~='clear'] .nd-btn { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--app-fill); color: var(--app-ink); font-weight: 600; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.nd-app[data-theme~='clear'] .nd-btn:hover { background: var(--app-fill-strong); transform: none; }
.nd-app[data-theme~='clear'] :is(.nd-btn, a.nd-board__card, .nd-case, .nd-tabbar a):active { transform: scale(.97); }
.nd-app[data-theme~='clear'] .nd-btn--primary { background: #0b0b0c; color: #fff; }
.nd-app[data-theme~='clear'] .nd-btn--primary:hover { background: #000; }
.nd-app[data-theme~='clear'] .nd-btn--accent { background: var(--app-accent); color: #0b0b0c; }
.nd-app[data-theme~='clear'] .nd-btn--accent:hover { background: #ff7d36; color: #0b0b0c; }

/* ---------- tiles ---------- */
.nd-app[data-theme~='clear'] .nd-kpi-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.nd-app[data-theme~='clear'] .nd-kpi-tile { padding: 20px 22px 16px; gap: 6px; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.nd-app[data-theme~='clear'] .nd-kpi-tile:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 8px 24px -12px rgba(0, 0, 0, .18); }
.nd-app[data-theme~='clear'] .nd-kpi-tile__top { font-size: 13px; color: var(--app-muted); }
.nd-app[data-theme~='clear'] .nd-kpi-tile__badge { background: var(--app-fill); color: var(--app-muted); }
.nd-app[data-theme~='clear'] .nd-kpi-tile.is-on_target .nd-kpi-tile__badge { background: var(--app-up-soft); color: var(--app-up); }
.nd-app[data-theme~='clear'] .nd-kpi-tile.is-off_target .nd-kpi-tile__badge { background: var(--app-fill); color: var(--app-ink); }
.nd-app[data-theme~='clear'] .nd-kpi-tile.is-signal { box-shadow: 0 0 0 1.5px var(--app-accent); }
.nd-app[data-theme~='clear'] .nd-kpi-tile.is-signal .nd-kpi-tile__badge { background: var(--app-accent-soft); color: var(--app-accent-ink); }
.nd-app[data-theme~='clear'] .nd-kpi-tile__val { font-size: 32px; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; }
.nd-app[data-theme~='clear'] .nd-kpi-tile__val small { letter-spacing: 0; }
.nd-app[data-theme~='clear'] .nd-kpi-tile__org { display: none; }
.nd-app[data-theme~='clear'] .nd-spark .l { stroke: var(--app-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nd-app[data-theme~='clear'] .nd-spark .t { stroke: #d2d2d7; stroke-dasharray: 3 4; }
.nd-app[data-theme~='clear'] .nd-spark .g { fill: var(--app-up); } .nd-app[data-theme~='clear'] .nd-spark .b { fill: var(--app-accent); }

/* ---------- the day: greeting, overnight strip, the one number, cases, stage bar ---------- */
.nd-hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.nd-hello small { display: block; font-size: 13px; font-weight: 600; color: var(--app-accent-ink); margin-bottom: 6px; }
.nd-hello h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em; }
.nd-hello p { margin: 8px 0 0; font-size: 17px; color: var(--app-muted); }
.nd-night { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 13px 18px; margin-bottom: 18px; border-radius: 14px; background: var(--app-card); box-shadow: var(--app-shadow); font-size: 13px; color: var(--app-muted); }
.nd-night strong { color: var(--app-ink); font-weight: 600; }
.nd-night span { display: inline-flex; gap: 8px; }
.nd-night time { font-variant-numeric: tabular-nums; color: var(--app-faint); }
.nd-night span + span::before { content: '→'; color: #c7c7cc; margin-right: 10px; }
.nd-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 38px; margin-bottom: 34px; border-radius: 26px; background: #0b0b0c; color: #f5f5f7; }
.nd-hero small { font-size: 13px; font-weight: 600; color: var(--app-accent); }
.nd-hero strong { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 10px; font-size: clamp(52px, 6vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.nd-hero strong span { font-size: 24px; font-weight: 600; color: #a1a1a6; letter-spacing: -0.02em; }
.nd-hero p { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.5; color: #a1a1a6; }
.nd-hero__act { display: grid; gap: 10px; min-width: 240px; text-align: center; font-size: 12px; color: #86868b; }
.nd-hero__act a { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--app-accent); color: #0b0b0c; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.nd-hero__act a:hover { background: #ff7d36; }
.nd-hero__act a:active { transform: scale(.97); }
.nd-block { margin: 0 0 34px; }
.nd-block > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.nd-block > header h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.nd-block > header span, .nd-block > header a { font-size: 14px; color: var(--app-muted); }
.nd-block > header a { color: var(--app-accent-ink); font-weight: 500; text-decoration: none; }
.nd-block > footer { margin-top: 10px; font-size: 12px; color: var(--app-faint); }
.nd-cases { list-style: none; margin: 0; padding: 0; border-radius: var(--app-radius); background: var(--app-card); box-shadow: var(--app-shadow); overflow: hidden; }
.nd-case { display: flex; align-items: center; gap: 16px; padding: 16px 22px; color: var(--app-ink); text-decoration: none; transition: background-color 120ms ease, transform 160ms var(--ease-out); }
.nd-cases li + li .nd-case { border-top: 1px solid var(--app-line-soft); }
.nd-case:hover { background: #fafafa; }
.nd-case i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #d2d2d7; }
.nd-case i.is-today { background: var(--app-today); }
.nd-case > span { flex: 1; min-width: 0; display: grid; gap: 3px; }
.nd-case b { font-size: 15px; font-weight: 600; }
.nd-case small { font-size: 13px; color: var(--app-muted); line-height: 1.4; }
.nd-case em { flex: none; font-style: normal; font-size: 12px; color: var(--app-faint); }
.nd-case strong { flex: none; min-width: 84px; text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nd-case svg { flex: none; width: 8px; height: 14px; stroke: #c7c7cc; fill: none; stroke-width: 2; }
.nd-stagebar { padding: 22px; border-radius: var(--app-radius); background: var(--app-card); box-shadow: var(--app-shadow); display: grid; gap: 16px; }
.nd-stagebar__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.nd-stagebar__head strong { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.nd-stagebar__head span { font-size: 15px; color: var(--app-muted); }
.nd-stagebar svg { display: block; width: 100%; height: 10px; }
.nd-stagebar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--app-muted); }
.nd-stagebar li::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 2px; background: currentColor; opacity: .5; vertical-align: 1px; }
.nd-stagebar li.is-hot { color: var(--app-ink); font-weight: 600; }
.nd-stagebar li.is-hot::before { background: var(--app-accent); opacity: 1; }

/* ---------- order board ---------- */
.nd-app[data-theme~='clear'] .nd-board { gap: 14px; }
.nd-app[data-theme~='clear'] .nd-board__col { background: transparent; border: 0; padding: 0; min-width: 214px; }
.nd-app[data-theme~='clear'] .nd-board__col > header { padding: 0 4px 10px; }
.nd-app[data-theme~='clear'] .nd-board__col > header strong { font-size: 14px; }
.nd-app[data-theme~='clear'] .nd-board__col > header span { border: 0; background: var(--app-fill); }
.nd-app[data-theme~='clear'] .nd-board__card { padding: 14px; border: 0; border-radius: 14px; box-shadow: var(--app-shadow); gap: 6px; transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.nd-app[data-theme~='clear'] a.nd-board__card:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 10px 24px -14px rgba(0, 0, 0, .25); }
.nd-app[data-theme~='clear'] .nd-board__card strong { font-weight: 600; }
.nd-app[data-theme~='clear'] .nd-board__card--warn { box-shadow: 0 0 0 1.5px var(--app-accent); }
.nd-app[data-theme~='clear'] .nd-board__card--late { box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.nd-app[data-theme~='clear'] .nd-board__card--late .nd-board__meta i:first-child { color: var(--app-today); font-weight: 600; }
.nd-app[data-theme~='clear'] .nd-board__badge { text-transform: none; letter-spacing: 0; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--app-accent-soft); }
.nd-app[data-theme~='clear'] .nd-board__meta i { background: transparent; padding: 0; }

/* ---------- fintech blocks (nd-fin-*): Revolut-like cards, a running-total chart, a budget ring, capsule bars ---------- */
.nd-tone-ink { --tone: #111113; } .nd-tone-accent { --tone: #ff6b1a; } .nd-tone-mid { --tone: #8e8e93; } .nd-tone-warm { --tone: #ffb27a; }
.nd-tone-light { --tone: #c7c7cc; } .nd-tone-track { --tone: #efeff2; }
.nd-fin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 34px; }
.nd-fin-card { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .03); }
.nd-fin-card--wide { grid-column: span 2; }
.nd-fin-card--list { padding: 10px 0; }
.nd-fin-card--list > header, .nd-fin-card--list > .nd-fin-lead { padding: 14px 24px 0; }
.nd-fin-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.nd-fin-card > header h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.025em; }
.nd-fin-card > header a { font-size: 14px; font-weight: 600; color: var(--app-accent-ink, #b43f00); text-decoration: none; }
.nd-fin-card > header span { font-size: 13px; color: #8e8e93; }
.nd-fin-card--dark { background: #111113; color: #fff; gap: 8px; }
.nd-fin-card--dark > header a, .nd-fin-card--dark > header span { color: #a1a1a6; }
.nd-fin-label { font-size: 15px; font-weight: 500; color: #6e6e73; }
.nd-fin-card--dark .nd-fin-label { font-size: 13px; color: #a1a1a6; }
.nd-fin-label.is-accent { color: #ff6b1a; font-weight: 600; }
.nd-fin-number { display: flex; align-items: baseline; gap: 6px; }
.nd-fin-number strong { font-size: clamp(44px, 4.4vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.nd-fin-number span { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.nd-fin-card--dark .nd-fin-number strong { font-size: 44px; } .nd-fin-card--dark .nd-fin-number span { font-size: 16px; color: #a1a1a6; }
.nd-fin-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.nd-fin-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f2f2f4; font-size: 13px; font-weight: 600; }
.nd-fin-chip i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b1a; }
.nd-fin-chip.is-quiet { color: #6e6e73; }
.nd-fin-chip.is-down { background: #fff1e8; color: #c2410c; } .nd-fin-chip.is-up { background: #e8f5ec; color: #1f7a3a; }
.nd-fin-source { font-size: 12px; color: #8e8e93; }
.nd-fin-chart, .nd-fin-cols { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.nd-fin-chart__stop0 { stop-color: #ff6b1a; stop-opacity: .26; } .nd-fin-chart__stop1 { stop-color: #ff6b1a; stop-opacity: 0; }
.nd-fin-chart__area { fill: url(#nd-fin-fill); }
.nd-fin-chart__line { fill: none; stroke: #ff6b1a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 0; animation: nd-draw 1100ms var(--ease-out) both; }
@keyframes nd-draw { from { stroke-dashoffset: 2000; } }
.nd-fin-chart__goal { stroke: #d1d1d6; stroke-dasharray: 2 5; stroke-linecap: round; }
.nd-fin-chart__pace { fill: none; stroke: #b4b4bb; stroke-width: 1.6; stroke-dasharray: 4 5; stroke-linecap: round; }
.nd-fin-chart__drop { stroke: rgba(17, 17, 19, .12); }
.nd-fin-chart__halo { fill: #ff6b1a; fill-opacity: .18; } .nd-fin-chart__dot { fill: #fff; stroke: #ff6b1a; stroke-width: 2.6; }
.nd-fin-chart__tip { fill: #111113; } .nd-fin-chart__tiptext { fill: #fff; font-size: 12px; font-weight: 700; }
.nd-fin-chart__note { fill: #8e8e93; font-size: 12px; }
.nd-fin-ring { width: 160px; height: 160px; align-self: center; margin: 6px 0 10px; }
.nd-fin-ring__track { fill: none; stroke: #efeff2; stroke-width: 10; }
.nd-fin-ring__seg { fill: none; stroke: var(--tone); stroke-width: 10; stroke-linecap: butt; }
.nd-fin-ring__big { font-size: 20px; font-weight: 800; letter-spacing: -1px; fill: #111113; } .nd-fin-ring__small { font-size: 8.5px; fill: #8e8e93; }
.nd-fin-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13px; }
.nd-fin-legend li { display: flex; align-items: center; gap: 8px; }
.nd-fin-legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--tone); flex: none; }
.nd-fin-legend span { flex: 1; color: #3a3a3c; } .nd-fin-legend em { font-style: normal; color: #8e8e93; font-variant-numeric: tabular-nums; }
.nd-fin-legend b { width: 46px; text-align: right; font-variant-numeric: tabular-nums; } .nd-fin-legend b.is-low, .nd-fin-rows strong.is-low { color: #c2410c; }
.nd-fin-lead { margin: 0; font-size: 14px; color: #6e6e73; } .nd-fin-lead strong { color: #111113; }
.nd-fin-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.nd-fin-rows a, .nd-fin-rows li > div { display: flex; align-items: center; gap: 14px; padding: 12px 24px; color: #111113; text-decoration: none; transition: background-color 120ms ease, transform 160ms var(--ease-out); }
.nd-fin-rows a:hover { background: #fafafb; } .nd-fin-rows a:active { transform: scale(.985); }
.nd-fin-icon, .nd-fin-badge { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #efeff2; color: #111113; }
.nd-fin-icon.is-hot { background: #fff1e8; color: #c2410c; }
.nd-fin-icon svg, .nd-fin-act svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nd-fin-badge { background: var(--tone); color: #fff; font-size: 12px; font-weight: 800; }
.nd-fin-badge.nd-tone-light, .nd-fin-badge.nd-tone-warm, .nd-fin-badge.nd-tone-mid { color: #111113; }
.nd-fin-rows__text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.nd-fin-rows__text b { font-size: 15px; font-weight: 600; }
.nd-fin-rows__text small { font-size: 13px; color: #8e8e93; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nd-fin-rows em { width: 64px; flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: #8e8e93; } .nd-fin-rows em.is-today { color: #ff3b30; }
.nd-fin-rows strong { flex: none; min-width: 84px; text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nd-fin-rows svg[viewBox='0 0 8 14'] { width: 8px; height: 14px; fill: none; stroke: #c7c7cc; stroke-width: 2; flex: none; }
.nd-fin-bar { display: block; width: 100%; height: 6px; } .nd-fin-bar__track { fill: #efeff2; } .nd-fin-bar__fill { fill: var(--tone); }
.nd-fin-card--dark .nd-fin-bar__track { fill: #2c2c2e; }
.nd-fin-stages { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.nd-fin-stages li { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; font-size: 13px; }
.nd-fin-stages li .nd-fin-bar { grid-column: 1 / -1; } .nd-fin-stages em { font-style: normal; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.nd-fin-stages li.is-hot span { color: #ff6b1a; font-weight: 600; }
.nd-fin-ebitda { display: block; width: 100%; height: auto; margin-top: auto; padding-top: 14px; }
.nd-fin-ebitda__zero { stroke: #3a3a3c; } .nd-fin-ebitda__bar { fill: #e5e5ea; } .nd-fin-ebitda__bar.is-neg { fill: #ff6b1a; }
.nd-fin-ebitda__plan { stroke: #ff6b1a; stroke-width: 2; stroke-linecap: round; } .nd-fin-ebitda__label { fill: #8e8e93; font-size: 10px; }
.nd-fin-cols__plan { fill: #efeff2; } .nd-fin-cols__real { fill: #111113; } .nd-fin-cols__real.is-now { fill: #ff6b1a; }
.nd-fin-key { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #6e6e73; }
.nd-fin-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--tone); vertical-align: -1px; }
.nd-fin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nd-fin-act { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px; border-radius: 999px; background: #fff; color: #111113; text-decoration: none; font-size: 14px; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.nd-fin-act b { font-weight: 600; } .nd-fin-act:hover { background: #fafafb; } .nd-fin-act:active { transform: scale(.97); }
.nd-fin-act.is-main { background: #111113; color: #fff; } .nd-fin-act.is-main:hover { background: #000; }
.nd-fin-act span { display: grid; place-items: center; }
.nd-app[data-theme~='clear'] .nd-hello { align-items: center; }
@media (max-width: 1100px) { .nd-fin-grid { grid-template-columns: minmax(0, 1fr); } .nd-fin-card--wide { grid-column: auto; } }
@media (max-width: 860px) {
  .nd-fin-grid { gap: 12px; margin-bottom: 26px; }
  .nd-fin-card { padding: 18px; border-radius: 26px; }
  .nd-fin-card--list { padding: 6px 0; }
  .nd-fin-card--list > header, .nd-fin-card--list > .nd-fin-lead { padding: 12px 18px 0; }
  .nd-fin-rows a, .nd-fin-rows li > div { padding: 12px 18px; gap: 12px; }
  .nd-fin-rows em, .nd-fin-rows svg[viewBox='0 0 8 14'] { display: none; }
  .nd-fin-rows strong { min-width: 0; }
  .nd-fin-number strong { font-size: 48px; }
  .nd-fin-source { display: none; }
  .nd-fin-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 6px; }
  .nd-fin-act { flex-direction: column; height: auto; padding: 0; gap: 8px; background: transparent; font-size: 12px; text-align: center; }
  .nd-fin-act span { width: 54px; height: 54px; border-radius: 50%; background: #fff; }
  .nd-fin-act.is-main { background: transparent; color: #111113; } .nd-fin-act.is-main span { background: #111113; color: #fff; }
  .nd-fin-act svg { width: 22px; height: 22px; }
  .nd-fin-ring { width: 140px; height: 140px; }
  .nd-fin-chart__note { font-size: 24px; } .nd-fin-chart__tipg { display: none; }
  .nd-fin-chart__goal, .nd-fin-chart__pace, .nd-fin-chart__drop { stroke-width: 2.4; }
  .nd-fin-chart__dot { r: 9; stroke-width: 4; } .nd-fin-chart__halo { r: 18; }
}

/* ---------- entrance: the page settles in, top to bottom (once per load) ---------- */
@keyframes nd-rise { from { opacity: 0; transform: translateY(8px); } }
.nd-app[data-theme~='clear'] .nd-content > * { animation: nd-rise 420ms var(--ease-out) both; }
.nd-app[data-theme~='clear'] .nd-content > :nth-child(2) { animation-delay: 40ms; }
.nd-app[data-theme~='clear'] .nd-content > :nth-child(3) { animation-delay: 80ms; }
.nd-app[data-theme~='clear'] .nd-content > :nth-child(4) { animation-delay: 120ms; }
.nd-app[data-theme~='clear'] .nd-content > :nth-child(n+5) { animation-delay: 160ms; }

/* ---------- phones ---------- */
.nd-install { display: none; }
@media (max-width: 860px) {
  .nd-app[data-theme~='clear'] { font-size: 17px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .nd-app[data-theme~='clear'] .nd-mobilebar { height: calc(44px + env(safe-area-inset-top)); background: rgba(245, 245, 247, .78); color: var(--app-ink); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
  .nd-app[data-theme~='clear'] .nd-mobilebar__brand { color: var(--app-ink); font-size: 18px; }
  .nd-app[data-theme~='clear'] .nd-mobilebar__title { font-size: 17px; opacity: 0; transform: translateY(4px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  html.nd-scrolled .nd-app[data-theme~='clear'] .nd-mobilebar { border-bottom-color: rgba(0, 0, 0, .08); }
  html.nd-scrolled .nd-app[data-theme~='clear'] .nd-mobilebar__title { opacity: 1; transform: none; }
  .nd-app[data-theme~='clear'] .nd-mobilebar__menu { color: var(--app-ink); }
  .nd-app[data-theme~='clear'] .nd-content { padding: 16px 16px 32px; }
  .nd-app[data-theme~='clear'] .nd-topbar { display: none; }
  .nd-app[data-theme~='clear'] .nd-page-head h1, .nd-hello h1 { font-size: 34px; letter-spacing: -0.03em; }
  .nd-app[data-theme~='clear'] .nd-page-head p, .nd-hello p { font-size: 15px; }
  .nd-hello { margin-bottom: 16px; }
  .nd-night { display: none; }
  .nd-hero { padding: 22px; border-radius: 22px; margin-bottom: 26px; gap: 18px; }
  .nd-hero strong { font-size: 52px; }
  .nd-hero p { font-size: 14px; }
  .nd-hero__act { min-width: 0; width: 100%; }
  .nd-case { padding: 14px 16px; gap: 12px; }
  .nd-case em, .nd-case svg { display: none; }
  .nd-case small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nd-app[data-theme~='clear'] .nd-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nd-app[data-theme~='clear'] .nd-kpi-tile { padding: 14px 16px; }
  .nd-app[data-theme~='clear'] .nd-kpi-tile__val { font-size: 24px; }
  .nd-app[data-theme~='clear'] .nd-kpi-tile :is(.nd-kpi-tile__lim, .nd-kpi-tile__sub) { display: none; }
  .nd-app[data-theme~='clear'] .nd-kpi-tile .nd-spark { height: 34px; }
  .nd-app[data-theme~='clear'] .nd-kpi-tile__top { font-size: 12px; }
  .nd-app[data-theme~='clear'] :is(.nd-kpi-tile__badge, .nd-kpi-tile__val small) { display: none; }
  .nd-app[data-theme~='clear'] .nd-kpi-tile__val { font-size: 22px; }
  .nd-block > header span { display: none; }
  .nd-block { margin-bottom: 28px; }
  /* The sheet: light, from the left on the iOS drawer curve. */
  .nd-app[data-theme~='clear'] .nd-side { background: #f5f5f7; transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0); }
  .nd-app[data-theme~='clear'] .nd-side:target { transition: transform 420ms var(--ease-drawer); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .32); }
  .nd-app[data-theme~='clear'] .nd-side__sheet-head { color: var(--app-ink); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
  .nd-app[data-theme~='clear'] .nd-side__close { color: var(--app-ink); }
  .nd-app[data-theme~='clear'] .nd-side__link { min-height: 48px; font-size: 17px; }
  /* Floating glass tab bar above the home indicator. */
  .nd-app[data-theme~='clear'] .nd-tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border: 0; border-radius: 26px;
    background: rgba(255, 255, 255, .72); box-shadow: 0 10px 34px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .05); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px); }
  .nd-app[data-theme~='clear'] .nd-tabbar a { min-height: 50px; border-radius: 20px; font-size: 10px; font-weight: 600; color: var(--app-muted); transition: transform 160ms var(--ease-out), background-color 150ms ease; }
  .nd-app[data-theme~='clear'] .nd-tabbar a[aria-current='page'] { color: var(--app-accent-ink); background: rgba(0, 0, 0, .05); }
  .nd-app[data-theme~='clear'] .nd-tabbar em { background: var(--app-today); }
  /* Add to Home Screen, once, on iPhone in Safari (app.js shows it; it hides for good when closed or installed). */
  .nd-app[data-theme~='clear'] .nd-install.is-shown { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--app-card); box-shadow: var(--app-shadow); font-size: 14px; line-height: 1.4; animation: nd-rise 420ms var(--ease-out) both; }
  .nd-install b { display: block; font-weight: 600; margin-bottom: 2px; }
  .nd-install span { flex: 1; color: var(--app-muted); }
  .nd-install button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--app-fill); color: var(--app-muted); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
}
html.nd-standalone .nd-install { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .nd-app[data-theme~='clear'] *, .nd-app[data-theme~='clear'] *::before { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* untitled.css */
/* The Untitled UI theme (AppShell.theme 'untitled'): the clear theme's layout and motion, dressed in Untitled UI.
   Tokens are Untitled UI's own (github.com/untitleduico/react, styles/theme.css and the Figma colour styles; MIT,
   Copyright (c) 2025 Untitled UI), used the way the kit asks: one gray scale, the brand scale swapped for our own
   (Untitled's "orange" scale, the nearest to Nextday orange), semantic roles (text primary to quaternary, bg primary
   and secondary, border primary and secondary, fg), Inter, shadow-xs on 12 px cards with a 1 px secondary border,
   skeuomorphic primary buttons, pill badges with an inset ring, light featured icons. Scoped to
   .nd-app[data-theme~='untitled'] (rendered as data-theme="clear untitled"). Inter: SIL OFL, served from /assets. */

@font-face { font-family: 'Inter'; src: url('/assets/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('/assets/inter-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.nd-app[data-theme~='untitled'] {
  /* Untitled UI gray (light mode) */
  --uu-gray-25: #fdfdfd; --uu-gray-50: #fafafa; --uu-gray-100: #f5f5f5; --uu-gray-200: #e9eaeb; --uu-gray-300: #d5d7da; --uu-gray-400: #a4a7ae;
  --uu-gray-500: #717680; --uu-gray-600: #535862; --uu-gray-700: #414651; --uu-gray-800: #252b37; --uu-gray-900: #181d27; --uu-gray-950: #0a0d12;
  /* Brand: Untitled UI "orange", in place of the kit's violet */
  --uu-brand-25: #fefaf5; --uu-brand-50: #fef6ee; --uu-brand-100: #fdead7; --uu-brand-200: #f9dbaf; --uu-brand-300: #f7b27a; --uu-brand-400: #f38744;
  --uu-brand-500: #ef6820; --uu-brand-600: #e04f16; --uu-brand-700: #b93815; --uu-brand-800: #932f19; --uu-brand-900: #772917;
  /* Error, warning, success (Untitled UI) */
  --uu-error-50: #fef3f2; --uu-error-200: #fecdca; --uu-error-500: #f04438; --uu-error-600: #d92d20; --uu-error-700: #b42318;
  --uu-warning-50: #fffaeb; --uu-warning-200: #fedf89; --uu-warning-500: #f79009; --uu-warning-700: #b54708;
  --uu-success-50: #ecfdf3; --uu-success-200: #abefc6; --uu-success-500: #17b26a; --uu-success-600: #079455; --uu-success-700: #067647;
  /* Semantic roles */
  --uu-text-primary: var(--uu-gray-900); --uu-text-secondary: var(--uu-gray-700); --uu-text-tertiary: var(--uu-gray-600); --uu-text-quaternary: var(--uu-gray-500);
  --uu-text-brand: var(--uu-brand-700); --uu-fg-quaternary: var(--uu-gray-400);
  --uu-bg-primary: #fff; --uu-bg-secondary: var(--uu-gray-50); --uu-bg-tertiary: var(--uu-gray-100); --uu-bg-active: var(--uu-gray-50);
  --uu-border-primary: var(--uu-gray-300); --uu-border-secondary: var(--uu-gray-200);
  --uu-shadow-xs: 0px 1px 2px rgba(10, 13, 18, 0.05);
  --uu-shadow-sm: 0px 1px 3px rgba(10, 13, 18, 0.1), 0px 1px 2px -1px rgba(10, 13, 18, 0.1);
  --uu-shadow-lg: 0px 12px 16px -4px rgba(10, 13, 18, 0.08), 0px 4px 6px -2px rgba(10, 13, 18, 0.03), 0px 2px 2px -1px rgba(10, 13, 18, 0.04);
  --uu-shadow-skeuomorphic: 0px 0px 0px 1px rgba(10, 13, 18, 0.18) inset, 0px -2px 0px 0px rgba(10, 13, 18, 0.05) inset;
  --uu-ring-focus: 0 0 0 4px rgba(239, 104, 32, 0.24);
  /* Feed the engine's own variables, so every component follows */
  --app-bg: #fff; --app-card: #fff; --app-line: var(--uu-border-secondary); --app-line-soft: var(--uu-gray-100);
  --app-ink: var(--uu-text-primary); --app-muted: var(--uu-text-tertiary); --app-faint: var(--uu-text-quaternary);
  --app-accent: var(--uu-brand-600); --app-accent-ink: var(--uu-brand-700); --app-accent-soft: var(--uu-brand-50);
  --app-up: var(--uu-success-700); --app-up-soft: var(--uu-success-50); --app-down: var(--uu-error-700); --app-down-soft: var(--uu-error-50); --app-today: var(--uu-error-500);
  --app-fill: var(--uu-gray-100); --app-fill-strong: var(--uu-gray-200);
  --app-radius: 12px; --app-radius-sm: 8px; --app-shadow: var(--uu-shadow-xs);
  --nd-font: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-family: var(--nd-font); font-size: 14px; letter-spacing: 0; color: var(--uu-text-primary); background: var(--uu-bg-primary);
  font-feature-settings: 'cv11'; font-variant-ligatures: contextual;
}
.nd-app[data-theme~='untitled'] ::selection { background: var(--uu-brand-100); color: var(--uu-brand-900); }
.nd-app[data-theme~='untitled'] :focus-visible { outline: 2px solid var(--uu-brand-500); outline-offset: 2px; border-radius: 6px; }

/* ---------- sidebar navigation (Untitled "sidebar navigation simple") ---------- */
.nd-app[data-theme~='untitled'] .nd-side { background: var(--uu-bg-primary); border-right: 1px solid var(--uu-border-secondary); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 24px 16px 20px; gap: 4px; }
.nd-app[data-theme~='untitled'] .nd-side__brand { padding: 0 8px 20px; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-side__brand b { font-size: 20px; letter-spacing: -0.03em; }
.nd-app[data-theme~='untitled'] .nd-side__company { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--uu-border-secondary); border-radius: 8px; background: var(--uu-bg-primary); box-shadow: var(--uu-shadow-xs); }
.nd-app[data-theme~='untitled'] .nd-side__company small { color: var(--uu-text-tertiary); font-size: 12px; }
.nd-app[data-theme~='untitled'] .nd-side__company strong { color: var(--uu-text-primary); font-size: 14px; font-weight: 600; }
.nd-app[data-theme~='untitled'] .nd-side__link { gap: 12px; padding: 8px 12px; border-radius: 6px; color: var(--uu-text-secondary); font-size: 16px; font-weight: 600; }
.nd-app[data-theme~='untitled'] .nd-side__link .nd-icon { width: 20px; height: 20px; color: var(--uu-fg-quaternary); stroke-width: 1.8; }
.nd-app[data-theme~='untitled'] .nd-side__link:hover { background: var(--uu-bg-secondary); color: var(--uu-gray-800); }
.nd-app[data-theme~='untitled'] .nd-side__link[aria-current='page'] { background: var(--uu-bg-active); color: var(--uu-gray-800); font-weight: 600; }
.nd-app[data-theme~='untitled'] .nd-side__link[aria-current='page'] .nd-icon { color: var(--uu-gray-500); }
.nd-app[data-theme~='untitled'] .nd-side__count { min-width: 0; padding: 2px 8px; border-radius: 999px; background: var(--uu-bg-secondary); box-shadow: inset 0 0 0 1px var(--uu-border-secondary); color: var(--uu-text-secondary); font-size: 12px; font-weight: 500; }
.nd-app[data-theme~='untitled'] .nd-side__foot { border-top: 1px solid var(--uu-border-secondary); padding: 20px 8px 0; }
.nd-app[data-theme~='untitled'] .nd-side__user { color: var(--uu-text-tertiary); font-size: 13px; min-width: 0; }
.nd-app[data-theme~='untitled'] .nd-side__user > span:not(.nd-avatar) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-app[data-theme~='untitled'] .nd-side__user a { flex: none; font-weight: 600; color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-avatar { width: 40px; height: 40px; background: var(--uu-gray-100); color: var(--uu-text-tertiary); font-size: 16px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(10, 13, 18, 0.08); }

/* ---------- header and page header ---------- */
.nd-app[data-theme~='untitled'] .nd-topbar { height: 64px; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--uu-border-secondary); padding: 0 32px; }
.nd-app[data-theme~='untitled'] .nd-crumbs { color: var(--uu-text-quaternary); font-size: 14px; font-weight: 600; }
.nd-app[data-theme~='untitled'] .nd-crumbs a { color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-crumbs strong { color: var(--uu-text-brand); font-weight: 600; }
.nd-app[data-theme~='untitled'] .nd-content { max-width: 1280px; padding: 32px 32px 64px; }
.nd-app[data-theme~='untitled'] .nd-page-head { padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--uu-border-secondary); }
.nd-app[data-theme~='untitled'] .nd-page-head h1, .nd-app[data-theme~='untitled'] .nd-hello h1 { font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: 0; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-page-head p, .nd-app[data-theme~='untitled'] .nd-hello p { margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-hello { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--uu-border-secondary); }
.nd-app[data-theme~='untitled'] .nd-hello small { color: var(--uu-text-brand); font-weight: 600; font-size: 14px; }

/* ---------- cards: 12 px, a secondary border, shadow-xs ---------- */
.nd-app[data-theme~='untitled'] :is(.nd-panel, .nd-kpi, .nd-kpi-tile, .nd-fin-card, .nd-night, .nd-cases, .nd-stagebar, .nd-board__card) {
  border: 1px solid var(--uu-border-secondary); border-radius: 12px; box-shadow: var(--uu-shadow-xs); background: var(--uu-bg-primary); }
.nd-app[data-theme~='untitled'] .nd-panel + .nd-panel, .nd-app[data-theme~='untitled'] .nd-panel + .nd-grid-2 { margin-top: 24px; }
.nd-app[data-theme~='untitled'] .nd-panel__head { padding: 20px 24px 0; margin-bottom: 20px; }
.nd-app[data-theme~='untitled'] .nd-panel__head h2 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: 0; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-panel__head p { font-size: 14px; line-height: 20px; color: var(--uu-text-tertiary); margin-top: 4px; }
.nd-app[data-theme~='untitled'] .nd-panel__head a { font-size: 14px; font-weight: 600; color: var(--uu-text-brand); }
.nd-app[data-theme~='untitled'] .nd-panel__body { padding: 0 24px 24px; }
.nd-app[data-theme~='untitled'] .nd-panel__foot { border-top-color: var(--uu-border-secondary); color: var(--uu-text-tertiary); padding: 12px 24px; }

/* ---------- metrics (Untitled "metric item") ---------- */
.nd-app[data-theme~='untitled'] .nd-kpis { gap: 24px; margin-bottom: 32px; }
.nd-app[data-theme~='untitled'] .nd-kpi { padding: 20px 24px; gap: 8px; }
.nd-app[data-theme~='untitled'] .nd-kpi__label { font-size: 14px; font-weight: 500; color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-kpi__value { font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: 0; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-kpi__foot { color: var(--uu-text-tertiary); font-size: 14px; }
.nd-app[data-theme~='untitled'] .nd-kpi-grid { gap: 24px; }
.nd-app[data-theme~='untitled'] .nd-kpi-tile { padding: 20px 24px; gap: 8px; }
.nd-app[data-theme~='untitled'] .nd-kpi-tile__top { font-size: 14px; font-weight: 500; color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-kpi-tile__val { font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: 0; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-kpi-tile__val small, .nd-app[data-theme~='untitled'] :is(.nd-kpi-tile__sub, .nd-kpi-tile__lim) { color: var(--uu-text-tertiary); font-size: 14px; }
.nd-app[data-theme~='untitled'] .nd-spark .l { stroke: var(--uu-brand-600); stroke-width: 2; }
.nd-app[data-theme~='untitled'] .nd-spark .t { stroke: var(--uu-gray-300); }
.nd-app[data-theme~='untitled'] .nd-spark .g { fill: var(--uu-success-500); } .nd-app[data-theme~='untitled'] .nd-spark .b { fill: var(--uu-error-500); }

/* ---------- badges: pill-color, an inset ring (gray, brand, error, warning, success) ---------- */
.nd-app[data-theme~='untitled'] :is(.nd-pill, .nd-chip, .nd-kpi-tile__badge, .nd-board__badge, .nd-fin-chip, .nd-delta) {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 0; border-radius: 999px; font-size: 12px; line-height: 18px; font-weight: 500;
  text-transform: none; letter-spacing: 0; background: var(--uu-gray-50); color: var(--uu-gray-700); box-shadow: inset 0 0 0 1px var(--uu-gray-200); }
.nd-app[data-theme~='untitled'] .nd-pill::before { width: 6px; height: 6px; opacity: 1; background: var(--uu-gray-500); }
.nd-app[data-theme~='untitled'] .nd-pill--plain::before { display: none; }
.nd-app[data-theme~='untitled'] :is(.nd-pill--live, .nd-kpi-tile.is-on_target .nd-kpi-tile__badge, .nd-fin-chip.is-up, .nd-delta--up) { background: var(--uu-success-50); color: var(--uu-success-700); box-shadow: inset 0 0 0 1px var(--uu-success-200); }
.nd-app[data-theme~='untitled'] .nd-pill--live::before { background: var(--uu-success-500); }
.nd-app[data-theme~='untitled'] :is(.nd-pill--wait, .nd-board__badge, .nd-kpi-tile.is-signal .nd-kpi-tile__badge, .nd-fin-chip:not(.is-quiet):not(.is-up):not(.is-down)) { background: var(--uu-brand-50); color: var(--uu-brand-700); box-shadow: inset 0 0 0 1px var(--uu-brand-200); }
.nd-app[data-theme~='untitled'] .nd-pill--wait::before, .nd-app[data-theme~='untitled'] .nd-fin-chip i { background: var(--uu-brand-500); }
.nd-app[data-theme~='untitled'] :is(.nd-pill--down, .nd-fin-chip.is-down, .nd-delta--down) { background: var(--uu-error-50); color: var(--uu-error-700); box-shadow: inset 0 0 0 1px var(--uu-error-200); }
.nd-app[data-theme~='untitled'] .nd-pill--down::before { background: var(--uu-error-500); }
.nd-app[data-theme~='untitled'] .nd-kpi-tile.is-off_target .nd-kpi-tile__badge { background: var(--uu-warning-50); color: var(--uu-warning-700); box-shadow: inset 0 0 0 1px var(--uu-warning-200); }
.nd-app[data-theme~='untitled'] .nd-kpi-tile.is-signal { box-shadow: var(--uu-shadow-xs); border-color: var(--uu-border-secondary); }

/* ---------- buttons: primary (brand, skeuomorphic), secondary (white, ring), tertiary ---------- */
.nd-app[data-theme~='untitled'] :is(.nd-btn, .nd-fin-act) { min-height: 40px; height: auto; padding: 10px 14px; gap: 4px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: var(--uu-bg-primary); color: var(--uu-text-secondary); box-shadow: var(--uu-shadow-skeuomorphic), var(--uu-shadow-xs), inset 0 0 0 1px var(--uu-border-primary); transition: background-color 100ms linear, transform 160ms var(--ease-out); }
.nd-app[data-theme~='untitled'] :is(.nd-btn, .nd-fin-act):hover { background: var(--uu-bg-secondary); color: var(--uu-gray-800); }
.nd-app[data-theme~='untitled'] :is(.nd-btn--primary, .nd-btn--accent, .nd-fin-act.is-main, .nd-hero__act a) { background: var(--uu-brand-600); color: #fff; box-shadow: var(--uu-shadow-skeuomorphic), var(--uu-shadow-xs); }
.nd-app[data-theme~='untitled'] :is(.nd-btn--primary, .nd-btn--accent, .nd-fin-act.is-main, .nd-hero__act a):hover { background: var(--uu-brand-700); color: #fff; }
.nd-app[data-theme~='untitled'] .nd-btn--quiet { box-shadow: none; background: transparent; color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-fin-act b { font-weight: 600; }
.nd-app[data-theme~='untitled'] .nd-fin-act svg { width: 20px; height: 20px; color: var(--uu-fg-quaternary); }
.nd-app[data-theme~='untitled'] .nd-fin-act.is-main svg { color: rgba(255, 255, 255, .7); }

/* ---------- tables (Untitled "table"): header on gray-50, xs semibold quaternary; rows sm tertiary ---------- */
.nd-app[data-theme~='untitled'] .nd-tbl th { height: 44px; padding: 12px 24px; background: var(--uu-bg-secondary); border-bottom: 1px solid var(--uu-border-secondary); font-size: 12px; font-weight: 600; color: var(--uu-text-quaternary); }
.nd-app[data-theme~='untitled'] .nd-tbl td { padding: 16px 24px; font-size: 14px; color: var(--uu-text-tertiary); border-color: var(--uu-border-secondary); }
.nd-app[data-theme~='untitled'] .nd-tbl td strong { color: var(--uu-text-primary); font-weight: 500; }
.nd-app[data-theme~='untitled'] .nd-tbl td small { color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-tbl tbody tr:hover { background: var(--uu-bg-secondary); }

/* ---------- featured icons (light, circle) and the work queue ---------- */
.nd-app[data-theme~='untitled'] :is(.nd-queue__icon, .nd-fin-icon) { width: 40px; height: 40px; border-radius: 999px; background: var(--uu-gray-100); color: var(--uu-gray-500); box-shadow: 0 0 0 6px var(--uu-gray-50); }
.nd-app[data-theme~='untitled'] :is(.nd-queue__icon--receivable, .nd-fin-icon.is-hot) { background: var(--uu-brand-100); color: var(--uu-brand-600); box-shadow: 0 0 0 6px var(--uu-brand-50); }
.nd-app[data-theme~='untitled'] .nd-queue__icon--margin { background: var(--uu-warning-50); color: var(--uu-warning-700); box-shadow: 0 0 0 6px var(--uu-warning-50); }
.nd-app[data-theme~='untitled'] .nd-queue__icon--customer { background: var(--uu-error-50); color: var(--uu-error-600); box-shadow: 0 0 0 6px var(--uu-error-50); }
.nd-app[data-theme~='untitled'] .nd-queue > li { border-color: var(--uu-border-secondary); }
.nd-app[data-theme~='untitled'] .nd-queue h3 { font-size: 14px; font-weight: 600; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-queue p { color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-queue__action { color: var(--uu-text-secondary); }
.nd-app[data-theme~='untitled'] .nd-queue__stake { font-size: 18px; font-weight: 600; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-callout { border: 1px solid var(--uu-border-primary); border-radius: 12px; background: var(--uu-bg-secondary); color: var(--uu-text-tertiary); box-shadow: var(--uu-shadow-xs); }
.nd-app[data-theme~='untitled'] .nd-callout--warn { border-color: var(--uu-brand-300); background: var(--uu-brand-25); color: var(--uu-brand-700); }
.nd-app[data-theme~='untitled'] .nd-meter { background: var(--uu-gray-200); } .nd-app[data-theme~='untitled'] .nd-meter > i { background: var(--uu-brand-600); }

/* ---------- charts (Untitled charts: brand line and area, gray-100 grid, xs tertiary ticks) ---------- */
.nd-app[data-theme~='untitled'] .nd-chart__axis { stroke: var(--uu-gray-100); }
.nd-app[data-theme~='untitled'] .nd-chart text, .nd-app[data-theme~='untitled'] .nd-fin-chart__note { fill: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-chart__bar { fill: var(--uu-brand-600); } .nd-app[data-theme~='untitled'] .nd-chart__bar--prior { fill: var(--uu-brand-200); }
.nd-app[data-theme~='untitled'] .nd-chart__bar--alt { fill: var(--uu-gray-500); }
.nd-app[data-theme~='untitled'] .nd-chart__line { stroke: var(--uu-brand-600); } .nd-app[data-theme~='untitled'] .nd-chart__dot { fill: var(--uu-brand-600); }
.nd-app[data-theme~='untitled'] .nd-legend__accent::before { background: var(--uu-brand-600); } .nd-app[data-theme~='untitled'] .nd-legend__prior::before { background: var(--uu-brand-200); }
.nd-app[data-theme~='untitled'] .nd-tone-ink { --tone: var(--uu-brand-600); } .nd-app[data-theme~='untitled'] .nd-tone-accent { --tone: var(--uu-brand-300); }
.nd-app[data-theme~='untitled'] .nd-tone-mid { --tone: var(--uu-gray-500); } .nd-app[data-theme~='untitled'] .nd-tone-warm { --tone: var(--uu-warning-500); }
.nd-app[data-theme~='untitled'] .nd-tone-light { --tone: var(--uu-gray-300); } .nd-app[data-theme~='untitled'] .nd-tone-track { --tone: var(--uu-gray-100); }
.nd-app[data-theme~='untitled'] .nd-fin-chart__stop0 { stop-color: var(--uu-brand-500); stop-opacity: .2; } .nd-app[data-theme~='untitled'] .nd-fin-chart__stop1 { stop-color: var(--uu-brand-500); }
.nd-app[data-theme~='untitled'] .nd-fin-chart__line { stroke: var(--uu-brand-600); stroke-width: 2; }
.nd-app[data-theme~='untitled'] .nd-fin-chart__halo { fill: var(--uu-brand-600); } .nd-app[data-theme~='untitled'] .nd-fin-chart__dot { stroke: var(--uu-brand-600); }
.nd-app[data-theme~='untitled'] :is(.nd-fin-chart__goal, .nd-fin-chart__pace) { stroke: var(--uu-gray-300); }
.nd-app[data-theme~='untitled'] .nd-fin-chart__tip { fill: var(--uu-gray-900); }
.nd-app[data-theme~='untitled'] .nd-fin-cols__real { fill: var(--uu-brand-600); } .nd-app[data-theme~='untitled'] .nd-fin-cols__real.is-now { fill: var(--uu-brand-300); }
.nd-app[data-theme~='untitled'] .nd-fin-cols__plan { fill: var(--uu-gray-100); }
.nd-app[data-theme~='untitled'] .nd-fin-ring__track, .nd-app[data-theme~='untitled'] .nd-fin-bar__track { stroke: var(--uu-gray-100); fill: var(--uu-gray-100); }
.nd-app[data-theme~='untitled'] .nd-fin-ring__track { fill: none; }
.nd-app[data-theme~='untitled'] .nd-fin-ring__big { fill: var(--uu-text-primary); font-weight: 600; letter-spacing: 0; } .nd-app[data-theme~='untitled'] .nd-fin-ring__small { fill: var(--uu-text-tertiary); }

/* ---------- the fintech blocks in Untitled clothing ---------- */
.nd-app[data-theme~='untitled'] .nd-fin-grid { gap: 24px; margin-bottom: 32px; }
.nd-app[data-theme~='untitled'] .nd-fin-card { padding: 20px 24px 24px; gap: 8px; }
.nd-app[data-theme~='untitled'] .nd-fin-card--list { padding: 0; }
.nd-app[data-theme~='untitled'] .nd-fin-card--list > header { padding: 20px 24px; margin: 0; border-bottom: 1px solid var(--uu-border-secondary); }
.nd-app[data-theme~='untitled'] .nd-fin-card--list > .nd-fin-lead { padding: 16px 24px 0; }
.nd-app[data-theme~='untitled'] .nd-fin-card > header h2 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: 0; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-fin-card > header a { color: var(--uu-text-brand); font-weight: 600; }
.nd-app[data-theme~='untitled'] .nd-fin-card > header span, .nd-app[data-theme~='untitled'] .nd-fin-source { color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-fin-label { font-size: 14px; font-weight: 500; color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-fin-number strong { font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.72px; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-fin-number span { font-size: 16px; font-weight: 500; color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-fin-chip.is-quiet { background: var(--uu-gray-50); color: var(--uu-gray-700); box-shadow: inset 0 0 0 1px var(--uu-gray-200); }
.nd-app[data-theme~='untitled'] .nd-fin-rows a, .nd-app[data-theme~='untitled'] .nd-fin-rows li > div { padding: 16px 24px; border-top: 1px solid var(--uu-border-secondary); }
.nd-app[data-theme~='untitled'] .nd-fin-rows li:first-child a, .nd-app[data-theme~='untitled'] .nd-fin-rows li:first-child > div { border-top: 0; }
.nd-app[data-theme~='untitled'] .nd-fin-rows a:hover { background: var(--uu-bg-secondary); }
.nd-app[data-theme~='untitled'] .nd-fin-rows__text b { font-size: 14px; font-weight: 500; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-fin-rows__text small { font-size: 14px; color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-fin-rows strong { font-size: 14px; font-weight: 600; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-fin-rows em.is-today { color: var(--uu-error-700); }
.nd-app[data-theme~='untitled'] .nd-fin-badge { width: 40px; height: 40px; background: var(--uu-brand-100); color: var(--uu-brand-700); box-shadow: 0 0 0 6px var(--uu-brand-50); }
.nd-app[data-theme~='untitled'] .nd-fin-legend span { color: var(--uu-text-secondary); } .nd-app[data-theme~='untitled'] .nd-fin-legend b { font-weight: 600; }
.nd-app[data-theme~='untitled'] .nd-fin-legend b.is-low, .nd-app[data-theme~='untitled'] .nd-fin-rows strong.is-low { color: var(--uu-error-700); }
/* The dark card: Untitled's brand section (bg brand-solid) for the one number that leads */
.nd-app[data-theme~='untitled'] .nd-fin-card--dark { background: var(--uu-gray-900); border-color: var(--uu-gray-900); color: #fff; box-shadow: var(--uu-shadow-lg); }
.nd-app[data-theme~='untitled'] .nd-fin-card--dark .nd-fin-number strong { color: #fff; }
.nd-app[data-theme~='untitled'] .nd-fin-card--dark :is(.nd-fin-label, .nd-fin-number span, header span, header a) { color: var(--uu-gray-400); }
.nd-app[data-theme~='untitled'] .nd-fin-card--dark > header h2 { color: #fff; }
.nd-app[data-theme~='untitled'] .nd-fin-card--dark .nd-fin-label.is-accent { color: var(--uu-brand-400); }
.nd-app[data-theme~='untitled'] .nd-fin-card--dark .nd-fin-bar__track { fill: var(--uu-gray-800); }
.nd-app[data-theme~='untitled'] .nd-fin-card--dark .nd-tone-light { --tone: var(--uu-gray-300); } .nd-app[data-theme~='untitled'] .nd-fin-card--dark .nd-tone-accent { --tone: var(--uu-brand-500); }
.nd-app[data-theme~='untitled'] .nd-fin-stages li.is-hot span { color: var(--uu-brand-400); }
.nd-app[data-theme~='untitled'] .nd-fin-ebitda__bar { fill: var(--uu-gray-300); } .nd-app[data-theme~='untitled'] .nd-fin-ebitda__bar.is-neg { fill: var(--uu-error-500); }
.nd-app[data-theme~='untitled'] .nd-fin-ebitda__plan { stroke: var(--uu-brand-400); } .nd-app[data-theme~='untitled'] .nd-fin-ebitda__zero { stroke: var(--uu-gray-700); }
.nd-app[data-theme~='untitled'] .nd-night { border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.nd-app[data-theme~='untitled'] .nd-block > header h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; }

/* ---------- order board (Untitled "kanban": gray-50 lanes, white cards, badges) ---------- */
.nd-app[data-theme~='untitled'] .nd-board { gap: 16px; }
.nd-app[data-theme~='untitled'] .nd-board__col { background: var(--uu-bg-secondary); border: 1px solid var(--uu-border-secondary); border-radius: 12px; padding: 12px; min-width: 232px; }
.nd-app[data-theme~='untitled'] .nd-board__col > header { padding: 4px 4px 12px; }
.nd-app[data-theme~='untitled'] .nd-board__col > header strong { font-size: 14px; font-weight: 600; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-board__col > header span { background: var(--uu-bg-primary); box-shadow: inset 0 0 0 1px var(--uu-border-secondary); color: var(--uu-text-secondary); font-weight: 500; }
.nd-app[data-theme~='untitled'] .nd-board__col > header small { color: var(--uu-text-tertiary); }
.nd-app[data-theme~='untitled'] .nd-board__card { padding: 12px 14px; gap: 4px; }
.nd-app[data-theme~='untitled'] a.nd-board__card:hover { transform: none; box-shadow: var(--uu-shadow-sm); border-color: var(--uu-border-primary); }
.nd-app[data-theme~='untitled'] .nd-board__card strong { font-weight: 600; color: var(--uu-text-primary); font-size: 14px; }
.nd-app[data-theme~='untitled'] .nd-board__card small { color: var(--uu-text-tertiary); font-size: 12px; }
.nd-app[data-theme~='untitled'] .nd-board__card b { font-weight: 600; color: var(--uu-text-primary); }
.nd-app[data-theme~='untitled'] .nd-board__card--warn { border-color: var(--uu-brand-300); box-shadow: var(--uu-shadow-xs), 0 0 0 3px var(--uu-brand-50); }
.nd-app[data-theme~='untitled'] .nd-board__card--late .nd-board__meta i:first-child { color: var(--uu-error-700); }
.nd-app[data-theme~='untitled'] .nd-board__meta i { color: var(--uu-text-quaternary); font-size: 12px; }
.nd-app[data-theme~='untitled'] .nd-steps [data-state='done'] .nd-steps__dot, .nd-app[data-theme~='untitled'] .nd-steps [data-state='done']::before { background: var(--uu-brand-600); border-color: var(--uu-brand-600); }
.nd-app[data-theme~='untitled'] .nd-steps [data-state='current'] .nd-steps__dot { background: #fff; border-color: var(--uu-brand-600); box-shadow: var(--uu-ring-focus); }

/* ---------- phones: Untitled header with the floating tab bar from the clear theme ---------- */
@media (max-width: 860px) {
  .nd-app[data-theme~='untitled'] .nd-mobilebar { background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--uu-border-secondary); }
  .nd-app[data-theme~='untitled'] .nd-content { padding: 20px 16px 32px; }
  .nd-app[data-theme~='untitled'] .nd-page-head h1, .nd-app[data-theme~='untitled'] .nd-hello h1 { font-size: 24px; line-height: 32px; }
  .nd-app[data-theme~='untitled'] .nd-fin-number strong { font-size: 30px; line-height: 38px; }
  .nd-app[data-theme~='untitled'] .nd-fin-grid { gap: 16px; }
  .nd-app[data-theme~='untitled'] :is(.nd-fin-card, .nd-kpi, .nd-kpi-tile) { padding: 16px; }
  .nd-app[data-theme~='untitled'] .nd-fin-card--list { padding: 0; }
  .nd-app[data-theme~='untitled'] .nd-fin-card--list > header, .nd-app[data-theme~='untitled'] .nd-fin-rows a, .nd-app[data-theme~='untitled'] .nd-fin-rows li > div { padding-left: 16px; padding-right: 16px; }
  .nd-app[data-theme~='untitled'] .nd-fin-act { box-shadow: none; background: transparent; padding: 0; }
  .nd-app[data-theme~='untitled'] .nd-fin-act span { border-radius: 999px; background: var(--uu-brand-50); color: var(--uu-brand-600); box-shadow: inset 0 0 0 1px var(--uu-brand-200); }
  .nd-app[data-theme~='untitled'] .nd-fin-act.is-main { background: transparent; color: var(--uu-text-secondary); box-shadow: none; }
  .nd-app[data-theme~='untitled'] .nd-fin-act.is-main span { background: var(--uu-brand-600); color: #fff; box-shadow: var(--uu-shadow-skeuomorphic); }
  .nd-app[data-theme~='untitled'] .nd-fin-act svg { color: currentColor; }
  .nd-app[data-theme~='untitled'] .nd-tabbar { background: rgba(255, 255, 255, .86); box-shadow: var(--uu-shadow-lg), 0 0 0 1px var(--uu-border-secondary); }
  .nd-app[data-theme~='untitled'] .nd-tabbar a[aria-current='page'] { color: var(--uu-brand-700); background: var(--uu-brand-50); }
  .nd-app[data-theme~='untitled'] .nd-side { background: #fff; }
  .nd-app[data-theme~='untitled'] .nd-side__sheet-head { font-size: 24px; font-weight: 600; letter-spacing: 0; }
}
