/* Native (D3) charts for the sandwich layout. Loaded by static/js/native-charts/core.js only in a
   native layout. Chart chrome (tooltip, legend, grid, ticks, bands) follows the Mebius chart kit: --ck-* tokens
   (tokens.css) and .ck-* classes (chart-kit.css), spec docs/CHART_STYLE.md. --ck-* uses keep an --nc-* fallback. */
:root,
html[data-theme="light"] {
  --nc-bg: transparent;
  --nc-surface: #fbf9f4;
  --nc-text: #4b594e;
  --nc-muted: #6c776e;
  --nc-grid: rgba(23, 32, 25, 0.085);
  --nc-axis: rgba(23, 32, 25, 0.18);
  --nc-signal: #1d4a3a;
  --nc-border: rgba(23, 32, 25, 0.16);
  --nc-tooltip-bg: #ffffff;
  --nc-tooltip-text: #172019;
  /* CVD-safe series (mirrors --chart-1..6 in editorial-atlas.css); 7-8 repeat 1-2, so pair with dashes or hatching. */
  --nc-1: #B86B00; --nc-2: #A8497F; --nc-3: #00704F; --nc-4: #5B3FA8;
  --nc-5: #2B7F96; --nc-6: #8C4A00; --nc-7: #B86B00; --nc-8: #A8497F;
  --nc-font-ui: var(--font-ui, "Manrope", "Segoe UI", system-ui, sans-serif);
  --nc-font-mono: var(--font-mono, "IBM Plex Mono", "SFMono-Regular", Consolas, monospace);
  --nc-font-num: var(--font-display, "Fraunces", Georgia, serif);
}
html[data-theme="dark"] {
  --nc-surface: #131c16;
  --nc-text: #b9c1b8;
  --nc-muted: #909e93;
  --nc-grid: rgba(244, 247, 242, 0.085);
  --nc-axis: rgba(244, 247, 242, 0.18);
  --nc-signal: #baf44c;
  --nc-border: rgba(223, 231, 224, 0.12);
  --nc-tooltip-bg: #0e120f;
  --nc-tooltip-text: #f4f7f2;
  --nc-1: #F0E442; --nc-2: #CC79A7; --nc-3: #7FB5FF; --nc-4: #009E73;
  --nc-5: #D55E00; --nc-6: #C7C7C7; --nc-7: #F0E442; --nc-8: #CC79A7;
}

/* Dash graphs: the Plotly gd stays mounted (events, data, sizing); only its visual is hidden. */
.nc-host { position: relative; }
.nc-host > .js-plotly-plot > .plot-container { visibility: hidden; pointer-events: none; }

.nc-root {
  position: absolute; inset: 0; overflow: hidden;
  color: var(--nc-text); background: var(--nc-bg);
  font: 500 12px/1.35 var(--nc-font-ui);
}
.nc-root--inline { position: relative; inset: auto; width: 100%; height: 100%; min-height: inherit; }
.nc-root svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nc-root .nc-num { font-family: var(--nc-font-num); font-variant-numeric: lining-nums tabular-nums; }

/* Mebius ticks: label-02-regular fg-soft, no tick marks or domain line; grid = surface-soft 1px dashed (dash set in JS) */
.nc-axis text { fill: var(--ck-fg-normal, var(--nc-muted)); font: 400 14px/1 var(--nc-font-ui); letter-spacing: 0; }
.nc-axis path, .nc-axis line { stroke: var(--ck-surface-soft, var(--nc-grid)); }
.nc-axis .domain { display: none; }
.nc-axis--grid .tick line { stroke: var(--ck-surface-soft, var(--nc-grid)); stroke-width: 1; }
.nc-axis--grid .tick line.nc-grid--zero { stroke-dasharray: none; }
.nc-axis__title { fill: var(--ck-fg-normal, var(--nc-muted)); font: 500 12px/1 var(--nc-font-ui); letter-spacing: 0; }

/* Tooltip shell is .ck-tip (chart-kit.css). Mebius net-worth motion: first show opacity 0->1 + scale .94->1 in 300ms
   outQuad; a column-snapped tip (is-live) glides between columns in 550ms outExpo. */
.nc-tip { max-width: min(360px, 92%); transform-origin: left center; }
.nc-tip.is-enter { animation: nc-tip-in 300ms var(--ck-ease-out-quad, ease-out) both; }
.nc-tip.is-live { transition: opacity 200ms, left 550ms var(--ck-ease-out-expo, ease-out), top 550ms var(--ck-ease-out-expo, ease-out); }
@keyframes nc-tip-in { from { opacity: 0; transform: scale(0.94); } }
.nc-tip__body { font: 400 14px/1.32 var(--nc-font-ui); color: var(--ck-fg-normal, var(--nc-text)); white-space: normal; }
.nc-tip__body b { font-weight: 600; color: var(--ck-fg-loud, var(--nc-text)); }
html[data-theme="dark"] .nc-tip__body { color: var(--ck-fg-disable, var(--nc-muted)); }
html[data-theme="dark"] .nc-tip__body b { color: var(--ck-fg-on-loud, #fff); }
.nc-tip .ck-tip__value { font-variant-numeric: tabular-nums lining-nums; }

/* Legend: chart-legend-dot (.ck-legend-dot) + typo-label-02-medium text-fg-normal, hover fg-loud; hidden = opacity-40 */
.nc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 500 14px/1 var(--nc-font-ui); letter-spacing: 0; }
.nc-legend--v { flex-direction: column; flex-wrap: nowrap; overflow-y: auto; }
.nc-legend__item {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px; border: 0; border-radius: 8px;
  background: none; color: var(--ck-fg-normal, var(--nc-text)); font: inherit; cursor: pointer; text-align: left;
  transition: color 200ms, opacity 200ms;
}
.nc-legend__item:hover { color: var(--ck-fg-loud, var(--nc-text)); }
.nc-legend__item:focus-visible, .nc-reset:focus-visible { outline: 2px solid color-mix(in srgb, var(--ck-accent-500, var(--nc-signal)) 40%, transparent); outline-offset: 0; }
.nc-legend__item.is-off { opacity: 0.4; }

.nc-zoombox { fill: var(--nc-grid); stroke: var(--nc-axis); stroke-dasharray: 3 3; }
.nc-zoombox[hidden] { display: none; }
.nc-reset {
  position: absolute; top: 6px; right: 6px; z-index: 4; padding: 3px 8px;
  border: 1px solid var(--nc-border); border-radius: 4px; background: var(--nc-surface); color: var(--nc-text);
  font: 500 10px/1.2 var(--nc-font-mono); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}

.nc-pending {
  position: absolute; inset: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px dashed var(--nc-signal); border-radius: 8px; color: var(--nc-text); text-align: center;
  font: 500 11px/1.3 var(--nc-font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.nc-pending strong { color: var(--nc-signal); font: 500 18px/1.1 var(--nc-font-num); text-transform: none; letter-spacing: 0; }
.nc-root--inline .nc-pending { min-height: 160px; }

/* dossier */
/* Active (issued, still held) = blue, Retired = orange: the overview colour semantics, blue/orange stays distinct for red-green colour blindness */
.nc-root--dossier {
  --nc-d-active: #2B7F96; --nc-d-retired: #B86B00;
  outline: none; touch-action: pan-y;
}
html[data-theme="dark"] .nc-root--dossier {
  --nc-d-active: #7FB5FF; --nc-d-retired: #D55E00;
}
.nc-root--dossier:focus-visible { box-shadow: inset 0 0 0 2px var(--nc-signal); }
.nc-root--dossier .nc-d-svg { display: block; }
.nc-root--dossier .nc-d-svg[hidden] { display: none; }
/* financial-breakdown stack: series fills, no strokes (the 1px gap and radius-4 clip come from dossier.js) */
.nc-d-bar { transition: fill 300ms; }
.nc-d-bar--active { fill: var(--nc-d-active); }
.nc-d-bar--retired { fill: var(--nc-d-retired); }
.nc-d-value { font: 500 12px/1 var(--nc-font-ui); font-variant-numeric: tabular-nums lining-nums; pointer-events: none; fill: var(--ck-fg-normal, var(--nc-muted)); }
.nc-d-band { pointer-events: none; } /* fill and opacity: .ck-band--stacked */
.nc-d-band[hidden], .nc-reset[hidden] { display: none; }
/* card header (Mebius chart-card: heading over caption, key on the right) */
.nc-d-head {
  position: absolute; top: 16px; left: 16px; right: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  pointer-events: none; letter-spacing: 0;
}
.nc-d-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ck-fg-loud, var(--nc-text)); font: 600 15px/1 var(--nc-font-ui); white-space: nowrap; }
.nc-d-title small { color: var(--ck-fg-soft, var(--nc-muted)); font: 400 12px/1 var(--nc-font-ui); }
.nc-d-key { display: flex; align-items: center; gap: 12px; padding-top: 1px; color: var(--ck-fg-normal, var(--nc-muted)); font: 500 12px/1 var(--nc-font-ui); white-space: nowrap; }
.nc-d-key__item { display: inline-flex; align-items: center; gap: 6px; }
.nc-root--dossier .nc-reset { top: 44px; right: 12px; }
.nc-d-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
  color: var(--nc-muted); font: 500 11px/1.4 var(--nc-font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.nc-d-empty[hidden] { display: none; }
.nc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .nc-d-bar { transition: none; } }

/* tracker */
.nc-root--tracker {
  --nct-ocean: #f4f1e8; --nct-land: #dcd9c8; --nct-countries: #c1c8bd; --nct-coast: rgba(29, 74, 58, 0.35); --nct-frame: rgba(168, 130, 52, 0.3);
  --nct-ring: #fbfaf6; --nct-text: #26322e; --nct-dim: #6f7972; --nct-neon: #1d4a3a; --nct-brass: #8a6420;
  --nct-panel: rgba(251, 250, 246, 0.9); --nct-rail: #e3e0d5;
  user-select: none;
}
html[data-theme="dark"] .nc-root--tracker {
  --nct-ocean: #0a110d; --nct-land: #1a2a21; --nct-countries: rgba(223, 231, 224, 0.09); --nct-coast: rgba(223, 231, 224, 0.22); --nct-frame: rgba(217, 184, 119, 0.2);
  --nct-ring: rgba(11, 19, 15, 0.92); --nct-text: #eef1e8; --nct-dim: #a4aea3; --nct-neon: #d5e1c2; --nct-brass: #e8d29b;
  --nct-panel: rgba(19, 28, 22, 0.86); --nct-rail: #243229;
}
.nc-root--tracker .nct-map, .nc-root--tracker .nct-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.nc-root--tracker .nct-markers { cursor: grab; outline: none; }
.nc-root--tracker .nct-markers:active { cursor: grabbing; }
.nc-root--tracker .nct-markers:focus-visible { box-shadow: inset 0 0 0 2px var(--nc-signal); }
.nct-ocean { fill: var(--nct-ocean); }
.nct-land { fill: var(--nct-land); }
.nct-countries { fill: none; stroke: var(--nct-countries); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.nct-coast { fill: none; stroke: var(--nct-coast); stroke-width: 0.7; vector-effect: non-scaling-stroke; }
.nct-frame { fill: none; stroke: var(--nct-frame); stroke-width: 1; vector-effect: non-scaling-stroke; }
.nct-title {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 120px);
  color: var(--nct-text); font: 600 14px/1.3 var(--nc-font-ui); letter-spacing: 0.01em; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.nct-note {
  position: absolute; transform: translate(-50%, -50%); padding: 6px 10px; border-radius: 8px;
  background: var(--nct-panel); border: 1px solid var(--nc-border); backdrop-filter: blur(6px);
  color: var(--nct-text); font: 500 10px/1.55 var(--nc-font-mono); white-space: nowrap; pointer-events: none;
}
.nct-note[hidden], .nct-empty[hidden] { display: none; }
.nct-colorbar { position: absolute; right: 14px; width: 54px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.nct-colorbar__title { color: var(--nct-dim); font: 500 9px/1 var(--nc-font-mono); letter-spacing: 0.06em; }
.nct-colorbar__body { position: relative; flex: 1; display: flex; gap: 6px; }
.nct-colorbar__ramp { border-radius: 3px; box-shadow: inset 0 0 0 1px var(--nc-border); }
.nct-colorbar__ticks { position: relative; flex: 1; }
.nct-colorbar__tick { position: absolute; left: 0; transform: translateY(50%); color: var(--nct-dim); font: 500 9px/1 var(--nc-font-mono); }
.nct-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--nct-dim); font: 500 10px/1.4 var(--nc-font-mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.nct--empty .nct-controls, .nct--empty .nct-colorbar, .nct--empty .nct-note, .nct--empty .nct-markers, .nct--empty .nct-map, .nct--empty .nc-reset { display: none; }
/* Bottom row sits beside the Dash speed button (left 12px, 82px wide, z-index above the native root). */
.nct-controls {
  position: absolute; left: 106px; right: 14px; bottom: 12px; height: 36px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
}
.nct-play {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px 0 11px;
  border: 1px solid var(--nc-border); border-radius: 7px; background: var(--nct-panel); color: var(--nc-signal);
  font: 600 10px/1 var(--nc-font-mono); letter-spacing: 0.08em; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.nct-play:hover { border-color: var(--nc-signal); color: var(--nct-text); }
.nct-play:focus-visible, .nct-range:focus-visible { outline: 2px solid var(--nc-signal); outline-offset: 2px; }
.nct-play:disabled { opacity: 0.5; cursor: default; }
.nct-play__icon { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.nct-play.is-playing .nct-play__icon { width: 8px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.nct-track { position: relative; height: 36px; min-width: 60px; }
.nct-range { position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 16px; margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.nct-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--nct-rail); }
.nct-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--nct-rail); }
.nct-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--nc-signal); border: 2px solid var(--nct-ocean); box-shadow: 0 0 0 1px var(--nc-signal); }
.nct-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--nc-signal); border: 2px solid var(--nct-ocean); }
.nct-ticks { position: absolute; left: 8px; right: 8px; top: 20px; height: 16px; pointer-events: none; }
.nct-tick { position: absolute; top: 0; width: 1px; height: 4px; background: var(--nct-dim); opacity: 0.6; }
.nct-tick.is-current { background: var(--nc-signal); opacity: 1; }
.nct-tick__label { position: absolute; top: 5px; left: 0; transform: translateX(-50%); color: var(--nct-dim); font: 500 9.5px/1 var(--nc-font-mono); }
.nct-tick.is-current .nct-tick__label { color: var(--nct-text); }
.nct-year { display: inline-flex; align-items: baseline; gap: 6px; color: var(--nct-text); white-space: nowrap; }
.nct-year__prefix { color: var(--nct-dim); font: 500 10px/1 var(--nc-font-mono); letter-spacing: 0.08em; }
.nct-year__value { color: var(--nc-signal); font-size: 22px; font-weight: 600; line-height: 1; }
.nct-tip { font-family: var(--nc-font-mono); font-size: 11px; max-width: min(360px, 92%); }
.nct-basemap { position: absolute; left: 14px; top: 36px; z-index: 2; font: 500 10px/1.3 var(--nc-font-mono); color: var(--nct-dim); pointer-events: none; }
.nc-root--tracker .nc-reset { top: 36px; right: 14px; }
.nc-root--tracker .nc-reset[hidden] { display: none; }
@media (max-width: 620px) {
  .nct-title { top: auto; bottom: 56px; font-size: 12px; max-width: calc(100% - 24px); }
  .nct-controls { left: 102px; right: 10px; gap: 8px; }
  .nct-play { padding: 0 9px; min-height: 44px; }
  .nct-controls { height: 44px; }
  /* 44px touch height for the scrubber; the 4px rail stays on the same centre line (12px) */
  .nct-range { height: 44px; top: -10px; }
  .nct-play__label { display: none; }
  .nct-year__prefix { font-size: 8px; letter-spacing: 0.04em; }
  .nct-year__value { font-size: 17px; }
  .nct-note { font-size: 9px; }
  .nct-colorbar { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .nct-play { transition: none; } }

/* bars: A3 g-bar and A4 g-ridge (static/js/native-charts/bars.js) */
.nc-bars { display: flex; flex-direction: column; }
.nc-bars--ridge:not(.is-narrow) { flex-direction: row-reverse; }
.nc-bars__svg { flex: 1 1 auto; min-width: 0; min-height: 0; height: auto !important; outline: none; }
.nc-bars__svg:focus-visible { outline: 2px solid var(--nc-signal); outline-offset: -2px; border-radius: 6px; }
.nc-bars__legend { flex: none; padding: 6px 8px 2px; }
.nc-bars__legend:empty, .nc-bars.nc-bars--ridge .nc-bars__legend:empty { display: none; }
.nc-bars--ridge:not(.is-narrow) .nc-bars__legend { width: clamp(150px, 24%, 230px); padding: 8px 6px; display: flex; flex-direction: column; justify-content: safe center; overflow-y: auto; max-height: 100%; }
.nc-bars--ridge:not(.is-narrow) .nc-legend--v { max-height: 100%; gap: 1px; }
.nc-bars--ridge.is-narrow .nc-bars__legend { order: 2; } /* wraps to rows; a capped height clipped the series list */
.nc-bars .nc-legend__item { min-height: 22px; }
.nc-root .nc-legend__num { flex: none; font-family: var(--nc-font-ui); font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--nc-signal); } /* Mebius numbers are the UI face, tabular; ridge items: name over count (Mebius expenses legend) */
.nc-bars--ridge .nc-legend__item:has(> .nc-legend__num) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 8px; }
.nc-bars--ridge .nc-legend__item > .nc-legend__num { grid-area: 2 / 2; }
.nc-bars--ridge .nc-legend__item:has(> .nc-legend__num) > .ck-legend-dot { grid-area: 1 / 1; }
.nc-bars--ridge .nc-legend__item:has(> .nc-legend__num) > .nc-legend__label { grid-area: 1 / 2; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-bars .nc-legend--v .nc-legend__item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; width: 100%; }
.nc-bars .nc-legend--v .nc-legend__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-bars__empty { display: none; }
.nc-bars.is-empty > :not(.nc-bars__empty) { display: none; }
.nc-bars.is-empty .nc-bars__empty {
  display: flex; flex: 1; align-items: center; justify-content: center; margin: 8px; border: 1px dashed var(--nc-border); border-radius: 8px;
  color: var(--nc-muted); font: 500 10.5px/1.3 var(--nc-font-mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.nc-bars.is-loading .nc-bars__empty { animation: nc-bars-pulse 1.6s ease-in-out infinite; }
@keyframes nc-bars-pulse { 50% { opacity: 0.45; } }
.nc-hit { fill: transparent; pointer-events: all; cursor: crosshair; }
.nc-plot { touch-action: pan-y; }
.nc-baseline { stroke: var(--ck-surface-soft, var(--nc-axis)); stroke-width: 1; } /* solid zero line (.ck-grid--zero) */
.nc-axis--y2 text { fill: currentColor; }
.nc-axis--y2 .tick line { stroke: currentColor; opacity: 0.35; }
.nc-axis__title--y2 { fill: currentColor; }
.nc-band { pointer-events: none; } /* fill and opacity: .ck-band--stacked */
.nc-bar { stroke-width: 0; pointer-events: none; }
.nc-bar-label { font: 500 12px/1 var(--nc-font-ui); font-variant-numeric: tabular-nums; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.nc-bars svg [hidden] { display: none; } /* SVG ignores the hidden attribute without this */
/* line series: finance-overview-area 2px line; cash-balance marker r 4 (surface fill, series stroke), r 6 when active */
.nc-event path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.nc-event circle { stroke-width: 2; pointer-events: none; transition: r 200ms; }
.nc-event circle.is-hot { r: 6; }
/* ridge: finance-overview-area fade (gradient 1 -> 0 set in bars.js) at fill-opacity .32 */
.nc-ridge { fill-opacity: 0.32; pointer-events: none; stroke-linejoin: round; transition: opacity 0.18s ease, stroke-width 0.18s ease; }
.has-focus .nc-ridge:not(.is-focus), .has-hot .nc-ridge:not(.is-hot) { opacity: 0.28 !important; }
.nc-ridge.is-hot, .nc-ridge.is-focus { stroke-width: 2.25; }
.nc-hotdot { fill: var(--ck-surface-white, var(--nc-surface)); stroke-width: 2; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .nc-ridge, .nc-event circle, .nc-legend__item, .nc-tip.is-live { transition: none; }
  .nc-tip.is-enter { animation: none; }
  .nc-bars.is-loading .nc-bars__empty { animation: none; }
}
/* bars (A3/A4) */
.nc-bars .nc-axis--grid { pointer-events: none; } /* gridlines sit outside .nc-plot and swallow hover on the plot */
/* hierarchy (A1/A2) */
.nc-root--hierarchy { display: flex; flex-direction: column; }
.nc-hier__crumbs { display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; padding: 6px 8px 2px; font: 500 12px/1.35 var(--nc-font-ui); color: var(--nc-muted); }
.nc-hier__crumbs button { all: unset; cursor: pointer; padding: 3px 6px; border-radius: 4px; color: var(--nc-text); }
.nc-hier__crumbs button + button::before { content: "\203A"; margin-right: 6px; color: var(--nc-muted); }
.nc-hier__crumbs button:hover:not([aria-current]) { text-decoration: underline; }
.nc-hier__crumbs button[aria-current] { color: var(--nc-signal); cursor: default; }
.nc-hier__crumbs .nc-num { margin-left: 4px; opacity: 0.7; font-family: var(--nc-font-ui); } /* Mebius numbers are the UI face, tabular */
.nc-hier__crumbs button:focus-visible { outline: 2px solid var(--nc-signal); outline-offset: 1px; }
.nc-hier__legend { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 4px 8px 6px; font: 500 12px/1.35 var(--nc-font-ui); color: var(--nc-text); }
.nc-hier__legend[hidden] { display: none; }
.nc-hier__key i { font-style: normal; margin-right: 5px; }
.nc-hier__stage { position: relative; flex: 1 1 auto; min-height: 0; min-width: 0; }
.nc-hier__empty { flex: 1 1 auto; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--nc-muted); font: 500 12px/1.4 var(--nc-font-ui); }
.nc-hier__empty[hidden], .nc-hier__stage[hidden], .nc-hier__crumbs[hidden] { display: none; }
.nc-hier .nc-arc, .nc-hier .nc-cell, .nc-hier__hole { cursor: default; outline: none; }
.nc-hier .is-drill { cursor: pointer; }
.nc-hier .is-exit { pointer-events: none; }
.nc-hier--dim .nc-arc:not(.is-hot), .nc-hier--dim .nc-cell:not(.is-hot) { filter: saturate(0.4) brightness(0.92); }
.nc-hier .is-hot { filter: brightness(1.1); }
.nc-hier .nc-arc:focus-visible, .nc-hier .nc-cell:focus-visible rect, .nc-hier__hole:focus-visible { stroke: var(--ck-accent-500, var(--nc-signal)); stroke-width: 2px; }
.nc-hier__hole { stroke-width: 1px; }
.nc-hier__hole.is-drill:hover { stroke: var(--nc-signal); }
/* Mebius type: label-01/02, sentence case, UI-font numbers */
.nc-hier__hole-label { font: 500 12px/1 var(--nc-font-ui); text-anchor: middle; pointer-events: none; }
.nc-hier__hole-num { font: 600 16px/1 var(--nc-font-ui); font-variant-numeric: tabular-nums; text-anchor: middle; pointer-events: none; }
.nc-hier__labels { pointer-events: none; }
.nc-hier__labels text { font: 500 12px/1 var(--nc-font-ui); text-anchor: middle; }
.nc-hier__labels .nc-hier__pct { font-variant-numeric: tabular-nums; opacity: 0.8; }
.nc-cell__label { font: 500 12px/1 var(--nc-font-ui); pointer-events: none; } /* label-01-medium; hierarchy.js fits labels at 12px */
.nc-cell__count { font: 500 12px/1 var(--nc-font-ui); font-variant-numeric: tabular-nums; opacity: 0.8; pointer-events: none; }
.nc-hier__share { display: block; margin-top: 2px; opacity: 0.75; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .nc-hier .nc-arc, .nc-hier .nc-cell, .nc-hier__hole { transition: none; }
}

/* tracker (A5) */
/* The sandwich dock floats over the tracker frame (--nct-dock is set from the parent --dock-space in tracker.js). */
.nc-root--tracker .nct-controls { bottom: calc(12px + var(--nct-dock, 0px)); }
#animation-speed-button { bottom: calc(12px + var(--nct-dock, 0px)); }
/* light --nct-dim #6f7972 measured 3.89:1 on the ocean; darken to clear WCAG AA 4.5 for small labels */
.nc-root--tracker { --nct-dim: #56605a; }
