/* Marketing-Platform — Pipeline Design-System (dark-first).
   Quelle der Wahrheit: /Users/jeremia/Code/sluis/PIPELINE_DESIGN_SYSTEM.md
   Orange #FF6D5A = aktiv/laufend (Bedeutung, nicht Dekor).
   Cyan #00D9FF = OK/done/CTA (einzige Primary-Button-Farbe).
   Near-Black #0F0F0F + zwei radiale Gradients als Stimme.
   Plus Jakarta Sans als Voice, JetBrains/Geist Mono für IDs/Code. */
:root {
  /* === Surfaces (Pipeline) === */
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-2: #242424;
  --surface-sunken: #07090a;  /* Mono-Logs, Code, Terminal-Blöcke */
  --surface-raised: #1f1f1f;  /* Modals/Popover über shadow-key */
  --inset: #1f1f1f;

  /* === Text === */
  --fg: #ffffff;
  --ink: #ffffff;
  --fg-muted: #b0b0b0;
  --fg-subtle: #707070;

  /* === Lines === */
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --border-hover: var(--line-strong);

  /* === Brand: Orange — Bedeutung "aktiv, läuft" === */
  --accent: #ff6d5a;
  --accent-hover: #ff8870;
  --accent-fg: #ffffff;
  --accent-weak: rgba(255, 109, 90, 0.12);
  --brand: var(--accent);
  --brand-hover: var(--accent-hover);
  --brand-press: #e25543;
  --brand-soft: var(--accent-weak);
  --brand-ring: rgba(255, 109, 90, 0.35);
  --brand-700: var(--brand-press);
  --primary-soft: var(--brand-soft);

  /* === Brand: Cyan — CTA + done === */
  --cyan: #00d9ff;
  --cyan-hover: #4de4ff;
  --cyan-fg: #0a0a0a;       /* schwarzer Text auf Cyan-CTA */
  --cyan-weak: rgba(0, 217, 255, 0.12);

  /* === Status === */
  --success: var(--cyan);
  --success-soft: var(--cyan-weak);
  --success-ink: var(--cyan);
  --warning: #f5b85a;
  --warning-soft: rgba(245, 184, 90, 0.15);
  --warning-ink: #ffd066;
  --danger:  #ff5a6f;
  --danger-soft: rgba(255, 90, 111, 0.15);
  --danger-ink:  #ff95a3;

  /* === Effekte === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow:    0 1px 2px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.6);
  --shadow-key: 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-cta: 0 0 24px rgba(0, 217, 255, 0.35);
  --glow-active: 0 0 0 1px var(--accent), 0 0 24px rgba(255, 109, 90, 0.25);
  --glow-done:   0 0 0 1px var(--cyan),   0 0 20px rgba(0, 217, 255, 0.20);
  --ring-focus:  0 0 0 3px rgba(0, 217, 255, 0.35);
  --soft: var(--shadow);
  --paper: var(--bg);
  --subtle: var(--surface-2);

  /* === Radius === */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r: 12px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 18px;
  --r-full: 9999px;
  --bw: 1px;

  /* === Typography === */
  --font-display: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui,
                  -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-display);
  --font-mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, SFMono-Regular,
               Menlo, Consolas, monospace;
}
[data-theme="pipeline"], [data-theme="dark"] { color-scheme: dark; }

/* ============================================================
   LIGHT MODE — behält Brand-Farben (Orange/Cyan) + Effekte,
   nur auf hellen Flächen. Cyan wird fürs Lesen auf Weiß vertieft.
   ============================================================ */
[data-theme="light"] {
  color-scheme: light;
  /* Surfaces */
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --surface-sunken: #e9ecf1;
  --surface-raised: #ffffff;
  --inset: #f3f5f8;
  /* Text */
  --fg: #15181d;
  --ink: #0c0e12;
  --fg-muted: #59616d;
  --fg-subtle: #98a1ad;
  /* Lines */
  --line: #e5e8ee;
  --line-strong: #d3d9e2;
  --border: #e5e8ee;
  --border-strong: #d3d9e2;
  --border-hover: var(--line-strong);
  /* Brand: Orange — bleibt (Logo-treu) */
  --accent: #ff6d5a;
  --accent-hover: #ff5742;
  --accent-fg: #ffffff;
  --accent-weak: rgba(255, 109, 90, 0.11);
  --brand: var(--accent);
  --brand-hover: var(--accent-hover);
  --brand-press: #e2492f;
  --brand-soft: var(--accent-weak);
  --brand-ring: rgba(255, 109, 90, 0.30);
  --brand-700: var(--brand-press);
  --primary-soft: var(--brand-soft);
  /* Brand: Cyan — vertieft für Kontrast auf Weiß (CTA/Links/Badges) */
  --cyan: #0a9ec2;
  --cyan-hover: #0bb2da;
  --cyan-fg: #ffffff;
  --cyan-weak: rgba(10, 158, 194, 0.12);
  /* Status */
  --success: var(--cyan);
  --success-soft: var(--cyan-weak);
  --success-ink: #0a7e9c;
  --warning: #c9821e;
  --warning-soft: rgba(201, 130, 30, 0.14);
  --warning-ink: #8a570f;
  --danger: #e23b54;
  --danger-soft: rgba(226, 59, 84, 0.11);
  --danger-ink: #c01f3a;
  /* Effekte — weicher, farbige Akzente bleiben */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow:    0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.10), 0 2px 4px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 18px 44px rgba(16, 24, 40, 0.16), 0 6px 14px rgba(16, 24, 40, 0.08);
  --shadow-key: 0 2px 8px rgba(16, 24, 40, 0.08);
  --shadow-cta: 0 6px 18px rgba(10, 158, 194, 0.32);
  --glow-active: 0 0 0 1px var(--accent), 0 0 16px rgba(255, 109, 90, 0.18);
  --glow-done:   0 0 0 1px var(--cyan),   0 0 14px rgba(10, 158, 194, 0.16);
  --ring-focus:  0 0 0 3px rgba(10, 158, 194, 0.28);
  --paper: var(--bg);
  --subtle: var(--surface-2);
}
/* Light-Mode: hartkodierte Dunkel-Flächen überschreiben */
[data-theme="light"] body {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%,    rgba(255, 109, 90, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(10, 158, 194, 0.06), transparent 70%),
    var(--bg);
}
[data-theme="light"] #sidebar { background: #ffffff; border-right-color: var(--line); }
[data-theme="light"] #topbar  { background: rgba(255, 255, 255, 0.74); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #ccd2db; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #b4bcc7; }
[data-theme="light"] .badge,
[data-theme="light"] .tag,
[data-theme="light"] .tag-stone { background: rgba(15, 23, 42, 0.05); color: var(--fg-muted); }
[data-theme="light"] #login-view::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 109, 90, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(10, 158, 194, 0.08), transparent 50%),
    radial-gradient(circle, rgba(15, 23, 42, 0.045) 1px, transparent 1px) 0 0 / 18px 18px;
}
[data-theme="light"] .modal-backdrop { background: rgba(15, 23, 42, 0.32); }
[data-theme="light"] .modal-foot { background: rgba(15, 23, 42, 0.025); }
[data-theme="light"] .wf-canvas {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 109, 90, 0.06), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(10, 158, 194, 0.06), transparent 50%),
    radial-gradient(circle, rgba(15, 23, 42, 0.05) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--surface);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--fg);
  font: 14.5px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' 1, 'zero' 1;
  /* Atmosphäre — zwei subtile radiale Gradients über Near-Black */
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%,    rgba(255, 109, 90, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(0, 217, 255, 0.06),  transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
::selection { background: color-mix(in oklab, var(--cyan) 25%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }
.tabular, code, pre, .mono, .font-mono { font-variant-numeric: tabular-nums slashed-zero; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -.022em; color: var(--fg); font-weight: 700; }
h1 { font-size: 24px; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; letter-spacing: -.012em; }
a { color: var(--cyan); text-decoration: none; font-weight: 550; }
a:hover { color: var(--cyan-hover); text-decoration: underline; text-underline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--fg-muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.error { color: var(--danger); min-height: 1.2em; margin: 8px 0 0; font-size: 13px; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.right { text-align: right; white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; }
.ic { display: inline-block; vertical-align: -3px; flex: none; }

/* ---- Buttons (Pipeline: Cyan = primary CTA, Ghost = sekundär, Orange = Bedeutung) ---- */
button, .btn {
  font: 700 13.5px var(--font); cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-md);
  border: 1px solid var(--cyan); background: var(--cyan); color: var(--cyan-fg);
  letter-spacing: -.005em;
  transition: background .15s ease, border-color .15s ease, box-shadow .2s ease, color .15s ease;
  text-decoration: none; white-space: nowrap; }
button:hover, .btn:hover { background: var(--cyan-hover); border-color: var(--cyan-hover); box-shadow: var(--shadow-cta); }
button:active, .btn:active { transform: translateY(.5px); }
button:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
button.primary, .btn.primary { background: var(--cyan); border-color: var(--cyan); color: var(--cyan-fg); }
button.ghost, .btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); box-shadow: none; }
button.ghost:hover, .btn.ghost:hover { background: var(--surface); border-color: var(--fg); }
button.danger, .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button.danger:hover, .btn.danger:hover { background: var(--danger); border-color: var(--danger); filter: brightness(1.06); box-shadow: 0 0 18px rgba(255, 90, 111, .3); }
button.xs, .btn.xs { padding: 6px 12px; font-size: 12px; font-weight: 600; }
/* AI-Buttons: neutral Outline mit Orange-Akzent (Bedeutung "schaltet KI"). */
button.ai, .btn.ai { background: var(--surface); color: var(--fg); border-color: var(--line-strong); }
button.ai:hover, .btn.ai:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 14px rgba(255, 109, 90, .18); }
button.ai .ai-spark { background: var(--accent); }
button:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none !important; }
.iconbtn { padding: 6px; width: 32px; height: 32px; background: transparent; color: var(--fg-muted);
  border: 1px solid var(--line); box-shadow: none; }
.iconbtn:hover { background: var(--surface); color: var(--fg); border-color: var(--line-strong); }
.iconbtn.xs { width: 26px; height: 26px; padding: 0; }
.ai-spark { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---- Forms ---- */
label.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 550;
  color: var(--ink); min-width: 200px; flex: 1; }
label.fld > span { font-size: 13px; }
label.fld small { font-weight: 400; color: var(--fg-muted); }
input, select, textarea {
  font: 14px var(--font); padding: 9px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); background: var(--surface); color: var(--fg); width: 100%;
  transition: border-color .14s ease, box-shadow .14s ease; }
textarea { resize: vertical; font-family: var(--font); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring); }
input::placeholder, textarea::placeholder { color: var(--fg-subtle); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
input[type=color] { padding: 2px; height: 38px; }

/* ---- Login ---- */
#login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden; }
#login-view::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 109, 90, 0.10), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 217, 255, 0.10),  transparent 50%),
    radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 18px 18px;
  opacity: 1; }
.login-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 36px; width: 100%; max-width: 400px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 40px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.04em; color: var(--fg); text-transform: lowercase; }
.brand-name .dot { color: var(--accent); }

/* ---- Sendral Feder-Logo (KI, echtes transparentes PNG — kein Blend-Trick,
   funktioniert auf jedem Hintergrund inkl. Mobile). Fällt beim Laden rein
   + weht gelegentlich. ---- */
.brand-mark { display: inline-flex; align-items: flex-end; transform-origin: 50% 88%;
  animation: sndr-fall 1.7s cubic-bezier(.22,.68,.32,1) both; }
.brand-feather { display: block; transform-origin: 50% 88%;
  animation: sndr-wind 9s ease-in-out 2s infinite; will-change: transform; }
.login-card .brand-feather { height: 42px; }
.side-brand .brand-feather { height: 34px; }
@keyframes sndr-fall {
  0%   { transform: translate(7px,-52px) rotate(-17deg); opacity: 0; }
  28%  { opacity: 1; }
  46%  { transform: translate(-5px,-5px) rotate(7deg); }
  72%  { transform: translate(2px,0) rotate(-5deg); }
  100% { transform: translate(0,0) rotate(-3deg); }
}
@keyframes sndr-wind {            /* meist ruhig, ab und zu eine Böe */
  0%, 56%, 100% { transform: rotate(0deg); }
  61% { transform: rotate(5deg); }
  67% { transform: rotate(-2deg); }
  73% { transform: rotate(2.5deg); }
  80% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark, .brand-feather { animation: none; }
}
form { display: flex; flex-direction: column; gap: 14px; }

/* ---- App shell ---- */
#app-view { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: 56px 1fr;
  grid-template-areas: "sidebar topbar" "sidebar content"; min-height: 100vh; }
#sidebar { grid-area: sidebar; background: #0a0a0a; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 12px; gap: 2px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 9px; padding: 6px 10px 22px; }
.side-brand svg { width: 32px; height: 24px; }
.side-brand .brand-name { font-size: 17px; }
#nav { display: flex; flex-direction: column; gap: 2px; }
.navbtn { height: 38px; justify-content: flex-start; gap: 10px; background: transparent; color: var(--fg-muted);
  border: 1px solid transparent; font-weight: 500; font-size: 14px; padding: 0 12px; border-radius: var(--r-md);
  box-shadow: none; transition: background .15s ease, color .15s ease; position: relative; }
.navbtn .ic, .navbtn svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.navbtn:hover { background: var(--surface); color: var(--fg); }
.navbtn.active { background: var(--accent-weak); color: var(--fg); font-weight: 600; }
.navbtn.active::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px;
  width: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); border-radius: 1px; }
.navbtn.active .ic, .navbtn.active svg { opacity: 1; color: var(--accent); }
.nav-sec { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-subtle); padding: 18px 12px 6px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 14px;
  border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 8px 10px; font-size: 13px; color: var(--fg-muted); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none;
  box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(255, 109, 90, .25); }

#topbar { grid-area: topbar; background: rgba(15, 15, 15, .72);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 24px; position: sticky; top: 0; z-index: 5; }
#page-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.012em; color: var(--fg); }
#topbar-actions { display: flex; gap: 8px; }
/* Status-Bar Variante als Topbar-Live-Indicator */
#topbar .live-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan); animation: pulse-live 1.8s ease-in-out infinite; }
@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

#view { grid-area: content; padding: 26px clamp(20px, 3vw, 40px); max-width: none; width: 100%; }
.page-sub { color: var(--fg-muted); font-size: 13px; margin: 5px 0 0; font-weight: 400; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; }
.page-head h1 { font-size: 22px; }

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; box-shadow: none; margin-bottom: 18px; position: relative; }
.card-elev { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: 24px; box-shadow: var(--shadow-key); }
.card > h2 { margin-bottom: 3px; }
.card > h2 + .muted { margin: 0 0 16px; font-size: 13px; }
.card-row { display: flex; gap: 16px; flex-wrap: wrap; }
.card-row > .card { flex: 1; min-width: 260px; margin-bottom: 0; }
.split { display: flex; gap: 16px; flex-wrap: wrap; }
.split > * { flex: 1; min-width: 320px; }

/* ---- KPI ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow-sm); }
.kpi-v { font-family: var(--font-display); font-size: 26px; font-weight: 680; letter-spacing: -.02em; color: var(--ink); }
.kpi-l { color: var(--fg-muted); font-size: 12.5px; margin-top: 5px; font-weight: 500; }

/* ---- Table ---- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; padding: 10px 14px; background: var(--surface-2); color: var(--fg-muted);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border); }
th:first-child { border-top-left-radius: var(--r-sm); }
th:last-child { border-top-right-radius: var(--r-sm); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--inset); }
td code.mono { color: var(--fg-subtle); word-break: break-all; }

/* ---- Badges / Tags (Pipeline-Familie) ---- */
.badge, .tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .06); color: var(--fg-muted);
  border: 1px solid transparent; letter-spacing: .005em; white-space: nowrap; }
.badge.b-active, .badge.ok, .tag-cyan { background: var(--cyan-weak); color: var(--cyan); }
.badge.b-unsubscribed, .badge.warn, .tag-butter { background: var(--warning-soft); color: var(--warning-ink); }
.badge.b-blocklisted, .badge.bad, .tag-rose { background: var(--danger-soft); color: var(--danger-ink); }
.tag-orange { background: var(--accent-weak); color: var(--accent); }
.tag-stone { background: rgba(255, 255, 255, .06); color: var(--fg-muted); }

/* ---- Quickstart ---- */
.qs { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.qs:last-child { border-bottom: 0; }
.qs-n { width: 30px; height: 30px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border-strong); color: var(--fg-muted);
  display: flex; align-items: center; justify-content: center; font-weight: 650; font-size: 13px; flex: none; }
.qs-done .qs-n { background: var(--brand); color: #fff; border-color: var(--brand); }
.qs-t { flex: 1; }

.connfields { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
.connfields .fld { min-width: 300px; }

/* ---- Toast ---- */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface-raised); color: var(--fg); padding: 11px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 500;
  z-index: 100; max-width: 90vw; }
#toast.toast-err { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ---- Modal ---- */
#modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 9, 10, .72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-inner { position: relative; background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-inner.wide  { max-width: 1180px; }
.modal-inner.xwide { max-width: 1400px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .25); }
.modal-close { width: 32px; height: 32px; padding: 0; background: transparent; color: var(--fg-muted);
  border-color: transparent; box-shadow: none; }
.modal-close:hover { background: var(--surface-2); color: var(--ink); border-color: transparent; }

/* ---- Empty state ---- */
.empty { text-align: center; padding: 52px 20px; color: var(--fg-muted); }
.empty-ic { position: relative; width: 52px; height: 52px; margin: 0 auto 16px; border: 1px solid var(--border);
  border-radius: var(--r); background: var(--brand-soft); color: var(--brand); display: flex; align-items: center;
  justify-content: center; }
.empty-ic .ic { width: 26px; height: 26px; }
.empty-ic .m-dot, .empty-ic .m-zig { display: none; }
.empty h3 { color: var(--ink); margin-bottom: 6px; font-size: 17px; font-weight: 640; }
.empty p { margin: 0 auto 18px; max-width: 420px; font-size: 13.5px; }

/* ---- AI panel ---- */
.ai-box { border: 1px solid var(--border); border-radius: var(--r); padding: 16px; background: var(--inset); margin-top: 12px; }
.ai-out { white-space: pre-wrap; font-size: 13px; }
.ai-tag { display: inline-block; font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand); padding: 3px 8px; border-radius: var(--r-full); }

/* ---- Visual email builder ---- */
.tb-wrap { display: grid; grid-template-columns: 200px 1fr 320px; gap: 16px; align-items: start; }
.tb-palette, .tb-props { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); }
.tb-palette-t, .tb-props-t { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-subtle); margin-bottom: 12px; }
.tb-pal { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: flex-start; background: var(--surface);
  border: 1px solid var(--border); color: var(--fg); margin-bottom: 6px; height: 38px; font-weight: 500; font-size: 13px; box-shadow: none; }
.tb-pal:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--ink); }
.tb-pal-ic { width: 18px; display: inline-flex; color: var(--fg-muted); }
.tb-canvas-wrap { display: flex; justify-content: center; }
.tb-canvas { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px;
  width: 100%; max-width: 640px; min-height: 360px; box-shadow: var(--shadow); }
.tb-canvas.tb-mobile { max-width: 380px; }
.tb-block { position: relative; background: var(--surface); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 12px 14px; margin: 6px 0; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.tb-block:hover { border-color: var(--border-strong); }
.tb-block.tb-selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.tb-ctrls { position: absolute; top: 6px; right: 6px; display: none; gap: 4px; }
.tb-block:hover .tb-ctrls, .tb-block.tb-selected .tb-ctrls { display: flex; }
.tb-props .fld { margin-bottom: 12px; }
@media (max-width: 1100px) { .tb-wrap { grid-template-columns: 1fr; } .tb-canvas { max-width: 100%; } }

/* ---- Visual journey canvas ---- */
.jcanvas { display: flex; flex-direction: column; align-items: center; padding: 16px; width: 100%; max-width: 560px; }
.jn { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 14px 16px; width: 320px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .12s ease, box-shadow .12s ease; }
.jn:hover { box-shadow: var(--shadow-md); }
.jn-sel { box-shadow: 0 0 0 3px var(--brand-ring); border-color: var(--brand); }
.jn-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.jn-ic { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); border-radius: 7px; }
.jn-b { font-size: 13px; color: var(--fg-muted); margin-top: 6px; }
.jn-edge { width: 2px; height: 26px; background: var(--border-strong); }
.jn-branch { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.jn-yes, .jn-no { font-size: 11px; padding: 3px 9px; border-radius: var(--r-full); font-weight: 600; }
.jn-yes { background: var(--success-soft); color: var(--success-ink); }
.jn-no { background: var(--danger-soft); color: var(--danger-ink); }
.jn-end { background: var(--surface-2); border: 1px dashed var(--border-strong); color: var(--fg-muted);
  border-radius: var(--r-full); padding: 6px 18px; font-size: 12px; font-weight: 600; }
.jn-ctrls { position: absolute; top: 8px; right: 8px; display: none; gap: 4px; }
.jn:hover .jn-ctrls, .jn-sel .jn-ctrls { display: flex; }

/* full-viewport builders */
#view.vfull { max-width: none; padding: 18px clamp(16px, 2vw, 28px); }
.vfull .tb-wrap { grid-template-columns: 210px 1fr 330px; align-items: stretch; min-height: calc(100vh - 168px); }
.vfull .tb-palette, .vfull .tb-props { align-self: start; position: sticky; top: 80px; }
.vfull .tb-canvas-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  min-height: calc(100vh - 188px); overflow: auto; align-items: flex-start; padding: 32px 16px; box-shadow: var(--shadow-sm);
  background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.vfull .tb-canvas { border: 0; min-height: auto; box-shadow: none; background: transparent; }
.vfull .jcanvas { margin: 0 auto; }
[data-drag] { cursor: grab; }
[data-drag]:active { cursor: grabbing; }
.drag-ghost { opacity: .4; }
.dz-on { outline: 2px dashed var(--brand); outline-offset: -8px; background: var(--brand-soft); }
.jn.dz-target, .tb-block.dz-target { border-color: var(--brand) !important; box-shadow: 0 0 0 3px var(--brand-ring) !important; }

@media (max-width: 900px) {
  #app-view { grid-template-columns: 1fr; grid-template-areas: "topbar" "content"; }
  #sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%);
    transition: transform .2s ease; width: 248px; box-shadow: var(--shadow-lg); }
  #app-view.nav-open #sidebar { transform: translateX(0); }
  #view { padding: 18px 16px; }
  .page-head { flex-direction: column; }
}

/* ---- Free-canvas graph journey editor ---- */
.gcanvas { position: relative; width: 2400px; height: 1500px; }
.gedges { position: absolute; left: 0; top: 0; pointer-events: none; }
.ge-line { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.ge-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.gnode { position: absolute; width: 218px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; cursor: grab; user-select: none;
  transition: border-color .12s ease, box-shadow .12s ease; }
.gnode:active { cursor: grabbing; }
.gnode.sel { box-shadow: 0 0 0 3px var(--brand-ring); border-color: var(--brand); }
.gnode.link-target { outline: 2px dashed var(--brand); outline-offset: 3px; }
.gnode-h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--ink); }
.gnode-ic { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); border-radius: 7px; flex: none; }
.gnode-b { font-size: 12px; color: var(--fg-muted); margin-top: 6px; min-height: 14px; }
.gnode-x { position: absolute; top: -10px; right: -10px; width: 22px; height: 22px; padding: 0;
  background: var(--surface); color: var(--fg-muted); border: 1px solid var(--border-strong); border-radius: 50%;
  box-shadow: var(--shadow-sm); display: none; align-items: center; justify-content: center; }
.gnode:hover .gnode-x, .gnode.sel .gnode-x { display: flex; }
.gnode-x:hover { color: var(--danger); border-color: var(--danger); background: var(--surface); }
.gport { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--brand);
  border: 2px solid var(--surface); padding: 0; box-shadow: 0 0 0 1px var(--border-strong); }
.gport:hover { box-shadow: 0 0 0 4px var(--brand-ring); }
.gport.in { left: -8px; top: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: default; }
.gport.out { right: -8px; cursor: crosshair; }
.gport-l { position: absolute; right: 16px; top: -5px; font-size: 10px; font-weight: 600;
  background: var(--surface-2); color: var(--fg-muted); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.vfull .tb-canvas-wrap:has(.gcanvas) { padding: 0; }

/* ---- Excel-Style: Filter direkt in den Tabellen-Headern ---- */
.hdr-filter thead tr:first-child th { border-bottom: 0; padding-bottom: 4px; }
.hdr-filter-row th { padding: 6px 12px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.hdr-f { width: 100%; min-width: 80px; padding: 5px 8px; font-size: 12px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
  color: var(--fg); height: auto; }
.hdr-f:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-ring); }
/* Multi-Select-Chips im Spalten-Header (Branche kann mehrere Werte haben) */
.hdr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 4px; }
.hdr-chips .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-ring);
  border-radius: 999px; font-size: 11px; line-height: 1.4; }
.hdr-chips .chip-x { background: transparent; border: 0; color: var(--brand);
  cursor: pointer; padding: 0 4px; font-size: 12px; line-height: 1; opacity: .7; }
.hdr-chips .chip-x:hover { opacity: 1; }

/* ---- Spalten-Modal: ziehbare Reihen ---- */
.cols-row { font-size: 13px; margin: 4px 0; padding: 6px 8px; border: 1px solid transparent;
  border-radius: var(--r-sm); cursor: grab; background: transparent; transition: background .12s ease; }
.cols-row:hover { background: var(--inset); }
.cols-row.lib-drag { opacity: .35; cursor: grabbing; }
.cols-row.drop-on { outline: 2px dashed var(--brand); outline-offset: -2px; background: var(--brand-soft); }
.cols-grip { color: var(--fg-subtle); font-size: 16px; line-height: 1; padding: 0 2px; cursor: grab; user-select: none; }
.cols-grip:active { cursor: grabbing; }

/* ---- Media library / picker ---- */
.mp-up { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px;
  border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; }
.mp-item { position: relative; }
.mp-pick { width: 100%; aspect-ratio: 1/1; padding: 0; background: var(--inset);
  border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; box-shadow: none; }
.mp-pick:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); background: var(--inset); }
.mp-pick img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mp-del { position: absolute; top: -8px; right: -8px; display: none; }
.mp-item:hover .mp-del { display: inline-flex; }
.mp-del:hover { color: var(--danger); border-color: var(--danger); }
.logo-prev { max-height: 56px; max-width: 240px; object-fit: contain;
  background: var(--inset); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px; }

/* ---- Full media library page ---- */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.lib-item { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border);
  border-radius: var(--r); background: var(--surface); padding: 12px; box-shadow: var(--shadow-sm); }
.lib-thumb { aspect-ratio: 4/3; background: var(--inset); border: 1px solid var(--border);
  border-radius: var(--r-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lib-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lib-name { font-size: 12.5px; font-weight: 550; color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.lib-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lib-acts { display: flex; gap: 6px; margin-top: 2px; }
.lib-acts .btn, .lib-acts button { flex: 1; padding: 5px 6px; }
.lib-item.lib-on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.lib-item.lib-drag { opacity: .45; }
.lib-check { position: absolute; top: 10px; left: 10px; width: 18px; height: 18px;
  accent-color: var(--brand); z-index: 1; cursor: pointer; }
.lib-item { position: relative; }

/* media: folder rail + layout + bulk bar */
.lib-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.lib-rail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 10px; box-shadow: var(--shadow-sm); position: sticky; top: 80px; }
.lib-fold { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: flex-start;
  background: transparent; border: 1px solid transparent; color: var(--fg-muted); box-shadow: none;
  padding: 7px 10px; font-weight: 500; font-size: 13px; border-radius: var(--r-sm); margin-bottom: 2px; }
.lib-fold:hover { background: var(--surface-2); color: var(--ink); }
.lib-fold.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lib-fold .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.lib-fold .lib-n { font-size: 11px; color: var(--fg-subtle); }
.lib-fold.drop-on { background: var(--brand-soft); outline: 2px dashed var(--brand); outline-offset: -2px; }
.lib-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--brand-soft); border: 1px solid var(--brand); border-radius: var(--r-sm);
  padding: 8px 12px; margin-bottom: 14px; }
@media (max-width: 860px) { .lib-wrap { grid-template-columns: 1fr; } .lib-rail { position: static; } }

/* email preview modal */
.pv-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pv-wrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 14px; display: flex; justify-content: center; }
.pv-if { width: 100%; height: 62vh; border: 0; background: #fff; border-radius: 4px;
  box-shadow: var(--shadow-sm); transition: width .15s ease; }
.pv-wrap.pv-mobile .pv-if { width: 390px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ============================================================
   Pipeline-Design-System — neue Komponenten (statt zusätzlich,
   nicht statt-bestehendem). Quelle: PIPELINE_DESIGN_SYSTEM.md.
   ============================================================ */

/* ---- Status-Dots (Pipeline) ---- */
.dot { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; }
.dot-live    { background: var(--cyan);   box-shadow: 0 0 8px var(--cyan); }
.dot-active  { background: var(--accent); box-shadow: 0 0 8px rgba(255, 109, 90, .5); }
.dot-warn    { background: var(--warning); }
.dot-down    { background: var(--danger); }
.dot-idle    { background: var(--fg-subtle); }

/* ---- Status-Bar (oben in der Stage; siehe topbar :: dot-live) ---- */
.status-bar { display: flex; align-items: center; gap: 12px; height: 56px;
  background: rgba(15, 15, 15, .6); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 16px; font-size: 13px; }
.status-bar .sep { color: var(--line-strong); }
.status-bar code, .status-bar .badge-mono { font-family: var(--font-mono); font-size: 12px;
  background: var(--surface); padding: 2px 8px; border-radius: var(--r-xs);
  border: 1px solid var(--line); color: var(--fg-muted); }

/* ---- Workflow-Canvas — die Signatur-Komponente ---- */
.wf-canvas {
  padding: 32px 24px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 109, 90, 0.06), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 217, 255, 0.06),  transparent 50%),
    radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: auto;
}
.wf-flow { display: flex; align-items: stretch; gap: 0; }
.wf-node { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 14px 16px; min-width: 150px; position: relative; transition: box-shadow 200ms ease, border-color 200ms ease; }
.wf-node-head { display: flex; align-items: center; gap: 8px; color: var(--fg-muted); }
.wf-node-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.wf-node-title { font-size: 13px; font-weight: 600; color: var(--fg); margin-top: 4px; letter-spacing: -.005em; }
.wf-node-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); margin-top: 4px; }
.wf-node.done { border-color: var(--cyan); box-shadow: var(--glow-done); }
.wf-node.done .wf-node-head { color: var(--cyan); }
.wf-node.active { border-color: var(--accent); box-shadow: var(--glow-active);
  animation: pulse-active 1.8s ease-in-out infinite; }
.wf-node.active .wf-node-head { color: var(--accent); }
.wf-node.pending { border-color: var(--line); opacity: .7; }
@keyframes pulse-active {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(255, 109, 90, 0.25); }
  50%      { box-shadow: 0 0 0 1px var(--accent), 0 0 36px rgba(255, 109, 90, 0.45); }
}
.wf-edge { flex: 1; height: 2px; align-self: center; position: relative; min-width: 28px; }
.wf-edge.done { background: var(--cyan); box-shadow: 0 0 12px rgba(0, 217, 255, 0.40); }
.wf-edge.gradient { background: linear-gradient(90deg, var(--cyan), var(--accent)); }
.wf-edge.pending { background: var(--line); }
@keyframes edge-fill {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}
.wf-edge.filling {
  background: linear-gradient(90deg, var(--cyan) 50%, var(--line) 50%);
  background-size: 200% 100%;
  animation: edge-fill 800ms cubic-bezier(.16, 1, .3, 1) forwards;
}

/* ---- Mini-Live-Log (Mono-Konsole unter Canvas / Postausgang-Log) ---- */
.live-log {
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.8;
}
.live-log .done    { color: var(--cyan); }
.live-log .active  { color: var(--accent); }
.live-log .pending { color: var(--fg-subtle); }
.live-log .err     { color: var(--danger); }

/* ---- Hero-Headline mit Gradient-Wort ---- */
.hero-headline { font-family: var(--font-display); font-size: 60px; font-weight: 700;
  line-height: 1.02; letter-spacing: -.030em; color: var(--fg); max-width: 18ch; }
.gradient-word { background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }

/* ---- Existing Journey-Editor: Pipeline-Bedeutung mappen ----
   .gnode bleibt das aktive Element. Wir geben ihm done/active-Klassen,
   sodass Marketing-Journeys denselben visuellen Code wie Workflow-Nodes
   sprechen können (sobald der JS-Layer Status-Klassen setzt). */
.gnode.done   { border-color: var(--cyan);   box-shadow: var(--glow-done); }
.gnode.active { border-color: var(--accent); box-shadow: var(--glow-active);
  animation: pulse-active 1.8s ease-in-out infinite; }
.gnode-ic { background: var(--accent-weak); color: var(--accent); }
.gnode.done .gnode-ic { background: var(--cyan-weak); color: var(--cyan); }

/* ---- Inputs: focus ring → Cyan (matches Pipeline-System) ---- */
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: var(--ring-focus);
}
input[type=checkbox] { accent-color: var(--cyan); }
