:root {
  --nvz-surface: #F7F8FB;
  --nvz-card: #FFFFFF;
  --nvz-ink: #1B1F2A;
  --nvz-muted: #8A93A6;
  --nvz-accent: #4553F5;
  --nvz-border: #E2E5EF;
  --nvz-radius: 12px;
}
[data-theme="dark"] {
  --nvz-surface: #12172B;
  --nvz-card: #1A2036;
  --nvz-ink: #EDEFF7;
  --nvz-muted: #8A93A6;
  --nvz-border: #2A3050;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--nvz-surface);
  color: var(--nvz-ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.nvz-surface { background: var(--nvz-surface); color: var(--nvz-ink); }
.nvz-display, .nvz-h1 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.01em; }
.nvz-h1 { font-size: 22px; font-weight: 600; }
.nvz-mono { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.nvz-muted { color: var(--nvz-muted); }
.nvz-border { border-color: var(--nvz-border); }
.nvz-link { color: var(--nvz-accent); cursor: pointer; background: none; border: none; padding: 0; }
.nvz-link:hover { text-decoration: underline; }

.nvz-card {
  background: var(--nvz-card);
  border: 1px solid var(--nvz-border);
  border-radius: var(--nvz-radius);
  box-shadow: 0 1px 2px rgba(20,25,50,.04);
}

.nvz-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--nvz-border);
  background: var(--nvz-card);
  color: var(--nvz-ink);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: outline-color 150ms ease;
}
.nvz-input:focus { outline: 2px solid var(--nvz-accent); outline-offset: 1px; }
.nvz-label { display: block; font-size: 12.5px; font-weight: 500; margin-bottom: 6px; color: var(--nvz-muted); }

.nvz-btn-primary, .nvz-btn-secondary, .nvz-btn-danger, .nvz-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  cursor: pointer; border: 1px solid transparent; transition: opacity 150ms ease, background 150ms ease;
}
.nvz-btn-primary { background: var(--nvz-accent); color: white; }
.nvz-btn-primary:hover { opacity: .92; }
.nvz-btn-secondary { background: var(--nvz-card); color: var(--nvz-ink); border-color: var(--nvz-border); }
.nvz-btn-secondary:hover { background: var(--nvz-surface); }
.nvz-btn-danger { background: #E5484D1a; color: #E5484D; border-color: #E5484D55; }
.nvz-btn-danger:hover { background: #E5484D2a; }
.nvz-btn-ghost { background: transparent; color: var(--nvz-muted); }
.nvz-btn-ghost:hover { color: var(--nvz-ink); }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-pulse { animation: nvz-pulse 1.8s ease-in-out infinite; }
@keyframes nvz-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .badge-pulse { animation: none; } }

.nvz-chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--nvz-border); background: var(--nvz-card);
  font-size: 13px; cursor: pointer; color: var(--nvz-muted);
}
.nvz-chip.active { background: var(--nvz-accent); color: white; border-color: var(--nvz-accent); }

.nvz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nvz-table th { text-align: left; font-weight: 500; color: var(--nvz-muted); font-size: 12.5px; padding: 10px 16px; border-bottom: 1px solid var(--nvz-border); }
.nvz-table td { padding: 10px 16px; border-bottom: 1px solid var(--nvz-border); }
.nvz-table tr:last-child td { border-bottom: none; }
.nvz-row-clickable { cursor: pointer; }
.nvz-row-clickable:hover { background: var(--nvz-surface); }

.nvz-dl { display: grid; grid-template-columns: 140px 1fr; row-gap: 8px; font-size: 14px; }
.nvz-dl dt { color: var(--nvz-muted); }

.nvz-sidebar {
  width: 232px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--nvz-card); border-right: 1px solid var(--nvz-border);
}
.nvz-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 8px;
  font-size: 14px; color: var(--nvz-muted); margin: 2px 0; text-decoration: none;
}
.nvz-nav-item:hover { background: var(--nvz-surface); color: var(--nvz-ink); }
.nvz-nav-item.active { background: var(--nvz-accent); color: white; }

.nvz-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; border-bottom: 1px solid var(--nvz-border); background: var(--nvz-card);
}
.nvz-icon-btn { padding: 6px; border-radius: 8px; border: 1px solid var(--nvz-border); background: var(--nvz-card); cursor: pointer; color: var(--nvz-muted); }
.nvz-icon-btn:hover { color: var(--nvz-ink); }
.nvz-avatar {
  width: 32px; height: 32px; border-radius: 999px; background: var(--nvz-accent); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.nvz-dropdown {
  position: absolute; top: 36px; left: 0; right: 0; background: var(--nvz-card); border: 1px solid var(--nvz-border);
  border-radius: 10px; box-shadow: 0 6px 20px rgba(20,25,50,.12); max-height: 320px; overflow-auto; z-index: 40;
}
.nvz-dropdown-item { display: block; padding: 8px 14px; font-size: 13px; text-decoration: none; color: var(--nvz-ink); }
.nvz-dropdown-item:hover { background: var(--nvz-surface); }

.nvz-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,18,35,.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.nvz-modal { background: var(--nvz-card); border-radius: var(--nvz-radius); padding: 24px; width: 100%; max-width: 460px; max-height: 90vh; overflow-auto; }

.nvz-toast-root { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.nvz-toast {
  background: var(--nvz-ink); color: var(--nvz-surface); padding: 10px 16px; border-radius: 10px; font-size: 14px;
  opacity: 0; transform: translateY(8px); transition: opacity 200ms ease, transform 200ms ease;
}
.nvz-toast.show { opacity: 1; transform: translateY(0); }
.nvz-toast-error { background: #E5484D; color: white; }

.nvz-error-box { background: #E5484D1a; border: 1px solid #E5484D55; color: #b23338; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
[data-theme="dark"] .nvz-error-box { color: #ff9a9d; }
.nvz-empty { text-align: center; color: var(--nvz-muted); padding: 28px; font-size: 14px; }
.nvz-loading { color: var(--nvz-muted); padding: 24px; font-size: 14px; }

.pipeline-node { cursor: default; }
.pipeline-node:hover circle { filter: brightness(1.1); }

/* Utility classes used inline (kept minimal — no Tailwind build step) */
.flex{display:flex}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-center{align-items:center}
.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}
.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.min-h-screen{min-height:100vh}.min-w-0{min-width:0}
.w-full{width:100%}.max-w-sm{max-width:24rem}.max-w-md{max-width:28rem}.max-w-2xl{max-width:42rem}
.mx-auto{margin-left:auto;margin-right:auto}.p-4{padding:16px}.p-5{padding:20px}.p-6{padding:24px}.p-8{padding:32px}
.px-2{padding-left:8px;padding-right:8px}.px-4{padding-left:16px;padding-right:16px}.px-5{padding-left:20px;padding-right:20px}
.py-2{padding-top:8px;padding-bottom:8px}.py-3{padding-top:12px;padding-bottom:12px}.py-4{padding-top:16px;padding-bottom:16px}
.py-5{padding-top:20px;padding-bottom:20px}.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}
.mt-4{margin-top:16px}.mt-5{margin-top:20px}.mt-6{margin-top:24px}.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}
.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.space-y-2>*+*{margin-top:8px}
.space-y-3>*+*{margin-top:12px}.space-y-6>*+*{margin-top:24px}.grid{display:grid}.grid-cols-1{grid-template-columns:1fr}
.gap-6{gap:24px}.rounded{border-radius:10px}.font-medium{font-weight:500}.font-semibold{font-weight:600}
.font-normal{font-weight:400}.text-xs{font-size:11px}.text-sm{font-size:13px}.text-lg{font-size:17px}
.text-xl{font-size:19px}.text-2xl{font-size:22px}.text-3xl{font-size:28px}.text-center{text-align:center}
.hidden{display:none}.relative{position:relative}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}
.divide-y>*+*{border-top:1px solid var(--nvz-border)}.border-b{border-bottom:1px solid var(--nvz-border)}
.border-t{border-top:1px solid var(--nvz-border)}.border-l-2{border-left:2px solid}.flex-wrap{flex-wrap:wrap}
.whitespace-nowrap{white-space:nowrap}.list-disc{list-style:disc}.list-inside{list-style-position:inside}
.tracking-widest{letter-spacing:.2em}.inline-flex{display:inline-flex}
@media (min-width: 768px) {
  .md\:grid-cols-3{grid-template-columns:repeat(3,1fr)}.md\:grid-cols-4{grid-template-columns:repeat(4,1fr)}
  .grid-cols-2{grid-template-columns:repeat(2,1fr)}
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2{grid-template-columns:repeat(2,1fr)}.lg\:grid-cols-3{grid-template-columns:repeat(3,1fr)}
  .lg\:col-span-2{grid-column:span 2 / span 2}
}
.grid-cols-2{grid-template-columns:repeat(2,1fr)}

/* Additional utility classes (found via usage audit) */
.h-4{height:16px}.w-4{width:16px}.h-auto{height:auto}.w-24{width:96px}.w-28{width:112px}.w-40{width:160px}
.w-auto{width:auto !important}.mb-0{margin-bottom:0}.mb-5{margin-bottom:20px}.mb-8{margin-bottom:32px}
.mt-0{margin-top:0}.p-3{padding:12px}.pl-3{padding-left:12px}.pt-3{padding-top:12px}.py-1{padding-top:4px;padding-bottom:4px}
.space-y-0>*+*{margin-top:0}.hover\:underline:hover{text-decoration:underline}
input[type="checkbox"]{width:auto}
