/* The Pipelines editor's node panel (NodeConfigPanel): its forms, the
 * embedded forecast panel and the Runs view. Flutter logical px, drawn at
 * the shell's 90%. Text without an explicit height takes the line of
 * bodyMedium (20/14) unless it says otherwise, as Flutter merges every
 * TextStyle into DefaultTextStyle: bodySmall is 16/12 and labelSmall 16/11.
 * w600 is weight 400 plus a hairline stroke, as in editor.css.
 * Prefix ncf- (editor.css owns wfe-). */

:root { --ncf-tint-04: rgba(0, 0, 0, .04); --ncf-tint-08: rgba(0, 0, 0, .08); --ncf-tint-12: rgba(0, 0, 0, .12);
  --ncf-tint-15: rgba(0, 0, 0, .15); --ncf-tint-30: rgba(0, 0, 0, .30); --ncf-tint-40: rgba(0, 0, 0, .40);
  --ncf-tint-06: rgba(0, 0, 0, .06); --ncf-white-03: rgba(255, 255, 255, .03); --ncf-white-08: rgba(255, 255, 255, .08);
  --ncf-input-fill: var(--surface-light); --ncf-code-bg: #18181B;
  /* Flutter web has no monospace face: "monospace" falls back to Roboto. */
  --ncf-mono: Roboto, system-ui, sans-serif; }
:root[data-theme="dark"] { --ncf-tint-04: rgba(255, 255, 255, .04); --ncf-tint-08: rgba(255, 255, 255, .08);
  --ncf-tint-12: rgba(255, 255, 255, .12); --ncf-tint-15: rgba(255, 255, 255, .15); --ncf-tint-30: rgba(255, 255, 255, .30);
  --ncf-tint-40: rgba(255, 255, 255, .40); --ncf-tint-06: rgba(255, 255, 255, .06); --ncf-input-fill: var(--surface); }

.ncf-form { margin-top: 16px; }
.wfe-panel-body { letter-spacing: .25px; line-height: 1.43; }
.wfe-panel-body > .ncf-form:first-child { margin-top: 0; }
.ncf-form p, .wfe-panel-body p { margin: 0; }
:where(.ncf-form, .ncf-runs-body) button { font: inherit; letter-spacing: inherit; }

/* Text styles */
.ncf-sec { font-size: 10px; line-height: 14.5px; font-weight: 400; -webkit-text-stroke: .26px currentColor; letter-spacing: .5px; color: var(--text-2); }
.ncf-lbl { display: block; font-size: 12px; line-height: 16px; color: var(--text-2); min-height: 16px; }
.ncf-lbl.is-primary { color: var(--text); }
.ncf-lbl.is-sub { -webkit-text-stroke: 0; }
.ncf-lbl.is-10 { font-size: 10px; min-height: 12px; }
.ncf-flabel { font-size: 12px; line-height: 16px; font-weight: 400; -webkit-text-stroke: .3px currentColor; letter-spacing: .5px; color: var(--muted); }
.ncf-flabel.is-strong { color: var(--text-2); }
.ncf-help { font-size: 11px; line-height: 1.35; color: var(--muted); }
.ncf-help.is-plain { line-height: 1.43; }
.ncf-help.is-12 { font-size: 12px; line-height: 1.43; }
.ncf-help.is-14 { line-height: 1.4; margin-top: 4px; }
.ncf-help.is-italic { font-style: italic; line-height: 1.43; }
.ncf-help.is-note { font-size: 10px; font-style: italic; line-height: 1.3; margin-top: 4px; }
.ncf-help.is-tip { font-size: 10px; font-style: italic; line-height: 1.3; }
.ncf-help.is-warn { color: var(--warning); }
.ncf-under { padding: 4px 0; }
.ncf-desc { margin-top: 4px !important; font-size: 10.5px; line-height: 1.35; color: var(--muted); }
.ncf-err { font-size: 11px; line-height: 1.3; color: var(--error); }
.ncf-err:empty { display: none; }
.ncf-err:not(:empty) { margin-top: 4px; }
.ncf-gfield + .ncf-gfield { margin-top: 12px; }
.ncf-gfield:last-child { margin-bottom: 12px; }

/* Inputs: the theme's filled outline (radius 8), 14 px in the panel's own fields */
.ncf-in, .ncf-tf, .ncf-lname, .ncf-lcsv, .ncf-mini, .ncf-dd select, .ncf-date {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-light);
  color: var(--text); font: inherit; outline: none;
}
.ncf-in { height: 48.3px; padding: 0 12px; font-size: 14px; }
.ncf-in.is-12 { font-size: 12px; }
.ncf-in.is-budget { height: 44px; padding: 0 12px; }
.ncf-in:focus, .ncf-dd select:focus { border: 2px solid var(--primary); padding: 0 11px; }
.ncf-tf { height: 48px; padding: 0 16px; font-size: 16px; background: var(--ncf-input-fill); }
.ncf-tf.is-generic { padding: 0 10px; height: 36.7px; }
.ncf-tf.is-dense { height: 36.7px; font-size: 13px; }
.ncf-tf.is-mono, .ncf-tf.is-sqlfield { font-family: var(--ncf-mono); font-size: 13px; }
.ncf-tf.is-12pad { padding: 0 12px; height: 42px; }
.ncf-tf.is-onbox { background: var(--card); height: 40px; font-size: 13px; padding: 0 12px; }
.ncf-tf.is-strength { width: 64px; height: 36px; padding: 0 8px; font-size: 13px; }
.ncf-tf:focus, .ncf-lname:focus, .ncf-lcsv:focus, .ncf-mini:focus { border-color: var(--primary); }
.ncf-tf::placeholder, .ncf-in::placeholder, .ncf-lname::placeholder, .ncf-lcsv::placeholder { font-style: italic; font-weight: 300; color: var(--muted); opacity: .75; }
.ncf-in.is-budget::placeholder { font-style: normal; font-weight: 400; opacity: 1; font-size: 13px; }
.ncf-numhead { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; min-height: 14px; }
.ncf-numhead .ncf-lbl { min-height: 0; }
.ncf-rng { margin-left: auto; font-size: 10px; line-height: 1.43; color: var(--muted); }
.ncf-rng.is-bad { color: var(--error); }
.ncf-suffix { font-size: 11px; color: var(--muted); }
.ncf-restore { margin-left: auto; font-size: 10px; color: var(--primary); }

/* Dropdown (DropdownButtonFormField, filled, 12/14 padding) */
.ncf-dd { position: relative; }
.ncf-dd select { appearance: none; -webkit-appearance: none; height: 48px; padding: 0 40px 0 12px; font-size: 14px; cursor: pointer; text-overflow: ellipsis; }
.ncf-dd select:focus { padding: 0 39px 0 11px; }
.ncf-dd .ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.ncf-dd select option { background: var(--card); color: var(--text); }

/* Switch (Material 3, themed: primary track at 45%) */
.ncf-sw { flex: none; position: relative; display: inline-block; width: 52px; height: 32px; border-radius: 16px; border: 2px solid var(--border);
  background: color-mix(in srgb, var(--muted) 25%, transparent); transition: background-color 120ms linear; cursor: pointer; }
:root[data-theme="dark"] .ncf-sw { background: var(--surface-light); }
.ncf-sw i { position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted);
  transition: left 160ms var(--ease-out-cubic), width 160ms, height 160ms, top 160ms; }
:root[data-theme="dark"] .ncf-sw i { background: var(--text-2); }
:root .ncf-sw[aria-checked="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 45%, transparent); }
:root .ncf-sw[aria-checked="true"] i { left: 22px; top: 2px; width: 24px; height: 24px; background: var(--primary); }
.ncf-sw.is-mini { margin: -4px 0 -4px auto; }
.ncf-sw.is-model { transform: scale(.7); margin: 0 -8px; }
.ncf-swrow { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.ncf-swrow .ncf-lbl { flex: 1; min-height: 0; }
.ncf-swbox { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-light); }
.ncf-swbox > span { flex: 1; font-size: 12px; line-height: 1.43; color: var(--text); }
.ncf-swbox.is-two > span { display: flex; flex-direction: column; gap: 4px; }
.ncf-swbox.is-two b { font-size: 13px; font-weight: 400; color: var(--text); }
.ncf-swbox.is-two small { font-size: 11px; color: var(--muted); }

/* Segmented controls (version, decision level): white 8% on the selected half */
.ncf-seg { display: flex; padding: 3px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-light); }
.ncf-seg button { flex: 1; padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.43; color: var(--text-2); }
.ncf-seg.is-13 button { font-size: 13px; padding: 8px 12px; }
.ncf-seg button.is-on { background: var(--ncf-white-08); color: var(--text); -webkit-text-stroke: .3px currentColor; }
.ncf-lbl.is-12 { -webkit-text-stroke: 0; }

/* Chips */
.ncf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ncf-chips.is-4 { gap: 4px; }
.ncf-chips.is-8 { gap: 8px; }
.ncf-chips.is-pi { gap: 4px 6px; }
.ncf-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-light);
  font-size: 12px; line-height: 1.43; color: var(--text); }
.ncf-fchip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ncf-colchip, .ncf-gb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface-light);
  font: 11px/1.43 var(--ncf-mono); color: var(--text); }
.ncf-gb { color: var(--text-2); }
.ncf-gb.is-on { color: var(--text); background: color-mix(in srgb, var(--primary) 12%, transparent); border-color: color-mix(in srgb, var(--primary) 50%, transparent); -webkit-text-stroke: .25px currentColor; }
.ncf-gb i { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); color: #fff; font: 9px/1 Roboto, sans-serif; font-style: normal; -webkit-text-stroke: .3px #fff; }
.ncf-tpl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-light);
  font-size: 11px; line-height: 1.43; color: var(--text); }
.ncf-tpl .ic { color: var(--text-2); }
.ncf-rchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface-light);
  font-size: 12px; line-height: 1.43; color: var(--text-2); }
.ncf-rchip .ic { color: var(--muted); }
.ncf-rchip.is-on { background: var(--text); border-color: var(--text); color: var(--card); -webkit-text-stroke: .3px currentColor; }
.ncf-rchip.is-on .ic { color: var(--card); }
.ncf-fc-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 15px; letter-spacing: .1px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  font-size: 11px; color: var(--text-2); }
.ncf-fc-chip.is-on { background: var(--secondary); color: var(--text); border-color: var(--secondary); }
.ncf-plabel { margin-bottom: 6px; font-size: 12px; line-height: 1.43; -webkit-text-stroke: .3px currentColor; color: var(--text-2); }
.ncf-lvchip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-light);
  font-size: 11px; color: var(--text-2); }
.ncf-lvchip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; -webkit-text-stroke: .3px currentColor; }
.ncf-preset { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-light); font-size: 13px; line-height: 1.43; color: var(--text-2); }
.ncf-preset.is-on { border: 2px solid var(--primary); padding: 7px 13px; background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); -webkit-text-stroke: .3px currentColor; }
.ncf-pi { padding: 4px 10px; border-radius: 12px; border: 1px solid var(--border); font-size: 11px; line-height: 1.43; color: var(--muted); }
.ncf-pi.is-on { background: var(--ncf-tint-15); border-color: var(--ncf-tint-40); color: var(--text); -webkit-text-stroke: .25px currentColor; }
.ncf-schema { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface-light); font-size: 11px; line-height: 1.43; color: var(--text-2); }

/* Boxes */
.ncf-box { padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-light); font-size: 12px; line-height: 1.43; color: var(--muted); }
.ncf-box.is-11 { font-size: 11px; line-height: 1.4; }
.ncf-box.is-row { display: flex; align-items: center; gap: 8px; }
.ncf-box.is-row .ic { flex: none; color: var(--muted); }
.ncf-box.is-tight { padding: 10px; font-size: 11px; line-height: 1.35; }
.ncf-box.is-12 { color: var(--text-2); }
.ncf-box.is-12 .ic { color: var(--text-2); }
.ncf-box.is-col { display: flex; flex-direction: column; }
.ncf-box-12 { font-size: 12px; color: var(--text-2); }
.ncf-box-main { font-size: 12px; line-height: 1.4; color: var(--text); }
.ncf-warnbox { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  background: color-mix(in srgb, var(--warning) 8%, transparent); font-size: 11px; line-height: 1.4; color: var(--text); }
.ncf-warnbox .ic { flex: none; color: var(--warning); }
.ncf-warnnote { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 8px; background: color-mix(in srgb, var(--warning) 10%, transparent); font-size: 12px; line-height: 1.43; color: var(--warning); }
.ncf-warnnote .ic { flex: none; }
.ncf-tintbox { padding: 12px; border-radius: 8px; background: var(--ncf-tint-04); font-size: 11px; line-height: 1.43; color: var(--text-2); }
.ncf-soon { display: flex; flex-direction: column; align-items: center; padding: 16px; border-radius: 8px; text-align: center;
  background: rgba(156, 39, 176, .1); border: 1px solid rgba(156, 39, 176, .2); color: rgba(156, 39, 176, .7); }
.ncf-soon b { margin-top: 12px; font-size: 14px; font-weight: 400; -webkit-text-stroke: .35px currentColor; color: #9C27B0; }
.ncf-soon p { margin-top: 8px !important; font-size: 12px; line-height: 1.4; color: var(--text-2); }
.ncf-future { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--border) 50%, transparent); opacity: .5; pointer-events: none; }
.ncf-future .ic { color: var(--muted); }
.ncf-future span { flex: 1; font-size: 13px; color: var(--text-2); }
.ncf-future em { padding: 3px 8px; border-radius: 10px; background: var(--ncf-tint-06); font-style: normal; font-size: 10px; -webkit-text-stroke: .25px currentColor; color: var(--muted); }
.ncf-info { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: rgba(var(--tint-rgb), .03); font-size: 12px; line-height: 1.4; color: var(--muted); }
.ncf-info .ic { flex: none; color: color-mix(in srgb, var(--muted) 50%, transparent); }
.ncf-divider { height: 1px; background: var(--border); }

/* Lists with dividers (Sync Data sources, reconcile levels) */
.ncf-list { border-radius: 8px; border: 1px solid var(--border); background: var(--surface-light); overflow: hidden; }
.ncf-check { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; }
.ncf-check + .ncf-check, .ncf-lvcheck + .ncf-lvcheck { border-top: 1px solid var(--border); }
.ncf-lvcheck + .ncf-lvcheck { border-top-color: color-mix(in srgb, var(--border) 40%, transparent); }
.ncf-check b { flex: 1; font-size: 12px; font-weight: 400; line-height: 1.43; color: var(--text); }
.ncf-check code { font: 10px/1.43 var(--ncf-mono); color: var(--muted); }
.ncf-cb { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 2px; border: 1.5px solid var(--muted); color: #fff; }
.ncf-cb.is-on { background: var(--primary); border-color: var(--primary); }
.ncf-lvcheck { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; font-size: 12px; line-height: 1.43; color: var(--text-2); }
.ncf-lvcheck .ic { color: var(--muted); }
.ncf-lvcheck.is-on { color: var(--text); -webkit-text-stroke: .3px currentColor; }
.ncf-lvcheck.is-on .ic { color: var(--text); }
.ncf-rlabel { display: flex; flex-direction: column; gap: 4px; }
.ncf-rlabel b { font-size: 12px; line-height: 16px; font-weight: 400; -webkit-text-stroke: .3px currentColor; color: var(--text-2); }
.ncf-rlabel small { font-size: 11px; line-height: 1.4; color: var(--muted); white-space: pre-line; }

/* Workflow Artifact's list */
.ncf-arts { max-height: 280px; overflow: auto; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-light); }
.ncf-art { --c: var(--text-2); display: flex; align-items: center; gap: 10px; padding: 10px; cursor: pointer; }
.ncf-art + .ncf-art { border-top: 1px solid var(--border); }
.ncf-art.is-on { background: color-mix(in srgb, var(--c) 8%, transparent); }
.ncf-art > .ic { color: var(--c); }
.ncf-art-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ncf-art-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ncf-art-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ncf-art-title b { font-size: 12px; font-weight: 400; line-height: 1.43; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncf-art code { font: 10px/1.43 var(--ncf-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncf-kind { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-light);
  font-size: 9px; line-height: 1.43; -webkit-text-stroke: .25px currentColor; color: var(--text-2); }

/* Control Tower */
.ncf-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; padding: 14px 0; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: 14px; line-height: 20px; letter-spacing: .1px; text-decoration: none; }
.ncf-primary[disabled] { background: color-mix(in srgb, var(--text) 12%, transparent); color: color-mix(in srgb, var(--text) 38%, transparent); cursor: default; }
.ncf-idrow { display: flex; align-items: center; margin-top: 4px; }
.ncf-idrow span { width: 70px; font-size: 11px; color: var(--text-2); }
.ncf-idrow code { flex: 1; min-width: 0; font: 11px/1.43 var(--ncf-mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncf-idrow button { display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); }

/* The dark code field (#18181B in both themes, a 38 px gutter). The box
 * scrolls as one: the textarea's own text is transparent over .ncf-hl,
 * which draws it (coloured with a language). Both sit in one grid cell with
 * the same metrics, so they lay out alike and the caret lands on the
 * letters. Code (is-lang) does not wrap, so each number is one line; the
 * gutter stays put while the box scrolls sideways. Prose fields wrap. */
.ncf-code { --ncf-code-font: 13px/20px var(--ncf-mono); display: flex; align-items: flex-start; border-radius: 8px; border: 1px solid var(--border);
  background: var(--ncf-code-bg); overflow: auto; overscroll-behavior: contain; }
.ncf-code.is-lang { --ncf-code-font: 12px/20px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.ncf-gutter { flex: none; position: sticky; left: 0; z-index: 1; width: 38px; min-height: 100%; padding: 12px 0; display: flex; flex-direction: column; background: var(--ncf-code-bg); }
.ncf-gutter span { display: block; height: 20px; flex: none; text-align: center; font: 11px/20px var(--ncf-mono); color: #52525B; }
.ncf-code-box { flex: 1; min-width: 0; min-height: 100%; display: grid; }
.ncf-code.is-lang .ncf-code-box { flex: 1 0 auto; }
.ncf-hl, .ncf-code textarea { grid-area: 1 / 1; margin: 0; padding: 12px 12px 12px 4px; border: 0; font: var(--ncf-code-font);
  white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.ncf-code.is-lang :is(.ncf-hl, textarea) { white-space: pre; overflow-wrap: normal; }
.ncf-hl { color: #F4F4F5; pointer-events: none; }
.ncf-code textarea { resize: none; outline: none; overflow: hidden; background: transparent; color: transparent; caret-color: #F4F4F5; }
.ncf-code textarea::placeholder { color: #71717A; }
.ncf-code textarea::selection { background: rgba(167, 139, 250, .3); }
/* Prism's tokens: colour only, so every glyph keeps its width. */
.ncf-hl .token.comment { color: #71717A; }
.ncf-hl .token.keyword, .ncf-hl .token.boolean { color: #C4B5FD; }
.ncf-hl .token.string { color: #86EFAC; }
.ncf-hl .token.number { color: #FDBA74; }
.ncf-hl .token.builtin, .ncf-hl .token.function, .ncf-hl .token.class-name, .ncf-hl .token.decorator { color: #7DD3FC; }
.ncf-hl .token.variable, .ncf-hl .token.identifier { color: #F9A8D4; }
.ncf-hl .token.operator, .ncf-hl .token.punctuation { color: #A1A1AA; }

/* Build Hierarchy's tree */
.ncf-levels { border-radius: 8px; border: 1px solid var(--border); background: var(--surface-light); }
.ncf-level { display: flex; align-items: flex-start; gap: 8px; padding: 10px 10px 10px 10px; }
.ncf-level + .ncf-level { border-top: 1px solid var(--border); }
.ncf-tag { --c: var(--secondary); flex: none; margin-top: 4px; padding: 2px 6px; border-radius: 4px; font-size: 9px; line-height: 1.43; -webkit-text-stroke: .25px currentColor;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.ncf-tag.is-root { --c: var(--primary); }
.ncf-tag.is-bottom { --c: #10B981; }
.ncf-tag.is-side { --c: #F59E0B; }
.ncf-level-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ncf-lname { height: 22.2px; padding: 0 8px; font-size: 12px; -webkit-text-stroke: .3px currentColor; background: var(--ncf-input-fill); }
.ncf-lname[disabled] { color: var(--text); border-color: color-mix(in srgb, var(--muted) 80%, transparent); }
.ncf-lcsv { height: 28px; padding: 0 8px; font: 11px var(--ncf-mono); color: var(--text-2); background: var(--ncf-input-fill); }
.ncf-tnote { font-size: 10px; line-height: 1.43; color: var(--muted); padding-left: 2px; }
.ncf-tnote.is-foot { display: block; margin-top: 6px; }
/* Unpicked columns stay quiet: the picked ones carry the level. */
.ncf-gb:not(.is-on) { background: transparent; border-style: dashed; border-color: color-mix(in srgb, var(--muted) 45%, transparent); color: var(--muted); }
.ncf-gb:not(.is-on):hover { color: var(--text-2); border-style: solid; }
.ncf-lnote { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1.4; color: var(--warning); }
.ncf-lnote .ic { flex: none; }
.ncf-uid { font: 10px/1.43 var(--ncf-mono); -webkit-text-stroke: .25px currentColor; color: var(--primary); margin-top: -2px; }
.ncf-ldel { flex: none; display: grid; place-items: center; width: 28px; height: 28px; color: var(--error); }
.ncf-tbtn { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 8px; border-radius: 20px; font-size: 14px; line-height: 20px; letter-spacing: .1px; color: var(--primary); }
.ncf-tbtn.is-muted { margin-top: 0; color: var(--muted); }
.ncf-tbtn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

/* Dates */
.ncf-date { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; margin-top: 8px; padding: 0 12px; cursor: pointer; }
.ncf-date span { flex: 1; font-size: 14px; color: var(--muted); }
.ncf-date span.is-set { color: var(--text); }
.ncf-date .ic { color: var(--muted); }
.ncf-date input, .ncf-cut-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* Sliders (Material slider: 4 px track, 20 px thumb, primary) */
.ncf-slider { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.ncf-slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--primary) var(--p), color-mix(in srgb, var(--muted) 25%, transparent) var(--p)); }
:root[data-theme="dark"] .ncf-slider::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--primary) var(--p), var(--surface-light) var(--p)); }
.ncf-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--primary); border: 0; }
.ncf-slider::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--muted) 25%, transparent); }
.ncf-slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--primary); }
.ncf-slider::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--primary); }
.ncf-slider.is-service, .ncf-slider.is-power { height: 48px; }
.ncf-slider.is-service::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--primary) var(--p), var(--border) var(--p)); }
.ncf-slider.is-service::-webkit-slider-thumb, .ncf-slider.is-power::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5.5px; }
.ncf-slider.is-power::-webkit-slider-thumb { margin-top: -5px; }
:root[data-theme="dark"] .ncf-slider.is-service::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--primary) var(--p), var(--border) var(--p)); }
.ncf-slhead { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; line-height: 1.43; color: var(--text-2); }
.ncf-slhead b { font-size: 13px; font-weight: 400; -webkit-text-stroke: .3px currentColor; color: var(--text); }
.ncf-slrow { display: flex; align-items: center; gap: 0; }
.ncf-slrow .ncf-slider { flex: 1; height: 48px; }
/* A Slider with 9 divisions: 24 px of padding each side and a dot per stop. The track is drawn
   on the input itself over the thumb's travel (10 px in from each edge), so the dots land on the
   stops: a tile of (W - 20) / 9, shifted by half a tile, is calc(-6.25% + 11.25px). */
.ncf-slider.is-ticks { --ncf-inactive: color-mix(in srgb, var(--muted) 25%, transparent); margin: 0 14px; min-width: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--muted) 70%, transparent) 0 1px, transparent 1.5px) calc(-6.25% + 11.25px) 50% / calc((100% - 20px) / 9) 4px repeat-x,
    linear-gradient(to right, var(--primary) var(--p), var(--ncf-inactive) var(--p)) 10px 50% / calc(100% - 20px) 4px no-repeat; }
:root[data-theme="dark"] .ncf-slider.is-ticks, .ncf-slider.is-ticks.is-surface { --ncf-inactive: var(--surface-light); }
:root .ncf-slider.is-ticks::-webkit-slider-runnable-track { background: transparent; }
.ncf-slrow b { flex: none; width: 32px; text-align: center; font-size: 14px; font-weight: 400; -webkit-text-stroke: .35px currentColor; color: var(--text); }
.ncf-slrow.is-tau b { width: 44px; margin-left: 8px; text-align: right; font-size: 13px; }

/* _buildToggleRow */
.ncf-trow { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--border) 40%, transparent); cursor: pointer; }
.ncf-trow > .ic { flex: none; color: var(--text-2); }
.ncf-trow.is-on { background: var(--ncf-tint-04); border-color: var(--border); }
.ncf-trow.is-on > .ic { color: var(--text); }
.ncf-trow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ncf-trow-text b { font-size: 12px; font-weight: 400; -webkit-text-stroke: .3px currentColor; line-height: 1.43; color: var(--text); }
.ncf-trow-text small { font-size: 10px; line-height: 1.43; color: var(--muted); }

/* The embedded forecast panel */
.ncf-mode { position: relative; display: flex; height: 32px; padding: 2px; border-radius: 8px; background: var(--seg-bg); }
.ncf-mode-thumb { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 6px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 1px 2px var(--shadow); transition: transform 250ms var(--ease-in-out); }
.ncf-mode.is-adv .ncf-mode-thumb { transform: translateX(100%); }
.ncf-mode button { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; line-height: 1.43; color: var(--muted); }
.ncf-mode button.is-on { color: var(--text); -webkit-text-stroke: .3px currentColor; }
.ncf-tabs { display: flex; gap: 6px; height: 36px; overflow-x: auto; scrollbar-width: none; }
.ncf-tabs button { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; line-height: 1.43; color: var(--text-2); }
.ncf-tabs button i { font-style: normal; font-size: 11px; -webkit-text-stroke: .25px currentColor; color: var(--muted); }
.ncf-tabs button.is-on { background: var(--card); border-color: var(--border); color: var(--text); -webkit-text-stroke: .3px currentColor; }
.ncf-tabs button.is-on i { color: var(--primary); }
.ncf-card { padding: 10px; border-radius: 8px; border: 1px solid var(--border); }
.ncf-card.is-eval, .ncf-card.is-cut { padding: 8px 10px; background: var(--surface-light); }
.ncf-card.is-eval.is-on, .ncf-card.is-cut.is-on { background: var(--ncf-tint-06); border-color: var(--ncf-tint-30); }
.ncf-card.is-levels.is-on { background: var(--ncf-tint-04); border-color: var(--ncf-tint-12); }
.ncf-card-head { display: flex; align-items: center; gap: 6px; min-height: 24px; font-size: 12px; line-height: 1.43; color: var(--text-2); }
.ncf-card-head > .ic { color: var(--muted); }
.ncf-card.is-on > .ncf-card-head, .ncf-tcard.is-on .ncf-card-head { color: var(--text); }
.ncf-card.is-on > .ncf-card-head > .ic, .ncf-tcard.is-on .ncf-card-head > .ic { color: var(--text); }
.ncf-mlabel { font-size: 12px; line-height: 1.43; color: var(--muted); }
.ncf-mini-row { display: flex; align-items: center; }
.ncf-mini-row .ncf-mlabel { flex: 1; }
.ncf-mini { width: 56px; height: 28px; padding: 0 6px; border-radius: 6px; text-align: center; font-size: 12px; -webkit-text-stroke: .3px currentColor; }
.ncf-toggles { display: flex; gap: 8px; align-items: stretch; }
.ncf-tcard { flex: 1; min-width: 0; padding: 10px; border-radius: 8px; border: 1px solid var(--border); }
.ncf-tcard.is-on { background: var(--ncf-tint-04); border-color: var(--ncf-tint-12); }
.ncf-tcard .ncf-help { margin-top: 14px; }
.ncf-cselect { position: relative; margin-left: auto; height: 28px; display: flex; align-items: center; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-light); }
.ncf-cselect select { appearance: none; -webkit-appearance: none; height: 100%; padding: 0 26px 0 8px; border: 0; background: none; outline: none; font-size: 11px; color: var(--text); cursor: pointer; }
.ncf-cselect select option { background: var(--card); }
.ncf-cselect .ic { position: absolute; right: 6px; color: var(--muted); pointer-events: none; }
.ncf-reset { margin-left: auto; padding: 0 8px; height: 24px; font-size: 10px; color: var(--muted); }
.ncf-power-head { display: flex; align-items: center; gap: 4px; width: 100%; text-align: left; }
.ncf-power-head .ncf-flabel { flex: 1; }
.ncf-power-head b { font-size: 12px; font-weight: 400; color: var(--text-2); }
.ncf-chev { display: grid; color: var(--muted); transition: transform 200ms; }
.ncf-chev.is-open { transform: rotate(180deg); }
.ncf-power-ends { display: flex; justify-content: space-between; padding: 0 4px; font-size: 10px; color: var(--muted); }
.ncf-power .ncf-help { margin-top: 6px; }
.ncf-cut-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 2px 0; text-align: left; }
.ncf-cut-head > .ic { color: var(--muted); }
.ncf-card.is-cut.is-on .ncf-cut-head > .ic, .ncf-card.is-cut.is-on .ncf-cut-title { color: var(--text); }
.ncf-cut-title { font-size: 12px; line-height: 1.43; color: var(--text-2); }
.ncf-cut-head em { flex: 1; font-size: 11px; color: var(--muted); }
.ncf-cut-x { display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); position: relative; z-index: 1; }
.ncf-cut-row { display: flex; gap: 8px; margin-top: 10px; }
.ncf-cut-field { position: relative; flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-light); cursor: pointer; }
.ncf-cut-field > .ic { color: var(--muted); }
.ncf-cut-field span:not(.ncf-cut-x) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ncf-cut-field small { font-size: 10px; color: var(--muted); }
.ncf-cut-field b { font-size: 12px; font-weight: 400; color: var(--muted); }
.ncf-cut-field b.is-set { color: var(--text); }
.ncf-mhead { display: flex; align-items: center; gap: 6px; }
.ncf-mcount { padding: 2px 7px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 20%, transparent); font-size: 10px; -webkit-text-stroke: .25px currentColor; color: var(--primary); }
.ncf-mgroup:not(.is-first) { margin-top: 12px; }
.ncf-mcat { display: flex; align-items: center; padding: 2px 0; margin-bottom: 4px; }
.ncf-mcat b { flex: 1; font-size: 11px; font-weight: 400; -webkit-text-stroke: .28px currentColor; letter-spacing: .8px; color: var(--muted); }
.ncf-mcat button { font-size: 11px; color: color-mix(in srgb, var(--muted) 80%, transparent); }
.ncf-mrow { display: flex; align-items: center; gap: 8px; height: 44px; margin-bottom: 2px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
.ncf-mrow.is-on { background: var(--ncf-tint-04); border-color: var(--ncf-tint-08); }
.ncf-mrow.is-max { cursor: default; }
.ncf-mnote { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 6px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.ncf-mname { flex: 1; min-width: 0; font-size: 13px; line-height: 1.43; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncf-mrow.is-on .ncf-mname { color: var(--text); }
.ncf-mrow.is-max .ncf-mname { color: color-mix(in srgb, var(--muted) 40%, transparent); }
.ncf-mdot { flex: none; width: 10px; height: 10px; margin-right: -2px; border-radius: 50%; background: var(--primary); }
.ncf-minfo { display: grid; color: color-mix(in srgb, var(--muted) 50%, transparent); }
.ncf-minfo.is-open { color: var(--primary); }
/* A model's parameters, under its row (Flutter's slide-in Parameters panel) */
.ncf-mparams { margin: 0 0 8px 26px; padding: 2px 8px 4px 12px; border-left: 1px solid var(--ncf-tint-12); }
.ncf-prow { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.ncf-plbl { flex: 1; min-width: 0; font-size: 12px; line-height: 16px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncf-prow .ncf-rng { margin-left: 0; }
.ncf-prow .ncf-cselect { margin-left: 0; }
.ncf-prow .ncf-sw.is-model { margin: -4px -8px; }
.ncf-mini.is-param { width: 72px; }
.ncf-mini.is-param.is-text { width: 120px; text-align: left; }
.ncf-mini:disabled, .ncf-prow select:disabled, .ncf-prow .ncf-sw[aria-disabled="true"] { opacity: .6; cursor: default; }
.ncf-mparams .ncf-err:not(:empty) { margin: 0 0 4px; }
.ncf-mpnote { padding: 6px 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.ncf-mpadv { display: flex; align-items: center; gap: 4px; width: 100%; padding: 6px 0 2px; text-align: left; font-size: 11px; color: var(--muted); }
.ncf-mpadv span:nth-child(2) { flex: 1; }
.ncf-mpadv em { font-style: normal; font-size: 10px; }
.ncf-fused { display: flex; align-items: center; }
.ncf-fused .ncf-field { flex: 1; min-width: 0; }
.ncf-times { margin: 0 4px 0 10px; font-size: 13px; color: var(--muted); }
.ncf-budget-head { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--text-2); }
.ncf-budget-head b { font-size: 14px; font-weight: 400; -webkit-text-stroke: .35px currentColor; color: var(--text); }
.ncf-budget { padding-top: 24px; }
.ncf-disclose { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 4px 0; font-size: 13px; color: var(--text-2); }
.ncf-soonbox { padding: 14px; border-radius: 8px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-light) 40%, transparent); }
.ncf-soonbox-head { display: flex; align-items: center; gap: 6px; color: var(--warning); }
.ncf-soonbox-head b { font-size: 12px; font-weight: 400; -webkit-text-stroke: .3px currentColor; }

/* ── The Runs view ── */
.ncf-runs-body { display: flex; flex-direction: column; }
.ncf-runs-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; text-align: center; color: var(--muted); }
.ncf-runs-empty b { margin-top: 12px; font-size: 13px; font-weight: 400; -webkit-text-stroke: .3px currentColor; line-height: 1.43; color: var(--text-2); }
.ncf-runs-empty small { margin-top: 6px; font-size: 11px; line-height: 1.4; }
.ncf-state { --c: var(--muted); display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 8px; background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c); font-size: 12px; line-height: 1.43; }
.ncf-state-err { margin-top: 8px !important; font-size: 12px; color: var(--error); }
.ncf-kv { padding: 12px; border-radius: 8px; background: var(--ncf-white-03); font-size: 12px; line-height: 1.43; }
.ncf-kv > div { display: flex; margin-bottom: 4px; }
.ncf-kv.is-test { padding: 10px; }
.ncf-kv.is-test > div { margin-bottom: 2px; }
.ncf-kv span { flex: none; color: var(--text-2); white-space: pre; }
.ncf-kv b { flex: 1; min-width: 0; font-weight: 400; color: var(--text); overflow-wrap: anywhere; }
.ncf-kv.is-gate b { -webkit-text-stroke: .3px currentColor; }
.ncf-kv em { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ncf-gate-prompt { margin-top: 12px !important; font-size: 12px; line-height: 1.4; color: var(--text-2); }
.ncf-gate-act { display: flex; gap: 8px; margin-top: 14px; }
.ncf-gbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font-size: 12px; -webkit-text-stroke: .3px currentColor;
  color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); }
.ncf-gbtn.is-primary { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.ncf-gbtn[disabled] { opacity: .6; }
.ncf-gate-done { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.ncf-gate-done.is-ok { color: var(--success); }
.ncf-gate-done b { font-weight: 400; -webkit-text-stroke: .3px currentColor; }
.ncf-gate-wait { margin-top: 10px !important; font-size: 12px; color: var(--muted); }
.ncf-test-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.ncf-test-head .ncf-sec { flex: 1; }
.ncf-test-head small { font-size: 11px; color: var(--muted); }
.ncf-test-head button { display: grid; padding: 2px; border-radius: 4px; color: var(--muted); }
.ncf-test-pill { --c: var(--success); display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.ncf-test-pill b { flex: 1; font-size: 12px; font-weight: 400; -webkit-text-stroke: .3px currentColor; }
.ncf-test-pill small { font-size: 11px; color: var(--text-2); }
.ncf-test-pill code { margin-left: 2px; padding: 2px 6px; border-radius: 4px; background: var(--surface-light); font: 10px Roboto, sans-serif; color: var(--muted); }
.ncf-test-err { margin: 8px 0 0; padding: 10px; border-radius: 6px; background: color-mix(in srgb, var(--error) 6%, transparent); color: var(--error);
  font: 12px/1.4 var(--ncf-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.ncf-logs { margin: 0; max-height: 160px; overflow: auto; padding: 8px; border-radius: 6px; background: rgba(0, 0, 0, .4); color: var(--text-2);
  font: 11px/1.4 var(--ncf-mono); white-space: pre-wrap; }
.ncf-ds-head { display: flex; align-items: center; }
.ncf-ds-head .ncf-sec { flex: 1; }
.ncf-ds-head small { font-size: 10px; color: var(--muted); }
.ncf-ds-head.is-file { margin-bottom: 6px; }
.ncf-ds-tabs { display: flex; gap: 6px; margin: 8px 0; }
.ncf-ds-tabs button { padding: 5px 10px; border-radius: 6px; border: 1px solid transparent; font-size: 11px; line-height: 1.43; color: var(--text-2); }
.ncf-ds-tabs button.is-on { background: var(--ncf-white-08); border-color: var(--border); color: var(--text); -webkit-text-stroke: .25px currentColor; }
:root:not([data-theme="dark"]) .ncf-ds-tabs button.is-on { background: rgba(255, 255, 255, .08); }
.ncf-ds-search { position: relative; display: flex; align-items: center; height: 32px; margin-bottom: 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-light); }
.ncf-ds-search:focus-within { border: 1.5px solid var(--primary); }
.ncf-ds-search > .ic { margin: 0 8px; color: var(--muted); }
.ncf-ds-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 12px; color: var(--text); }
.ncf-ds-search input::placeholder { color: var(--muted); }
.ncf-ds-search button { display: grid; width: 30px; place-items: center; color: var(--muted); }
.ncf-pager { display: flex; align-items: center; margin-bottom: 8px; }
.ncf-pager button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text-2); }
.ncf-pager button[disabled] { color: color-mix(in srgb, var(--muted) 30%, transparent); }
.ncf-pager-text { flex: 1; margin-left: 8px; font-size: 11px; color: var(--text-2); }
.ncf-pager-text em { font-style: normal; white-space: pre; }
.ncf-pager-spin { display: none; }
.htmx-request .ncf-pager-spin { display: inline-block; }
.htmx-request .ncf-pager-text em { display: none; }
.ncf-page-err { margin: 0 0 8px !important; font-size: 11px; color: var(--error); }
.ncf-page-err:empty { display: none; }
.ncf-ds-box { border-radius: 8px; border: 1px solid color-mix(in srgb, var(--border) 50%, transparent); background: var(--ncf-white-03); }
.ncf-ds-scroll { max-height: 480px; overflow: auto; scrollbar-width: thin; }
.ncf-ds-empty, .ncf-ds-none { padding: 16px; font-size: 12px; color: var(--muted); }
.ncf-ds-none { font-size: 11px; }
.ncf-table { border-collapse: collapse; font-size: 11px; color: var(--text); }
.ncf-table th { height: 32px; padding: 0 12px; text-align: left; white-space: nowrap; font-weight: 400; -webkit-text-stroke: .25px currentColor; border-bottom: 1px solid var(--border); }
.ncf-table td { height: 32px; padding: 0 12px; border-top: 1px solid var(--border); white-space: nowrap; }
.ncf-table th + th, .ncf-table td + td { padding-left: 12px; }
.ncf-table td span { display: block; width: 160px; overflow: hidden; text-overflow: ellipsis; }
.ncf-table.is-stats td { padding: 0 10px; }
.ncf-table.is-stats td.is-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.ncf-table.is-stats td.is-dtype { color: var(--muted); }
.ncf-headtable { overflow-x: auto; border-radius: 6px; border: 1px solid var(--border); background: var(--ncf-white-03); }
.ncf-table.is-mono { font-family: var(--ncf-mono); }
.ncf-table.is-mono th { height: 28px; padding: 0 10px; color: var(--text-2); }
.ncf-table.is-mono td { height: 28px; padding: 0 10px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.ncf-err.is-banner { margin: 0 0 12px; padding: 8px 10px; border-radius: 6px; background: color-mix(in srgb, var(--error) 8%, transparent); }

/* Letter spacing by the text style a widget merges into (M3): bodySmall .4,
   labelSmall .5, a TextField's bodyLarge .5; a dropdown's own style and the
   code field (inherit: false) have none. */
.ncf-lbl, .ncf-rlabel b, .ncf-flabel.is-strong { letter-spacing: .4px; }
.ncf-in, .ncf-tf, .ncf-lname, .ncf-lcsv, .ncf-mini { letter-spacing: .5px; }
.ncf-dd select, .ncf-cselect select, .ncf-code textarea, .ncf-hl, .ncf-gutter span { letter-spacing: 0; }

/* The run's estimate (_forecast_estimate.html): three figures, then where they come from */
.ncf-est { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-light); }
.ncf-est.is-ask { border-color: color-mix(in srgb, var(--warning) 40%, transparent); }
.ncf-est-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); }
.ncf-est-head .ic { color: var(--muted); }
.ncf-est-head b { font-weight: 500; }
.ncf-est-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.ncf-est-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ncf-est-stats small { font-size: 11px; color: var(--muted); }
.ncf-est-stats b { font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; }
.ncf-est-ask { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 11px; line-height: 1.4; color: var(--warning); }
.ncf-est-ask .ic { flex: none; margin-top: 1px; }
.ncf-est-last { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding-top: 8px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.ncf-est-last span:first-child { color: var(--text-2); }
