/* Numerica brand kit v6: tokens.css + fonts.css + ui.css in one file.
   Generated by shared-brand/tools/make-kit.py. Do not edit. */

/* Generated by shared-brand/tools/make-kit.py from tokens.json. Do not edit. */
:root {
  --nb-blue-50: #e9f2fc;
  --nb-blue-100: #c7ddf7;
  --nb-blue-200: #a2c7f1;
  --nb-blue-300: #79b0ec;
  --nb-blue-400: #4d9ce8;
  --nb-blue-500: #1E88E5;
  --nb-blue-600: #1565C0;
  --nb-blue-700: #114f9c;
  --nb-blue-800: #0d3a75;
  --nb-blue-900: #082751;
  --nb-red-50: #fdeceb;
  --nb-red-100: #f9c9c7;
  --nb-red-200: #f2a19d;
  --nb-red-300: #ec726c;
  --nb-red-400: #e85049;
  --nb-red-500: #E53935;
  --nb-red-600: #C62828;
  --nb-red-700: #a11f1f;
  --nb-red-800: #7c1717;
  --nb-red-900: #560f0f;
  --nb-grey-50: #f9fafb;
  --nb-grey-100: #f3f4f6;
  --nb-grey-200: #e5e7eb;
  --nb-grey-300: #d1d5db;
  --nb-grey-400: #9ca3af;
  --nb-grey-500: #6b7280;
  --nb-grey-600: #4b5563;
  --nb-grey-700: #374151;
  --nb-grey-800: #1f2937;
  --nb-grey-900: #111827;
  --nb-green-100: #dcfce7;
  --nb-green-400: #4ade80;
  --nb-green-700: #15803d;
  --nb-amber-100: #fef3c7;
  --nb-amber-400: #fbbf24;
  --nb-amber-700: #b45309;
  --nb-white: #ffffff;
  --nb-shadow-colour: #1018280f;
  --nb-strip-1: #dc2626;
  --nb-strip-2: #2563eb;
  --nb-strip-3: #3b82f6;
  --nb-dark-bg: #111318;
  --nb-dark-surface: #1a1d23;
  --nb-dark-surface-2: #22262d;
  --nb-dark-line: #2e333b;
  --nb-dark-line-strong: #3d434d;
  --nb-dark-ink: #e8eaed;
  --nb-dark-ink-2: #c4c8ce;
  --nb-dark-muted: #9aa0a8;
  --nb-dark-accent-soft: #13304f;
  --nb-dark-good-soft: #12301f;
  --nb-dark-warn-soft: #3a2a0c;
  --nb-dark-bad-soft: #3d1717;
  --nb-font-ui: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nb-font-document: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --nb-font-display: "DM Serif Display", Georgia, serif;
  --nb-font-signature: "Dancing Script", cursive;
  --nb-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Generated by shared-brand/tools/make-kit.py from tokens.json. Do not edit. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/DMSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/DMSans-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/DMSans-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/DMSerifDisplay-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/DMSerifDisplay-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/DancingScript-Regular.ttf") format("truetype");
}

/* Numerica UI: the shared stylesheet for Numerica's internal tools.

   One look for every app's pages: a masthead with the app's icon and name and the logo, page
   headings, stat tiles, panels, tables, pagination, tabs, badges, buttons, forms and notes. The
   style guide at the root of the brand site shows each piece with its markup.

   Colours come only from tokens.css (var(--nb-...)); make-kit.py refuses a colour literal here.
   Element styles are wrapped in :where() so they weigh nothing: an app's own CSS always wins.
   Light by default. A page opts in to following the system's dark mode with
   <html data-theme="auto">.

   body.nb is a flex column (the footer stays at the bottom of a short page): a direct child of
   the body that centres itself with margin auto needs width: 100%. Nothing essential goes in the
   masthead's .nb-user: it is hidden on phones. The masthead is sticky and --nb-mast-h is its
   height: something that sticks below it uses top: var(--nb-mast-h), and in-page links already
   land clear of it. */

/* ---- Roles: what each colour is for ------------------------------------------------------- */

:where(:root) { color-scheme: light; }

:root {
  --nb-bg: var(--nb-grey-50);
  --nb-surface: var(--nb-white);
  --nb-surface-2: var(--nb-grey-50);
  --nb-line: var(--nb-grey-200);
  --nb-line-strong: var(--nb-grey-300);
  --nb-line-control: var(--nb-grey-500);   /* 4.8:1 on white: WCAG's 3:1 for a control's edge */
  --nb-ink: var(--nb-grey-900);
  --nb-ink-2: var(--nb-grey-700);
  --nb-muted: var(--nb-grey-500);
  --nb-accent: var(--nb-blue-600);
  --nb-accent-hover: var(--nb-blue-700);
  --nb-accent-soft: var(--nb-blue-50);
  --nb-accent-ink: var(--nb-white);
  --nb-focus: var(--nb-blue-500);
  --nb-good: var(--nb-green-700);
  --nb-good-soft: var(--nb-green-100);
  --nb-warn: var(--nb-amber-700);
  --nb-warn-soft: var(--nb-amber-100);
  --nb-bad: var(--nb-red-600);
  --nb-bad-soft: var(--nb-red-50);
  --nb-radius: 8px;
  --nb-radius-lg: 12px;
  --nb-shadow: 0 1px 2px var(--nb-shadow-colour);
  --nb-width: 1200px;
  /* The sticky masthead's parts, each height written once, and its whole height for anything that
     sticks below it: the strip, the brand row, the menu row (its line on top is inside it), and
     the masthead's own bottom line. */
  --nb-mast-strip: 4px;
  --nb-mast-row: 56px;
  --nb-mast-menu: 44px;
  --nb-mast-h: calc(var(--nb-mast-strip) + var(--nb-mast-row) + var(--nb-mast-menu) + 1px);
  /* The brand row's two images: the app's icon, and the Numerica logo after the rule. */
  --nb-mast-icon: 32px;
  --nb-mast-logo: 17px;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --nb-bg: var(--nb-dark-bg);
    --nb-surface: var(--nb-dark-surface);
    --nb-surface-2: var(--nb-dark-surface-2);
    --nb-line: var(--nb-dark-line);
    --nb-line-strong: var(--nb-dark-line-strong);
    --nb-line-control: var(--nb-grey-500);
    --nb-ink: var(--nb-dark-ink);
    --nb-ink-2: var(--nb-dark-ink-2);
    --nb-muted: var(--nb-dark-muted);
    --nb-accent: var(--nb-blue-400);
    --nb-accent-hover: var(--nb-blue-300);
    --nb-accent-soft: var(--nb-dark-accent-soft);
    --nb-accent-ink: var(--nb-grey-900);
    --nb-focus: var(--nb-blue-300);
    --nb-good: var(--nb-green-400);
    --nb-good-soft: var(--nb-dark-good-soft);
    --nb-warn: var(--nb-amber-400);
    --nb-warn-soft: var(--nb-dark-warn-soft);
    --nb-bad: var(--nb-red-300);
    --nb-bad-soft: var(--nb-dark-bad-soft);
    --nb-shadow: none;
  }
  /* A masthead that carries the white logo shows it in dark mode. One with only the colour logo,
     which is drawn for white, puts that on a white plate (taller by its padding, so the logo keeps
     its size). The app's icon is its own tile and needs neither. */
  :root[data-theme="auto"] .nb-brand:has(.nb-logo--dark) .nb-logo { display: none; }
  :root[data-theme="auto"] .nb-brand:has(.nb-logo--dark) .nb-logo.nb-logo--dark { display: block; }
  :root[data-theme="auto"] .nb-brand:not(:has(.nb-logo--dark)) .nb-logo {
    background: var(--nb-white);
    border-radius: 5px;
    padding: 3px 6px;
    height: calc(var(--nb-mast-logo) + 6px);
  }
}

/* ---- Base: the page and bare elements (zero specificity) ----------------------------------- */

.nb {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--nb-bg);
  color: var(--nb-ink);
  font: 14px/1.5 var(--nb-font-ui);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:where(.nb) *, :where(.nb) *::before, :where(.nb) *::after { box-sizing: border-box; }
:where(.nb) :where(a) { color: var(--nb-accent); text-decoration: none; }
:where(.nb) :where(a:hover) { text-decoration: underline; }
:where(.nb) :where(h1) { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -0.015em; margin: 0 0 4px; }
:where(.nb) :where(h2) { font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; margin: 28px 0 10px; }
:where(.nb) :where(h3) { font-size: 14px; line-height: 1.4; font-weight: 600; margin: 18px 0 6px; }
:where(.nb) :where(p) { margin: 0 0 12px; }
:where(.nb) :where(code, kbd, samp, pre) { font-family: var(--nb-font-mono); font-size: 12.5px; }
:where(.nb) :where(code) {
  background: var(--nb-surface-2); border: 1px solid var(--nb-line); border-radius: 4px; padding: 1px 4px;
}
:where(.nb) :where(pre) {
  background: var(--nb-surface-2); border: 1px solid var(--nb-line); border-radius: var(--nb-radius);
  padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px;
}
:where(.nb) :where(pre code) { background: none; border: 0; padding: 0; }
:where(.nb) :where(hr) { border: 0; border-top: 1px solid var(--nb-line); margin: 20px 0; }
:where(.nb) :where(:focus-visible) { outline: 2px solid var(--nb-focus); outline-offset: 2px; }

/* Form controls, bare or classed */
:where(.nb) :where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="file"], [type="range"], [type="color"], [type="hidden"]), select, textarea) {
  font: inherit;
  font-size: 13.5px;
  color: var(--nb-ink);
  background: var(--nb-surface);
  border: 1px solid var(--nb-line-control);
  border-radius: var(--nb-radius);
  padding: 6px 10px;
  min-height: 34px;
  max-width: 100%;
}
:where(.nb) :where(textarea) { min-height: 120px; line-height: 1.5; resize: vertical; width: 100%; }
:where(.nb) :where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="file"], [type="range"], [type="color"], [type="hidden"]), select, textarea):where(:focus) {
  outline: 2px solid var(--nb-focus); outline-offset: 0; border-color: var(--nb-focus);
}
:where(.nb) :where(input[type="checkbox"], input[type="radio"]) { accent-color: var(--nb-accent); width: 15px; height: 15px; }
:where(.nb) :where(button, input[type="submit"], input[type="button"]) { font: inherit; }

/* ---- Masthead ------------------------------------------------------------------------------ */
/* Two rows under the strip, as in the hub: the brand row (the app's icon and name, a rule, then
   the Numerica logo, small, all on one line; the user on the right), a line, then the app's menu on
   its own row. The icon is the app's own (apps/<app>/icon.svg), and decorative: the name beside it
   says the same. The white logo beside the colour one shows instead on a dark page
   (data-theme="auto"); a page that stays light leaves it out.
   <header class="nb-mast">
     <div class="nb-mast-bar">
       <a class="nb-brand" href="/"><img class="nb-app-icon" src=".../apps/<app>/icon.svg" alt="" width="32" height="32"><span class="nb-app">App Name</span><span class="nb-by"><img class="nb-logo" src=".../logo/numerica-full.svg" alt="Numerica" height="17"><img class="nb-logo nb-logo--dark" src=".../logo/numerica-full-white.svg" alt="Numerica" height="17"></span></a>
       <div class="nb-user"><span>someone@numerica.in</span></div>
     </div>
     <div class="nb-mast-nav"><nav class="nb-nav" aria-label="Main"><a href="/x" aria-current="page">X</a> ...</nav></div>
   </header>
   A page with no menu leaves out .nb-mast-nav, and --nb-mast-h follows. */

.nb-mast {
  position: sticky; top: 0; z-index: 50;
  background: var(--nb-surface);
  border-bottom: 1px solid var(--nb-line);
}
.nb-mast::before {
  content: ""; display: block; height: var(--nb-mast-strip);
  background: linear-gradient(to right, var(--nb-strip-1), var(--nb-strip-2), var(--nb-strip-3));
}
.nb-mast-bar, .nb-mast-nav {
  max-width: var(--nb-width); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center;
}
.nb-mast-bar { min-height: var(--nb-mast-row); gap: 20px; }
.nb-mast-nav { min-height: var(--nb-mast-menu); border-top: 1px solid var(--nb-line); }
.nb-brand { display: flex; align-items: center; gap: 10px; color: var(--nb-ink); min-width: 0; text-decoration: none; }
.nb-brand:hover { text-decoration: none; }
.nb-app-icon { display: block; flex: none; width: var(--nb-mast-icon); height: var(--nb-mast-icon); }
.nb-app { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nb-by { display: flex; align-items: center; flex: none; margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--nb-line); }
.nb-by img { display: block; height: var(--nb-mast-logo); width: auto; }
.nb-brand .nb-logo--dark { display: none; }
.nb-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nb-nav a {
  color: var(--nb-ink-2); font-size: 14px; font-weight: 500; white-space: nowrap;
  padding: 6px 10px; border-radius: var(--nb-radius); text-decoration: none;
}
.nb-nav a:hover { background: var(--nb-surface-2); color: var(--nb-ink); text-decoration: none; }
.nb-nav a[aria-current="page"] { color: var(--nb-accent); background: var(--nb-accent-soft); font-weight: 600; }
/* The menu scrolls sideways on a phone, which would clip a ring drawn outside the link. */
.nb-nav a:focus-visible { outline-offset: -2px; }
.nb-user {
  margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--nb-muted); font-size: 13px;
}
.nb-user > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  :root { --nb-mast-row: 52px; --nb-mast-menu: 40px; --nb-mast-icon: 28px; --nb-mast-logo: 15px; }
  .nb-mast-bar { padding: 0 16px; gap: 12px; }
  .nb-mast-nav { padding: 0 16px; }
  .nb-by { margin-left: 2px; padding-left: 10px; }
}
:root:has(.nb-mast):not(:has(.nb-mast-nav)) { --nb-mast-menu: 0px; }
/* An in-page link (#section) lands below the sticky masthead, not under it. Zero weight, so an
   app with something else sticky under the masthead can set its own. */
:where(:root:has(.nb-mast)) { scroll-padding-top: calc(var(--nb-mast-h) + 12px); }
@media (max-width: 520px) {
  .nb-user { display: none; }
}

/* A strip under the masthead for a state the whole page is in (shadow mode, a test copy) */
.nb-banner {
  background: var(--nb-warn-soft); color: var(--nb-warn);
  font-size: 13px; font-weight: 600; text-align: center; padding: 6px 16px;
}
.nb-banner--info { background: var(--nb-accent-soft); color: var(--nb-accent); }
.nb-banner--bad { background: var(--nb-bad-soft); color: var(--nb-bad); }

/* ---- Page ---------------------------------------------------------------------------------- */

.nb-main { width: 100%; max-width: var(--nb-width); margin: 0 auto; padding: 24px 20px 56px; flex: 1; }
.nb-main--narrow { max-width: 880px; }
@media (max-width: 760px) { .nb-main { padding: 18px 16px 40px; } }

.nb-page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  margin: 0 0 20px;
}
.nb-page-head h1 { margin: 0; }
.nb-sub { color: var(--nb-muted); font-size: 13.5px; margin: 4px 0 0; }
.nb-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.nb-section { margin: 32px 0 0; }
.nb-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  margin: 0 0 10px;
}
.nb-section-head h2 { margin: 0; }
.nb-section-head p { color: var(--nb-muted); font-size: 13px; margin: 0; }

.nb-foot { border-top: 1px solid var(--nb-line); background: var(--nb-surface); color: var(--nb-muted); font-size: 12.5px; }
.nb-foot > div { max-width: var(--nb-width); margin: 0 auto; padding: 14px 20px; }

/* ---- Stat tiles, panels, grids ------------------------------------------------------------- */

.nb-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 20px; }
.nb-stat {
  background: var(--nb-surface); border: 1px solid var(--nb-line); border-radius: var(--nb-radius-lg);
  padding: 14px 16px; box-shadow: var(--nb-shadow); min-width: 0;
}
.nb-stat-label { color: var(--nb-muted); font-size: 12.5px; font-weight: 500; }
.nb-stat-value {
  font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -0.02em; margin-top: 4px;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.nb-stat-note { color: var(--nb-muted); font-size: 12px; margin-top: 2px; }

.nb-panel {
  background: var(--nb-surface); border: 1px solid var(--nb-line); border-radius: var(--nb-radius-lg);
  padding: 16px 18px; box-shadow: var(--nb-shadow); margin: 0 0 16px; min-width: 0;
}
.nb-panel > :first-child { margin-top: 0; }
.nb-panel > :last-child { margin-bottom: 0; }
.nb-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 10px; }
.nb-panel-head > h2, .nb-panel-head > h3 { margin: 0; }
.nb-panel-head p { color: var(--nb-muted); font-size: 12.5px; margin: 0; }

.nb-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.nb-grid > .nb-panel { margin: 0; }

/* Key and value rows: <dl class="nb-dl"><div><dt>Key</dt><dd>Value</dd></div>...</dl> */
.nb-dl { margin: 0; }
.nb-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--nb-line); }
.nb-dl > div:first-child { border-top: 0; }
.nb-dl dt { color: var(--nb-muted); }
.nb-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---- Tables -------------------------------------------------------------------------------- */
/* <div class="nb-table-wrap"><table class="nb-table"><thead><tr><th>..</th><th class="num">..</th></tr></thead>
   <tbody>...</tbody></table></div>. The wrap scrolls sideways on a narrow screen. */

.nb-table-wrap {
  background: var(--nb-surface); border: 1px solid var(--nb-line); border-radius: var(--nb-radius-lg);
  box-shadow: var(--nb-shadow); overflow-x: auto; margin: 0 0 16px;
}
.nb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nb-table th {
  text-align: left; vertical-align: bottom; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nb-muted);
  background: var(--nb-surface-2); padding: 9px 14px; border-bottom: 1px solid var(--nb-line);
}
.nb-table td { padding: 10px 14px; border-bottom: 1px solid var(--nb-line); vertical-align: top; }
.nb-table tr:last-child > td { border-bottom: 0; }
.nb-table tr:hover > td { background: var(--nb-surface-2); }
.nb-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-table .nowrap { white-space: nowrap; }
.nb-table td.nb-empty { text-align: center; color: var(--nb-muted); padding: 28px 16px; }
.nb-table tfoot td { font-weight: 600; background: var(--nb-surface-2); border-top: 1px solid var(--nb-line); }
.nb-table--compact th { padding: 7px 10px; }
.nb-table--compact td { padding: 6px 10px; }
/* A table already inside a panel needs no second box */
.nb-panel .nb-table-wrap { box-shadow: none; margin: 0; }

/* ---- Pagination ---------------------------------------------------------------------------- */
/* <nav class="nb-pager" aria-label="Pages"><span class="nb-pager-info">51-100 of 312</span>
   <div class="nb-pager-links"><a href="?page=1" rel="prev">Previous</a><a href="?page=1">1</a>
   <a href="?page=2" aria-current="page">2</a><span class="nb-pager-gap">...</span>
   <a aria-disabled="true">Next</a></div></nav> */

.nb-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  margin: 12px 0 0; font-size: 13px; color: var(--nb-muted);
}
.nb-pager-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nb-pager-links a, .nb-pager-links span[aria-current] {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px;
  border: 1px solid var(--nb-line); border-radius: var(--nb-radius); background: var(--nb-surface);
  color: var(--nb-ink-2); font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums;
}
.nb-pager-links a:hover { border-color: var(--nb-line-strong); color: var(--nb-ink); text-decoration: none; }
.nb-pager-links a[aria-current="page"], .nb-pager-links span[aria-current="page"] {
  background: var(--nb-accent); border-color: var(--nb-accent); color: var(--nb-accent-ink);
}
.nb-pager-links a[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.nb-pager-gap { padding: 0 4px; }

/* ---- Tabs ---------------------------------------------------------------------------------- */
/* <nav class="nb-tabs"><a href="?tab=open" aria-current="page">Open <span class="nb-count">12</span></a>...</nav> */

.nb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--nb-line); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.nb-tabs a {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  color: var(--nb-muted); font-weight: 500; text-decoration: none;
}
.nb-tabs a:hover { color: var(--nb-ink); text-decoration: none; }
.nb-tabs a[aria-current="page"] { color: var(--nb-ink); border-bottom-color: var(--nb-accent); font-weight: 600; }
.nb-count {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; text-align: center;
  font-size: 11.5px; font-weight: 600; line-height: 18px; font-variant-numeric: tabular-nums;
  background: var(--nb-surface-2); border: 1px solid var(--nb-line); color: var(--nb-muted);
}

/* ---- Badges and status dots ---------------------------------------------------------------- */

.nb-badge {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; vertical-align: baseline;
  padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 500; line-height: 20px;
  background: var(--nb-surface-2); color: var(--nb-ink-2); border: 1px solid var(--nb-line);
}
.nb-badge--blue { background: var(--nb-accent-soft); color: var(--nb-accent); border-color: transparent; }
.nb-badge--good { background: var(--nb-good-soft); color: var(--nb-good); border-color: transparent; }
.nb-badge--warn { background: var(--nb-warn-soft); color: var(--nb-warn); border-color: transparent; }
.nb-badge--bad { background: var(--nb-bad-soft); color: var(--nb-bad); border-color: transparent; }

.nb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--nb-muted); }
.nb-dot--blue { background: var(--nb-accent); }
.nb-dot--good { background: var(--nb-good); }
.nb-dot--warn { background: var(--nb-warn); }
.nb-dot--bad { background: var(--nb-bad); }

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

.nb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 20px;
  padding: 6px 14px; border-radius: var(--nb-radius); cursor: pointer; text-decoration: none;
  background: var(--nb-surface); color: var(--nb-ink); border: 1px solid var(--nb-line-strong);
}
.nb-btn:hover { background: var(--nb-surface-2); text-decoration: none; }
.nb-btn--primary { background: var(--nb-accent); border-color: var(--nb-accent); color: var(--nb-accent-ink); }
.nb-btn--primary:hover { background: var(--nb-accent-hover); border-color: var(--nb-accent-hover); }
.nb-btn--danger { color: var(--nb-bad); border-color: var(--nb-bad); }
.nb-btn--danger:hover { background: var(--nb-bad-soft); }
.nb-btn--quiet { background: transparent; border-color: transparent; color: var(--nb-accent); padding-left: 6px; padding-right: 6px; }
.nb-btn--quiet:hover { background: var(--nb-accent-soft); }
.nb-btn--small { font-size: 12.5px; padding: 2px 10px; }
.nb-btn:disabled, .nb-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ---- Forms --------------------------------------------------------------------------------- */

.nb-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; min-width: 0; }
.nb-field > label, .nb-label { font-size: 12.5px; font-weight: 600; color: var(--nb-ink-2); }
.nb-hint { font-size: 12px; color: var(--nb-muted); margin: 0; }
.nb-check { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; cursor: pointer; }
.nb-check input { margin-top: 3px; flex: none; }
.nb-form-row { display: flex; align-items: flex-end; gap: 8px 12px; flex-wrap: wrap; margin: 10px 0; }

/* A row of filters above a table */
.nb-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 12px;
  background: var(--nb-surface); border: 1px solid var(--nb-line); border-radius: var(--nb-radius-lg);
}

/* ---- Notes --------------------------------------------------------------------------------- */

.nb-note {
  margin: 0 0 16px; padding: 10px 14px; font-size: 13.5px;
  background: var(--nb-surface); border: 1px solid var(--nb-line); border-left-width: 4px; border-radius: var(--nb-radius);
}
.nb-note--info { border-color: var(--nb-accent-soft); border-left-color: var(--nb-accent); background: var(--nb-accent-soft); }
.nb-note--good { border-color: var(--nb-good-soft); border-left-color: var(--nb-good); background: var(--nb-good-soft); }
.nb-note--warn { border-color: var(--nb-warn-soft); border-left-color: var(--nb-warn); background: var(--nb-warn-soft); }
.nb-note--bad { border-color: var(--nb-bad-soft); border-left-color: var(--nb-bad); background: var(--nb-bad-soft); }

/* ---- Small helpers ------------------------------------------------------------------------- */

.nb-muted { color: var(--nb-muted); }
.nb-good { color: var(--nb-good); }
.nb-warn { color: var(--nb-warn); }
.nb-bad { color: var(--nb-bad); }
.nb-num { text-align: right; font-variant-numeric: tabular-nums; }
.nb-mono { font-family: var(--nb-font-mono); }
.nb-nowrap { white-space: nowrap; }
.nb-scroll-x { overflow-x: auto; }
.nb-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
