/* NeonCipher — Komponenten. Alle Werte kommen aus tokens.css; hier wird keiner wiederholt.
   Material ohne Bilder: Platten haben Lichtkante (edge-hi), Schattenkante (edge-lo) und Dicke,
   Tasten eine Seitenfläche, in die sie beim Drücken einsinken, Eingaben liegen in einer Mulde (well).
   Geschnittene Formen liegen in ::before (Körper/Kante) und ::after (Fläche), damit Fokusring
   und Schatten nicht vom clip-path abgeschnitten werden.
   Night betont mit Licht (Glow, Glanz), Day mit Masse (Tintenkante, harter Schatten). */

/* ---------- Helfer ---------- */
.nc-title { font-family: var(--font-display); font-weight: 700; text-shadow: 3px 3px 0 var(--misprint); }
.nc-stripes { height: var(--space-3); background: repeating-linear-gradient(-45deg, var(--warning) 0 10px, var(--on-neon) 10px 20px); }

/* ---------- Button ---------- */
.nc-btn {
  --nc-fill: var(--cyan);
  --nc-side: var(--cyan-deep);
  --nc-inset: 0px;
  --nc-press: 0px;
  --nc-text: var(--on-neon);
  --nc-glow: var(--cyan-glow);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-sizing: border-box;
  min-height: var(--control-md);
  padding: var(--nc-press) var(--space-4) calc(var(--depth) - var(--nc-press));
  border: 0;
  background: none;
  color: var(--nc-text);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nc-btn::before,
.nc-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
}
.nc-btn::before { inset: var(--nc-press) 0 0 0; background: var(--nc-side); }
.nc-btn::after {
  inset: calc(var(--nc-press) + var(--nc-inset)) var(--nc-inset) calc(var(--depth) - var(--nc-press) + var(--nc-inset)) var(--nc-inset);
  background: linear-gradient(180deg, var(--shine), transparent 55%), var(--nc-fill);
}
.nc-btn:hover { filter: drop-shadow(0 0 10px var(--nc-glow)); }
.nc-btn:active { --nc-press: 3px; filter: none; }
.nc-btn:focus-visible { outline: var(--stroke-md) solid var(--focus); outline-offset: 3px; }

.nc-btn--accent { --nc-fill: var(--magenta); --nc-side: var(--magenta-deep); --nc-glow: var(--magenta-glow); }
.nc-btn--danger { --nc-fill: var(--danger); --nc-side: var(--danger-deep); }
.nc-btn--danger:hover { filter: none; }
.nc-btn--outline { --nc-fill: var(--surface-raised); --nc-side: var(--cyan); --nc-inset: var(--stroke-md); --nc-text: var(--cyan-ink); }
.nc-btn--outline:hover { --nc-fill: var(--cyan-wash); }

.nc-btn--lg { min-height: var(--control-lg); padding-left: var(--space-6); padding-right: var(--space-6); }
.nc-btn--sm { min-height: var(--control-sm); padding-left: var(--space-3); padding-right: var(--space-3); }
.nc-btn.nc-btn--icon { width: var(--control-md); padding-left: 0; padding-right: 0; }
.nc-btn.nc-btn--icon.nc-btn--lg { width: var(--control-lg); }
.nc-btn.nc-btn--icon.nc-btn--sm { width: var(--control-sm); }

/* Day: Tintenkörper, harter Schatten. */
[data-theme="day"] .nc-btn { --nc-side: var(--ink); --nc-inset: var(--stroke-md); filter: drop-shadow(3px 3px 0 var(--ink)); }
[data-theme="day"] .nc-btn:hover { filter: drop-shadow(5px 5px 0 var(--ink)); transform: translate(-1px, -1px); }
[data-theme="day"] .nc-btn:active { filter: none; transform: translate(2px, 2px); }
[data-theme="day"] .nc-btn--outline { --nc-fill: var(--surface-raised); --nc-text: var(--ink); }
[data-theme="day"] .nc-btn--outline:hover { --nc-fill: var(--cyan-wash); }

/* Quiet und Disabled stehen zuletzt, damit sie in beiden Themes gelten. */
.nc-btn.nc-btn--quiet { --nc-fill: transparent; --nc-side: transparent; --nc-text: var(--ink); filter: none; transform: none; }
.nc-btn.nc-btn--quiet::after { background: var(--nc-fill); }
.nc-btn.nc-btn--quiet:hover { --nc-fill: var(--surface-overlay); --nc-side: var(--edge-lo); }
.nc-btn.nc-btn:disabled,
.nc-btn.nc-btn[aria-disabled="true"] {
  --nc-fill: var(--surface-overlay);
  --nc-side: var(--edge-lo);
  --nc-inset: 0px;
  --nc-press: 0px;
  --nc-text: var(--ink-faint);
  cursor: not-allowed;
  filter: none;
  transform: none;
}
.nc-btn.nc-btn:disabled::after,
.nc-btn.nc-btn[aria-disabled="true"]::after { background: var(--nc-fill); }
[data-theme="day"] .nc-btn.nc-btn:disabled,
[data-theme="day"] .nc-btn.nc-btn[aria-disabled="true"] { --nc-side: var(--line); }

/* ---------- TextField ---------- */
.nc-field { display: grid; gap: var(--space-2); min-width: 0; }
.nc-field__label {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nc-input {
  box-sizing: border-box;
  width: 100%;
  height: var(--control-md);
  padding: 0 var(--space-3);
  border: var(--stroke-md) solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--well);
  box-shadow: var(--sunk);
  color: var(--ink);
  caret-color: var(--cyan-ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.nc-input::placeholder { color: var(--ink-faint); opacity: 1; }
.nc-input:hover { border-color: var(--ink); }
.nc-input:focus-visible { outline: var(--stroke-md) solid var(--focus); outline-offset: 2px; border-color: var(--focus); box-shadow: var(--sunk), var(--signal); }
.nc-input:disabled { border-color: var(--line); background: var(--surface-overlay); box-shadow: none; color: var(--ink-faint); cursor: not-allowed; }
.nc-field__hint { color: var(--ink-muted); font-family: var(--font-text); font-size: 14px; line-height: 20px; }
.nc-field--error .nc-input { border-color: var(--danger-ink); }
.nc-field--error .nc-field__hint { color: var(--danger-ink); font-weight: 600; }
.nc-field--error .nc-field__hint::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: var(--space-2);
  background: var(--danger-ink);
}
.nc-field--lg .nc-input { height: var(--control-lg); }

/* ---------- Panel ---------- */
.nc-panel {
  --nc-edge: linear-gradient(135deg, var(--edge-hi), var(--edge-lo) 60%);
  --nc-face: linear-gradient(160deg, var(--surface-raised), var(--surface));
  position: relative;
  isolation: isolate;
  padding: var(--space-6);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  filter: drop-shadow(0 var(--depth) 0 var(--edge-lo)) drop-shadow(0 12px 14px var(--shade));
  transition: filter var(--dur-base) var(--ease-out);
}
.nc-panel::before,
.nc-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--cut-lg) 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%, 0 var(--cut-lg));
}
.nc-panel::before { inset: 0; background: var(--nc-edge); }
.nc-panel::after { inset: var(--stroke-md); background: var(--nc-face); }
.nc-panel--raised { --nc-face: linear-gradient(160deg, var(--surface-overlay), var(--surface-raised)); }
.nc-panel--active { --nc-edge: var(--cyan); filter: drop-shadow(0 var(--depth) 0 var(--cyan-deep)) drop-shadow(0 0 14px var(--cyan-glow)); }
/* Kennung als Klebeband-Etikett: schräg geschnitten, leicht verdreht, über die Plattenkante geklebt. */
.nc-panel__id {
  display: inline-block;
  margin: calc(var(--space-6) * -1 - var(--space-2)) 0 var(--space-4) calc(var(--space-2) * -1);
  padding: var(--space-1) var(--space-4);
  background: var(--ink);
  color: var(--ground);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transform: rotate(-1.5deg);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nc-panel--active .nc-panel__id { background: var(--cyan); color: var(--on-neon); }
.nc-panel__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}
.nc-panel__body { margin: 0; color: var(--ink-muted); }
[data-theme="day"] .nc-panel { --nc-edge: var(--ink); --nc-face: var(--surface); filter: drop-shadow(6px 6px 0 var(--ink)); }
[data-theme="day"] .nc-panel--raised { --nc-face: var(--surface-raised); }
[data-theme="day"] .nc-panel--active { filter: drop-shadow(6px 6px 0 var(--cyan-deep)); }

/* ---------- Meter ---------- */
.nc-meter {
  --nc-fill: var(--cyan);
  --nc-text: var(--cyan-ink);
  display: grid;
  gap: var(--space-2);
  color: var(--nc-text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.nc-meter__head { display: flex; justify-content: space-between; gap: var(--space-4); }
.nc-meter__label { color: var(--ink); }
.nc-meter__track {
  height: var(--space-4);
  background: var(--track);
  -webkit-mask: repeating-linear-gradient(110deg, #000 0 11px, transparent 11px 14px);
  mask: repeating-linear-gradient(110deg, #000 0 11px, transparent 11px 14px);
}
.nc-meter__fill {
  display: block;
  height: 100%;
  width: calc(var(--value, 0) * 1%);
  background: linear-gradient(180deg, var(--shine), transparent 60%), var(--nc-fill);
  transition: width var(--dur-slow) var(--ease-out);
}
.nc-meter--warning { --nc-fill: var(--warning); --nc-text: var(--warning-ink); }
.nc-meter--danger { --nc-fill: var(--danger); --nc-text: var(--danger-ink); }
.nc-meter--accent { --nc-fill: var(--magenta); --nc-text: var(--magenta-ink); }

/* ---------- StatusTag: Lampe mit Wort, kein Kasten ---------- */
.nc-tag {
  --nc-fill: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nc-tag::before {
  content: "";
  flex: none;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 35% 30%, var(--shine), transparent 65%), var(--nc-fill);
  filter: drop-shadow(0 0 5px var(--nc-fill));
}
.nc-tag--success { --nc-fill: var(--success); }
.nc-tag--success::before { border-radius: var(--radius-pill); }
.nc-tag--warning { --nc-fill: var(--warning); }
.nc-tag--warning::before {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--nc-fill);
  background: none;
}
.nc-tag--danger { --nc-fill: var(--danger); }
.nc-tag--info { --nc-fill: var(--violet); }
.nc-tag--info::before { width: 10px; height: 10px; margin: 0 1px; transform: rotate(45deg); }
.nc-tag--neutral { color: var(--ink-muted); }
.nc-tag--neutral::before { border: var(--stroke-md) solid var(--ink-faint); border-radius: var(--radius-pill); background: none; filter: none; }
/* Day: keine leuchtende Lampe, sondern gedruckte Marke mit Tintenkontur. */
[data-theme="day"] .nc-tag::before { filter: drop-shadow(1.5px 0 0 var(--ink)) drop-shadow(-1.5px 0 0 var(--ink)) drop-shadow(0 1.5px 0 var(--ink)) drop-shadow(0 -1.5px 0 var(--ink)); }
[data-theme="day"] .nc-tag--neutral::before { border-color: var(--ink); filter: none; }
/* Stempel: gefüllte, schräg geschnittene Marke für den einen Status, der die Ansicht bestimmt. */
.nc-tag.nc-tag--stamp {
  padding: var(--space-1) var(--space-4);
  background: var(--nc-fill);
  color: var(--on-neon);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transform: rotate(-2deg);
}
.nc-tag.nc-tag--stamp::before { background: var(--on-neon); filter: none; }
.nc-tag.nc-tag--stamp.nc-tag--warning::before { border-bottom-color: var(--on-neon); background: none; }

/* ---------- Switch ---------- */
.nc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--control-md);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.nc-switch__track {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 52px;
  height: 28px;
  border: var(--stroke-md) solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--well);
  box-shadow: var(--sunk);
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.nc-switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 18px;
  background: linear-gradient(180deg, var(--shine), transparent 60%), var(--ink-muted);
  box-shadow: 0 2px 0 var(--edge-lo);
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.nc-switch input:checked + .nc-switch__track { border-color: var(--cyan); background: var(--cyan-wash); }
.nc-switch input:checked + .nc-switch__track::after {
  transform: translateX(24px);
  background: linear-gradient(180deg, var(--shine), transparent 60%), var(--cyan);
  box-shadow: 0 2px 0 var(--cyan-deep), 0 0 10px var(--cyan-glow);
}
.nc-switch input:focus-visible + .nc-switch__track { outline: var(--stroke-md) solid var(--focus); outline-offset: 3px; }
.nc-switch input:disabled { cursor: not-allowed; }
.nc-switch input:disabled + .nc-switch__track { border-color: var(--line); box-shadow: none; }
.nc-switch input:disabled + .nc-switch__track::after { background: var(--line); box-shadow: none; }
.nc-switch input:disabled ~ .nc-switch__label { color: var(--ink-faint); }
.nc-switch--lg { min-height: var(--control-lg); }
[data-theme="day"] .nc-switch__track::after { background: var(--ink); box-shadow: none; height: 20px; }
[data-theme="day"] .nc-switch input:checked + .nc-switch__track { border-color: var(--ink); background: var(--cyan); }
[data-theme="day"] .nc-switch input:checked + .nc-switch__track::after { background: var(--ink); box-shadow: none; }
[data-theme="day"] .nc-switch input:disabled + .nc-switch__track { border-color: var(--line); }
[data-theme="day"] .nc-switch input:disabled + .nc-switch__track::after { background: var(--line); }

/* ---------- Icon ---------- */
.nc-icon {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--nc-icon) center / contain no-repeat;
  mask: var(--nc-icon) center / contain no-repeat;
  vertical-align: -4px;
}
.nc-icon--lg { width: 24px; height: 24px; vertical-align: -6px; }

/* ---------- Logo ---------- */
.nc-logo { display: inline-block; flex: none; width: 40px; height: 40px; color: var(--ink); }
.nc-logo--lg { width: 64px; height: 64px; }

/* ---------- Tabs: Tastenreihe, die gewählte leuchtet ---------- */
.nc-tabs { display: flex; gap: var(--space-1); border-bottom: var(--stroke-lg) solid var(--cyan); overflow-x: auto; }
.nc-tab {
  position: relative;
  flex: none;
  min-height: var(--control-md);
  padding: 0 var(--space-4);
  border: 0;
  background: linear-gradient(180deg, var(--surface-overlay), var(--surface-raised));
  clip-path: polygon(var(--cut-md) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-md));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-fast) var(--ease-out);
}
.nc-tab:hover { background: var(--surface-overlay); color: var(--cyan-ink); }
.nc-tab[aria-selected="true"] { background: linear-gradient(180deg, var(--shine), transparent 55%), var(--cyan); color: var(--on-neon); }
.nc-tab:focus-visible { outline: var(--stroke-md) solid var(--focus); outline-offset: -5px; }
.nc-tab[aria-selected="true"]:focus-visible { outline-color: var(--on-neon); }
.nc-tabs--lg .nc-tab { min-height: var(--control-lg); }
[data-theme="day"] .nc-tabs { border-bottom-color: var(--ink); }
[data-theme="day"] .nc-tab { background: var(--surface-raised); box-shadow: inset 0 0 0 var(--stroke-md) var(--ink); }
[data-theme="day"] .nc-tab:hover { background: var(--cyan-wash); color: var(--ink); }
[data-theme="day"] .nc-tab[aria-selected="true"] { background: var(--cyan); }

/* ---------- Dialog ---------- */
.nc-scrim { position: fixed; inset: 0; display: grid; place-items: center; padding: var(--space-4); background: var(--scrim); }
.nc-dialog {
  --nc-edge: linear-gradient(135deg, var(--edge-hi), var(--edge-lo) 60%);
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: var(--space-6);
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  filter: drop-shadow(0 var(--depth) 0 var(--edge-lo)) drop-shadow(0 16px 20px var(--scrim));
}
.nc-dialog::backdrop { background: var(--scrim); }
.nc-dialog::before,
.nc-dialog::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--cut-lg) 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%, 0 var(--cut-lg));
}
.nc-dialog::before { inset: 0; background: var(--nc-edge); }
.nc-dialog::after { inset: var(--stroke-md); background: linear-gradient(160deg, var(--surface-overlay), var(--surface-raised)); }
.nc-dialog > .nc-stripes { margin: 0 0 var(--space-4) var(--space-4); }
.nc-dialog__title { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 700; text-shadow: 3px 3px 0 var(--misprint); }
.nc-dialog__body { margin: 0; color: var(--ink); }
.nc-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-6); }
[data-theme="day"] .nc-dialog { --nc-edge: var(--ink); filter: drop-shadow(8px 8px 0 var(--ink)); }
[data-theme="day"] .nc-dialog::after { background: var(--surface-raised); }

/* ---------- List: jede Zeile eine Platte ---------- */
.nc-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.nc-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-sizing: border-box;
  width: 100%;
  min-height: calc(var(--control-lg) + var(--space-2));
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  border: 0;
  border-left: var(--stroke-xl) solid var(--edge-hi);
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  box-shadow: 0 3px 0 var(--edge-lo);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
a.nc-list__item, button.nc-list__item { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a.nc-list__item:hover, button.nc-list__item:hover { border-left-color: var(--cyan); transform: translateX(3px); }
a.nc-list__item:active, button.nc-list__item:active { transform: translate(3px, 2px); box-shadow: 0 1px 0 var(--edge-lo); }
.nc-list__item:focus-visible { outline: var(--stroke-md) solid var(--focus); outline-offset: 2px; }
.nc-list__item[aria-current], .nc-list__item[aria-selected="true"] { border-left-color: var(--cyan); background: var(--cyan-wash); box-shadow: 0 3px 0 var(--cyan-deep); }
.nc-list__text { display: grid; flex: 1; min-width: 0; }
.nc-list__meta { color: var(--ink-muted); font-size: 14px; line-height: 20px; font-weight: 400; }
.nc-list__end { flex: none; color: var(--ink); font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 600; }
[data-theme="day"] .nc-list { gap: var(--space-3); }
[data-theme="day"] .nc-list__item { border: var(--stroke-md) solid var(--ink); border-left-width: var(--stroke-xl); background: var(--surface-raised); box-shadow: 4px 4px 0 var(--ink); }
[data-theme="day"] a.nc-list__item:hover, [data-theme="day"] button.nc-list__item:hover { border-color: var(--ink); background: var(--cyan-wash); }
[data-theme="day"] .nc-list__item[aria-current], [data-theme="day"] .nc-list__item[aria-selected="true"] { border-color: var(--ink); background: var(--cyan); box-shadow: 4px 4px 0 var(--ink); }
[data-theme="day"] .nc-list__item[aria-current] .nc-list__meta, [data-theme="day"] .nc-list__item[aria-selected="true"] .nc-list__meta { color: var(--on-neon); }

/* ---------- Table ---------- */
.nc-table-wrap { overflow-x: auto; }
.nc-table { width: 100%; border-collapse: collapse; color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 24px; }
.nc-table th {
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--stroke-lg) solid var(--line-strong);
  background: var(--surface-overlay);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.nc-table td { padding: var(--space-3); border-bottom: var(--stroke-md) solid var(--line); vertical-align: middle; }
.nc-table td:first-child { font-weight: 600; }
.nc-table tbody tr:hover { background: var(--surface-raised); }
.nc-table tbody tr[aria-selected="true"] { background: var(--cyan-wash); }
.nc-table tbody tr[aria-selected="true"] td:first-child { box-shadow: inset var(--stroke-xl) 0 0 var(--cyan); }
.nc-table .nc-table__num { font-family: var(--font-mono); font-weight: 600; text-align: right; white-space: nowrap; }
.nc-table td.nc-table__num { font-size: 14px; line-height: 20px; }
[data-theme="day"] .nc-table th { background: var(--ink); color: var(--ground); }
[data-theme="day"] .nc-table tbody tr[aria-selected="true"] td:first-child { box-shadow: inset var(--stroke-xl) 0 0 var(--ink); }

/* ---------- Navigation ---------- */
.nc-nav { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.nc-nav__label {
  margin: var(--space-4) 0 var(--space-1);
  padding: 0 var(--space-3);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nc-nav__label:first-child { margin-top: 0; }
.nc-nav__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-sizing: border-box;
  width: 100%;
  min-height: calc(var(--control-md) + var(--space-1));
  padding: 0 var(--space-3) 0 var(--space-4);
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nc-nav__item:hover { background: var(--surface-overlay); box-shadow: inset var(--stroke-xl) 0 0 var(--edge-hi); }
.nc-nav__item:focus-visible { outline: var(--stroke-md) solid var(--focus); outline-offset: -2px; }
.nc-nav__item[aria-current] {
  background: linear-gradient(90deg, var(--cyan-wash), var(--surface-overlay));
  box-shadow: inset var(--stroke-xl) 0 0 var(--cyan), 0 2px 0 var(--edge-lo);
  font-weight: 700;
}
.nc-nav__count { margin-left: auto; font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 600; }
[data-theme="day"] .nc-nav__item:hover { box-shadow: inset var(--stroke-xl) 0 0 var(--ink); }
[data-theme="day"] .nc-nav__item[aria-current] { background: var(--cyan); box-shadow: inset var(--stroke-xl) 0 0 var(--ink), 3px 3px 0 var(--ink); }

.nc-nav--bar { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border-top: var(--stroke-lg) solid var(--edge-lo); background: linear-gradient(180deg, var(--surface-raised), var(--surface)); }
.nc-nav--bar .nc-nav__item {
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
  min-height: calc(var(--control-lg) + var(--space-3));
  padding: var(--space-1);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;
}
.nc-nav--bar .nc-nav__item:hover { box-shadow: none; }
.nc-nav--bar .nc-nav__item[aria-current] { background: var(--cyan-wash); box-shadow: inset 0 var(--stroke-xl) 0 var(--cyan); font-weight: 700; }
[data-theme="day"] .nc-nav--bar { border-top-color: var(--ink); background: var(--surface); }
[data-theme="day"] .nc-nav--bar .nc-nav__item[aria-current] { background: var(--cyan); box-shadow: inset 0 var(--stroke-xl) 0 var(--ink); }

.nc-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-sizing: border-box;
  min-height: calc(var(--control-lg) + var(--space-3));
  padding: 0 var(--space-4);
  border-bottom: var(--stroke-lg) solid var(--edge-lo);
  background: linear-gradient(180deg, var(--surface-overlay), var(--surface-raised));
  box-shadow: inset 0 var(--stroke-md) 0 var(--edge-hi);
  color: var(--ink);
}
.nc-topbar__title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 2px 2px 0 var(--misprint); }
.nc-topbar__end { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
[data-theme="day"] .nc-topbar { border-bottom-color: var(--ink); background: var(--surface-raised); box-shadow: none; }

/* ---------- Ergänzt 25.11.2026 (Systemübersicht): Sekundärtaste, Readout, Banner, Segment ---------- */
/* Sekundärtaste: Material statt Neon, für alle Aktionen neben der einen primären. */
.nc-btn--secondary { --nc-fill: var(--surface-overlay); --nc-side: var(--edge-lo); --nc-text: var(--ink); --nc-glow: transparent; }
.nc-btn--secondary:hover { --nc-fill: var(--surface-raised); filter: none; }
.nc-btn--secondary[aria-pressed="true"] { --nc-fill: var(--cyan-wash); --nc-side: var(--cyan); --nc-press: 2px; }
[data-theme="day"] .nc-btn--secondary { --nc-fill: var(--surface-raised); --nc-text: var(--ink); }
[data-theme="day"] .nc-btn--secondary:hover { --nc-fill: var(--cyan-wash); }
[data-theme="day"] .nc-btn--secondary[aria-pressed="true"] { --nc-fill: var(--cyan); --nc-side: var(--ink); }

/* Readout: ein Messwert in einer Mulde. Wert in data-Schrift, Abweichung als Balken links plus Schriftfarbe. */
.nc-readout {
  --nc-fill: transparent;
  display: grid;
  gap: var(--space-1);
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xs);
  background: var(--well);
  box-shadow: var(--sunk), inset 0 0 0 var(--stroke-md) var(--line), inset var(--stroke-xl) 0 0 var(--nc-fill);
  color: var(--ink);
}
.nc-readout__label { color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.nc-readout__value { font-family: var(--font-mono); font-size: 26px; line-height: 32px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-readout__sub { color: var(--ink-muted); font-family: var(--font-text); font-size: 13px; line-height: 18px; }
.nc-readout--warning { --nc-fill: var(--warning); }
.nc-readout--warning .nc-readout__value { color: var(--warning-ink); }
.nc-readout--danger { --nc-fill: var(--danger); }
.nc-readout--danger .nc-readout__value { color: var(--danger-ink); }
.nc-readout--active { --nc-fill: var(--cyan); }
.nc-readout--active .nc-readout__value { color: var(--cyan-ink); }
.nc-readout--stale .nc-readout__value { color: var(--ink-faint); }
[data-theme="day"] .nc-readout { box-shadow: var(--sunk), inset 0 0 0 var(--stroke-md) var(--ink), inset var(--stroke-xl) 0 0 var(--nc-fill); }
[data-theme="day"] .nc-readout--active .nc-readout__value { color: var(--ink); }

/* Banner: Hinweis über dem Inhalt. Platte mit Markierungsbalken in der Zustandsfarbe, Lampe mit Wort. */
.nc-banner {
  --nc-fill: var(--violet);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--stroke-xl) + var(--space-3));
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  box-shadow: inset var(--stroke-xl) 0 0 var(--nc-fill), 0 3px 0 var(--edge-lo);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
}
.nc-banner::before { content: ""; flex: none; width: 10px; height: 10px; margin: 0 1px; background: var(--nc-fill); transform: rotate(45deg); filter: drop-shadow(0 0 4px var(--nc-fill)); }
.nc-banner--warning { --nc-fill: var(--warning); }
.nc-banner--warning::before { width: 14px; height: 12px; margin: 0; transform: none; clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: none; }
.nc-banner--danger { --nc-fill: var(--danger); padding-left: calc(var(--space-3) + var(--space-4)); background: linear-gradient(160deg, var(--surface-raised), var(--surface)) var(--space-3) 0 / calc(100% - var(--space-3)) 100% no-repeat, repeating-linear-gradient(-45deg, var(--warning) 0 8px, var(--on-neon) 8px 16px); box-shadow: 0 3px 0 var(--edge-lo); }
.nc-banner--danger::before { transform: none; margin: 0; }
[data-theme="day"] .nc-banner { background: var(--surface-raised); box-shadow: inset var(--stroke-xl) 0 0 var(--nc-fill), inset 0 0 0 var(--stroke-md) var(--ink), 4px 4px 0 var(--ink); }
[data-theme="day"] .nc-banner--danger { background: linear-gradient(var(--surface-raised), var(--surface-raised)) var(--space-3) 0 / calc(100% - var(--space-3)) 100% no-repeat, repeating-linear-gradient(-45deg, var(--warning) 0 8px, var(--on-neon) 8px 16px); box-shadow: inset 0 0 0 var(--stroke-md) var(--ink), 4px 4px 0 var(--ink); }
[data-theme="day"] .nc-banner::before { filter: drop-shadow(1.5px 0 0 var(--ink)) drop-shadow(-1.5px 0 0 var(--ink)) drop-shadow(0 1.5px 0 var(--ink)) drop-shadow(0 -1.5px 0 var(--ink)); }

/* Segment: Wahl aus wenigen gleichrangigen Werten (Filter, Farbschema) in einer Mulde. aria-pressed trägt die Wahl. */
.nc-seg { display: inline-flex; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-xs); background: var(--well); box-shadow: var(--sunk), inset 0 0 0 var(--stroke-md) var(--line); }
.nc-seg > button {
  min-height: var(--control-sm);
  padding: 0 var(--space-3);
  border: 0;
  background: none;
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nc-seg > button:hover { background: var(--surface-overlay); }
.nc-seg > button[aria-pressed="true"] { background: linear-gradient(180deg, var(--shine), transparent 55%), var(--cyan); color: var(--on-neon); }
.nc-seg > button:focus-visible { outline: var(--stroke-md) solid var(--focus); outline-offset: -3px; }
[data-theme="day"] .nc-seg { box-shadow: var(--sunk), inset 0 0 0 var(--stroke-md) var(--ink); }
[data-theme="day"] .nc-seg > button:hover { background: var(--cyan-wash); }
[data-theme="day"] .nc-seg > button[aria-pressed="true"] { background: var(--cyan); }
@media (any-pointer: coarse) { .nc-seg > button { min-height: var(--control-lg); } }

@media (prefers-reduced-motion: reduce) {
  .nc-btn, .nc-input, .nc-panel, .nc-meter__fill, .nc-switch__track, .nc-switch__track::after,
  .nc-tab, .nc-list__item, .nc-nav__item { transition: none; }
}
