:root {
  --nv-bg-0: #0b0613;
  --nv-bg-1: #12081f;
  --nv-surface: rgba(18, 12, 32, 0.86);
  --nv-surface-strong: rgba(15, 10, 26, 0.92);
  --nv-text: #f3efff;
  --nv-muted: #c9c0e8;
  --nv-dim: #9d8fcb;
  --nv-purple: #a78bfa;
  --nv-purple-strong: #7c3aed;
  --nv-pink: #ec4899;
  --nv-cyan: #22d3ee;
  --nv-ok: #34d399;
  --nv-warn: #fbbf24;
  --nv-danger: #fb7185;
  --nv-border: rgba(255, 255, 255, 0.1);
  --nv-border-strong: rgba(167, 139, 250, 0.28);
  --nv-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --nv-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.35);
  --nv-radius-sm: 8px;
  --nv-radius-md: 12px;
  --nv-radius-lg: 16px;
  --nv-radius-xl: 20px;
  --nv-focus: 0 0 0 3px rgba(167, 139, 250, 0.35);
  --nv-nav-height: 64px;
  --nv-footer-height: 28px;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--nv-bg-1);
}

body.nv-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--nv-text);
  font-family: Inter, "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 900px at 20% 10%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(900px 700px at 80% 20%, rgba(236, 72, 153, 0.22), transparent 60%),
    radial-gradient(1000px 800px at 60% 85%, rgba(34, 211, 238, 0.13), transparent 55%),
    linear-gradient(180deg, var(--nv-bg-0), var(--nv-bg-1));
  overflow-x: hidden;
}

body.nv-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-radial-gradient(
    circle at 10% 10%,
    rgba(255, 255, 255, 0.04) 0 1px,
    transparent 1px 9px
  );
  filter: blur(0.2px);
  opacity: 0.2;
}

.nv-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  min-height: var(--nv-nav-height);
  border-bottom: 1px solid var(--nv-border);
  background: linear-gradient(180deg, rgba(15, 8, 28, 0.9), rgba(15, 8, 28, 0.68));
  backdrop-filter: blur(10px);
}

.nv-topbar .container-fluid {
  max-width: 1240px;
  padding: 11px 20px;
}

.nv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nv-text) !important;
  font-weight: 700;
  letter-spacing: 0;
}

.nv-brand img {
  width: 34px;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(124, 58, 237, 0.85));
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
  object-fit: contain;
}

.nv-brand-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nv-brand-mark span {
  color: var(--nv-dim);
  font-size: 12px;
  font-weight: 500;
}

.nv-topbar .navbar-toggler {
  border-color: var(--nv-border);
  border-radius: var(--nv-radius-md);
  box-shadow: none;
}

.nv-nav {
  align-items: center;
  gap: 8px;
}

.nv-nav .nav-item {
  padding: 0;
}

.nv-nav .nav-link,
.nv-nav .btn,
.nv-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 8px;
  padding: 8px 12px !important;
  border: 1px solid var(--nv-border) !important;
  border-radius: 999px !important;
  color: var(--nv-muted) !important;
  background: rgba(0, 0, 0, 0.18) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.nv-nav .nav-link:hover,
.nv-nav .btn:hover,
.nv-pill:hover,
.nv-nav .show > .nav-link {
  color: var(--nv-text) !important;
  border-color: rgba(167, 139, 250, 0.42) !important;
  background: rgba(167, 139, 250, 0.1) !important;
  transform: translateY(-1px);
}

.nv-nav .btn-outline-success,
.nv-nav .btn-outline-info {
  color: var(--nv-text) !important;
  border-color: rgba(167, 139, 250, 0.55) !important;
  background: rgba(167, 139, 250, 0.14) !important;
}

.nv-topbar .dropdown-menu {
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-md);
  background: rgba(15, 10, 26, 0.98);
  box-shadow: var(--nv-shadow-soft);
  padding: 8px;
}

.nv-topbar .dropdown-item {
  border-radius: 9px;
  color: var(--nv-muted);
  font-size: 13px;
}

.nv-topbar .dropdown-item:hover,
.nv-topbar .dropdown-item:focus {
  color: var(--nv-text);
  background: rgba(167, 139, 250, 0.12);
}

.nv-main {
  flex: 1 0 auto;
  min-height: calc(100vh - var(--nv-nav-height) - var(--nv-footer-height));
}

.nv-footer {
  flex: 0 0 auto;
  min-height: var(--nv-footer-height);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(201, 192, 232, 0.72);
  background: linear-gradient(180deg, rgba(15, 8, 28, 0.92), rgba(11, 6, 19, 0.98));
  font-size: 11px;
  line-height: 1.2;
}

.nv-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1240px, 100%);
  min-height: var(--nv-footer-height);
  margin: 0 auto;
  padding: 4px 20px;
}

.nv-footer a {
  color: #fde68a;
  text-decoration: none;
}

.nv-footer a:hover {
  color: #fbbf24;
}

.nv-page {
  min-height: calc(100vh - var(--nv-nav-height) - var(--nv-footer-height));
  padding: 24px 20px 72px;
}

.nv-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.nv-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 18px;
}

.nv-hero h1 {
  margin: 0;
  color: var(--nv-text);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
}

.nv-hero p {
  max-width: 72ch;
  margin: 8px 0 0;
  color: var(--nv-muted);
  line-height: 1.5;
}

.nv-status-badge,
.nv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--nv-border-strong);
  border-radius: 999px;
  color: var(--nv-text);
  background: rgba(167, 139, 250, 0.1);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nv-status-badge span:last-child {
  color: #fde68a;
}

.nv-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--nv-purple), var(--nv-pink));
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

.nv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.nv-card {
  overflow: hidden;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-xl);
  background: linear-gradient(180deg, var(--nv-surface), rgba(10, 6, 18, 0.62));
  box-shadow: var(--nv-shadow);
}

.nv-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.nv-card-header h2,
.nv-card-header h3 {
  margin: 0;
  color: var(--nv-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.nv-card-header p {
  margin: 6px 0 0;
  color: var(--nv-muted);
  font-size: 13px;
  line-height: 1.4;
}

.nv-card-body {
  padding: 16px;
}

.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nv-radius-md);
  color: var(--nv-text);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}

.nv-btn:hover {
  color: var(--nv-text);
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.1);
  transform: translateY(-1px);
}

.nv-btn-primary {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(124, 58, 237, 1));
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.35);
}

.nv-btn-secondary {
  color: var(--nv-muted);
  background: transparent;
}

.nv-btn-danger:hover {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.12);
}

.nv-empty {
  padding: 18px;
  border: 1px dashed rgba(167, 139, 250, 0.36);
  border-radius: var(--nv-radius-lg);
  color: var(--nv-muted);
  background: rgba(167, 139, 250, 0.08);
  font-size: 13px;
  line-height: 1.45;
}

.overlay-hidden {
  display: none;
}

.nv-home {
  display: flex;
  align-items: center;
}

.nv-home-original-bg {
  background: url("/static/images/watercolor-neuron.png") no-repeat center center fixed;
  background-size: cover;
}

.nv-home-original-bg::before {
  content: "";
  position: fixed;
  inset: var(--nv-nav-height) 0 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 6, 19, 0.72), rgba(11, 6, 19, 0.32), rgba(11, 6, 19, 0.72));
}

.nv-home-panel {
  position: relative;
  z-index: 1;
  min-height: min(720px, calc(100vh - 160px));
  display: flex;
  align-items: center;
}

.nv-home-copy {
  max-width: 760px;
}

.nv-home-copy h1 {
  margin: 0;
  color: var(--nv-text);
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.58);
}

.nv-home-copy p {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--nv-muted);
  font-size: 16px;
  line-height: 1.55;
}

.nv-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.nv-user-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--nv-muted);
  font-size: 13px;
}

.nv-google-signin img {
  display: block;
  width: 200px;
  height: auto;
  border-radius: var(--nv-radius-sm);
}

.nv-google-signin {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--nv-radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--nv-shadow-soft);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.nv-google-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.nv-code-link {
  color: #fde68a;
  text-decoration: none;
}

.nv-code-link:hover {
  color: #fbbf24;
}

.nv-code-link code,
.nv-chip code {
  color: inherit;
}

.nv-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--nv-muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 600;
}

.nv-chip strong {
  color: var(--nv-text);
}

.nv-tasks-layout {
  display: block;
}

.nv-task-toolbar {
  display: flex;
  justify-content: flex-end;
  order: -100000;
  margin-bottom: 14px;
}

.nv-sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-lg);
  background: rgba(0, 0, 0, 0.16);
}

.nv-sort-control label {
  color: var(--nv-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nv-sort-control select {
  min-height: 34px;
  padding: 6px 32px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nv-radius-md);
  color: var(--nv-text);
  background:
    linear-gradient(45deg, transparent 50%, rgba(201, 192, 232, 0.85) 50%),
    linear-gradient(135deg, rgba(201, 192, 232, 0.85) 50%, transparent 50%),
    rgba(0, 0, 0, 0.2);
  background-position:
    calc(100% - 17px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px),
    0 0;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px, auto;
  font-size: 13px;
  font-weight: 700;
  appearance: none;
}

.nv-sort-control select:focus {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: var(--nv-focus);
  outline: none;
}

.nv-queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nv-task-card {
  border-radius: var(--nv-radius-lg);
  order: var(--nv-sort-order, 0);
}

.nv-task-card:not([data-namespace-card]) {
  order: 100000;
}

.nv-task-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.nv-task-title {
  flex: 1 1 auto;
  min-width: 0;
}

.nv-task-title h2 {
  margin: 0;
  color: var(--nv-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.nv-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.nv-task-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nv-icon-button {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.nv-chevron {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.14s ease;
}

.nv-task-toggle[aria-expanded="true"] .nv-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.nv-task-panel {
  padding: 0 16px 16px;
}

.nv-task-panel[hidden],
.nv-tab-panel[hidden] {
  display: none !important;
}

.nv-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nv-tab-button {
  min-height: 36px;
  margin-bottom: -1px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--nv-radius-md) var(--nv-radius-md) 0 0;
  color: var(--nv-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.nv-tab-button:hover,
.nv-tab-button.active {
  color: var(--nv-text);
  border-color: rgba(167, 139, 250, 0.28);
  border-bottom-color: rgba(15, 10, 26, 0.95);
  background: rgba(167, 139, 250, 0.12);
}

.nv-tab-panel {
  max-height: 34vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 var(--nv-radius-md) var(--nv-radius-md) var(--nv-radius-md);
  background: rgba(0, 0, 0, 0.16);
}

.nv-contact-note {
  margin: 8px 0 0;
  text-align: center;
}

.nv-contact-note a {
  color: var(--nv-pink);
}

.nv-content-page {
  background:
    radial-gradient(900px 620px at 15% 10%, rgba(167, 139, 250, 0.16), transparent 56%),
    radial-gradient(820px 620px at 92% 18%, rgba(34, 211, 238, 0.1), transparent 58%);
}

.nv-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
}

.nv-prose {
  color: var(--nv-muted);
  font-size: 15px;
  line-height: 1.65;
}

.nv-prose h1,
.nv-prose h2,
.nv-prose h3 {
  color: var(--nv-text);
  letter-spacing: 0;
}

.nv-prose h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
}

.nv-prose h2 {
  margin-top: 34px;
  font-size: 24px;
}

.nv-prose > h2:first-child {
  margin-top: 0;
}

.nv-prose h3 {
  margin-top: 24px;
  font-size: 19px;
}

.nv-prose a {
  color: var(--nv-cyan);
}

.nv-prose a:hover {
  color: var(--nv-text);
}

.nv-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 24px;
}

.nv-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-lg);
  background: rgba(255, 255, 255, 0.9);
}

.nv-logo-card.nv-logo-card-dark {
  background: rgba(0, 0, 0, 0.22);
}

.nv-logo-card img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.nv-toc {
  position: sticky;
  top: calc(var(--nv-nav-height) + 24px);
}

.nv-toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nv-toc-button {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--nv-radius-md);
  color: var(--nv-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.nv-toc-button:hover {
  color: var(--nv-text);
  border-color: rgba(167, 139, 250, 0.28);
  background: rgba(167, 139, 250, 0.1);
}

.nv-toc-h2 {
  padding-left: 18px;
  font-size: 12px;
}

.nv-toc-h3 {
  padding-left: 30px;
  color: var(--nv-dim);
  font-size: 12px;
}

.nv-table-wrap {
  overflow: auto;
}

.nv-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  color: var(--nv-text);
  font-size: 12px;
}

.nv-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--nv-muted);
  background: rgba(10, 6, 18, 0.9);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.nv-table td {
  padding: 9px 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fde68a;
  white-space: nowrap;
}

.nv-table tbody tr:hover td {
  background: rgba(167, 139, 250, 0.06) !important;
}

.nv-modal .modal-content,
.nv-body .toast,
.nv-body #toast.toast {
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-lg);
  color: var(--nv-text);
  background: var(--nv-surface-strong);
  box-shadow: var(--nv-shadow-soft);
}

.nv-modal .modal-header,
.nv-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.nv-modal .modal-title {
  color: var(--nv-text);
}

.nv-workspace-body {
  overflow: hidden;
}

.nv-workspace-page.basic,
.nv-workspace-page.interTask {
  position: relative;
  height: calc(100vh - var(--nv-nav-height) - var(--nv-footer-height));
  overflow: hidden;
  background:
    radial-gradient(900px 640px at 18% 6%, rgba(167, 139, 250, 0.18), transparent 58%),
    radial-gradient(780px 560px at 88% 18%, rgba(34, 211, 238, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(11, 6, 19, 0.98), rgba(18, 8, 31, 0.98));
}

.sidemenu.nv-workspace-sidepanel {
  right: 0;
  display: flex;
  width: 330px;
  height: calc(100vh - var(--nv-nav-height) - var(--nv-footer-height));
  border-left: 1px solid var(--nv-border);
  background: rgba(15, 10, 26, 0.9);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
  transition: width 0.18s ease;
  z-index: 30;
}

.sidebar.nv-sidepanel-rail {
  flex: 0 0 42px;
  width: 42px;
  float: none;
  border-right: 1px solid var(--nv-border);
  background: rgba(0, 0, 0, 0.18);
}

.nv-sidepanel-toggle {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: 16px;
  border: 0;
  color: var(--nv-muted);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.12s ease, background 0.12s ease;
}

.nv-sidepanel-toggle:hover {
  color: var(--nv-text);
  background: rgba(167, 139, 250, 0.1);
}

.sidecontent.nv-workspace-sidecontent {
  float: none;
  width: calc(100% - 42px);
  height: 100%;
  margin: 0;
  padding: 14px 12px 28px;
  background: transparent !important;
}

.nv-workspace-sidecontent > .sideContentBox {
  width: 100%;
  max-height: none !important;
  margin: 0 0 10px;
  padding-bottom: 0;
  border: 1px solid var(--nv-border) !important;
  border-radius: var(--nv-radius-lg);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: none;
}

.nv-workspace-sidecontent > .sideContentBox:first-child {
  max-height: 34vh !important;
}

.nv-instructions-panel {
  max-height: 30%;
}

.nv-instruction-media {
  display: flex;
  justify-content: center;
  margin: 1vh 0;
}

.nv-workspace-sidecontent .sideContentTitle {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  color: var(--nv-text);
  background: rgba(255, 255, 255, 0.035);
  font-family: Inter, "Open Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.nv-workspace-sidecontent .sideContentInfo {
  padding: 10px 12px;
  color: var(--nv-muted);
  font-family: Inter, "Open Sans", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.nv-workspace-sidecontent .prompt {
  color: var(--nv-muted);
}

.nv-panel-note {
  padding-bottom: 0 !important;
  color: var(--nv-dim) !important;
}

.nv-workspace-sidecontent .sideContentInput {
  display: block;
  width: 100%;
  padding: 10px 12px 12px;
}

.nv-workspace-sidecontent .sideContentTextArea,
.nv-workspace-sidecontent .tagify {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nv-radius-md);
  color: var(--nv-text);
  background: rgba(0, 0, 0, 0.22);
}

.nv-workspace-sidecontent .tagify {
  padding: 4px 6px;
  overflow: visible;
  flex-wrap: wrap !important;
  --tags-border-color: transparent;
  --tag-bg: rgba(167, 139, 250, 0.22);
  --tag-hover: rgba(167, 139, 250, 0.32);
  --tag-text-color: var(--nv-text);
  --tag-remove-bg: rgba(0, 0, 0, 0.2);
  --tag-remove-btn-color: var(--nv-muted);
  --placeholder-color: rgba(201, 192, 232, 0.68);
  --placeholder-color-focus: rgba(201, 192, 232, 0.86);
}

.nv-workspace-sidecontent .tagify__tag {
  margin: 3px;
  border-radius: 999px;
}

.nv-workspace-sidecontent .tagify__tag > div {
  color: var(--nv-text);
  border: 1px solid rgba(167, 139, 250, 0.34);
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.24);
}

.nv-workspace-sidecontent .tagify__tag:hover > div {
  background: rgba(167, 139, 250, 0.34);
}

.nv-workspace-sidecontent .tagify__tag__removeBtn {
  color: var(--nv-muted);
}

.nv-workspace-sidecontent .tagify__tag-text {
  color: var(--nv-text);
}

.nv-workspace-sidecontent .tagify__input {
  min-width: 120px;
  color: var(--nv-text);
}

.nv-workspace-sidecontent .tagify__input::before {
  color: rgba(201, 192, 232, 0.68);
}

.nv-task-info-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nv-info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 6px 8px;
  align-items: start;
}

.nv-info-row span {
  grid-column: 1 / -1;
  color: var(--nv-dim);
  font-size: 11px;
  font-weight: 700;
}

.nv-info-row code {
  grid-column: 1;
  overflow: hidden;
  padding: 7px 8px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 9px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.08);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nv-copy-button {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--nv-border);
  border-radius: 9px;
  color: var(--nv-muted);
  background: rgba(0, 0, 0, 0.16);
}

.nv-copy-button:hover {
  color: var(--nv-text);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.12);
}

.nv-task-details {
  margin-top: 2px;
}

.nv-task-details summary {
  cursor: pointer;
  color: var(--nv-muted);
  font-size: 12px;
  font-weight: 700;
}

.nv-task-details[open] summary {
  margin-bottom: 8px;
  color: var(--nv-text);
}

.nv-panel-action {
  width: 100%;
  margin-top: 8px;
}

.nv-plugin-panel {
  overflow: hidden;
}

.nv-plugin-panel .nv-plugin-details {
  width: 100%;
}

.nv-plugin-panel .nv-plugin-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  gap: 8px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.nv-plugin-panel .nv-plugin-summary::-webkit-details-marker {
  display: none;
}

.nv-plugin-name {
  overflow: hidden;
  max-width: 112px;
  color: var(--nv-muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nv-plugin-summary .fa-chevron-down {
  color: var(--nv-dim);
  font-size: 11px;
  transition: transform 0.12s ease;
}

.nv-plugin-details:not([open]) .nv-plugin-summary .fa-chevron-down {
  transform: rotate(-90deg);
}

.nv-plugin-body {
  max-height: min(42vh, 360px);
  overflow-y: auto;
  overflow-x: hidden;
}

.nv-plugin-panel-collapsed .nv-plugin-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.nv-plugin-input-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.nv-plugin-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  margin: 0;
}

.nv-plugin-label {
  overflow-wrap: anywhere;
  color: var(--nv-dim);
  font-size: 11px;
  font-weight: 700;
}

.nv-workspace-sidecontent .nv-plugin-control {
  min-width: 0;
  min-height: 36px;
  max-width: 100%;
  padding: 8px 9px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
}

.nv-workspace-sidecontent textarea.nv-plugin-control {
  min-height: 76px;
  max-height: 150px;
  overflow-y: auto;
  resize: vertical;
}

.nv-workspace-sidecontent select.nv-plugin-control {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-plugin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--nv-muted);
  font-size: 12px;
}

.nv-plugin-checkbox-row span {
  overflow-wrap: anywhere;
}

.nv-plugin-checkbox {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
}

.nv-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--nv-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nv-toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
}

.leftFormatting.nv-workspace-main {
  position: relative;
  top: 0;
  left: 0;
  width: calc(100% - 330px);
  height: 100%;
  margin: 0;
  display: flex;
  transition: width 0.18s ease;
}

.left.nv-workspace-stage {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 8px 6px 10px 10px;
  gap: 8px;
  min-height: 0;
  align-items: stretch;
  box-sizing: border-box;
}

.nv-workspace-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 10px;
  box-sizing: border-box;
}

.nv-decision-bar,
.nv-action-bar {
  flex: 0 0 auto;
  width: 100%;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-lg);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--nv-shadow-soft);
}

.nv-decision-bar {
  order: 1;
  padding: 10px;
}

.nv-decision-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.nv-decision-header strong {
  display: block;
  color: var(--nv-text);
  font-size: 14px;
  letter-spacing: 0;
}

.nv-section-label {
  display: block;
  color: var(--nv-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.bottomBar.forcedChoiceForm.nv-decision-options {
  width: 100%;
  max-height: none;
  gap: 8px;
  justify-content: center;
}

.nv-decision-wrapper {
  flex: 0 0 164px;
  width: 164px;
  min-width: 164px;
  max-width: 164px;
}

.forcedChoiceButton.nv-decision-button {
  width: 100%;
  min-height: 46px;
  height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--nv-radius-md);
  color: #fff;
  font-family: Inter, "Open Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  transition: transform 0.12s ease, border-color 0.12s ease, filter 0.12s ease;
}

.forcedChoiceButton.nv-decision-button > div {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.forcedChoiceButton.nv-decision-button:hover,
.forcedChoiceButton.nv-decision-button.active {
  border-color: rgba(255, 255, 255, 0.72);
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.nv-decision-color-blue { background: #2563eb; }
.nv-decision-color-cyan { background: #0891b2; }
.nv-decision-color-emerald { background: #059669; }
.nv-decision-color-lime { background: #65a30d; }
.nv-decision-color-amber { background: #ca8a04; }
.nv-decision-color-orange { background: #ea580c; }
.nv-decision-color-red { background: #dc2626; }
.nv-decision-color-pink { background: #db2777; }
.nv-decision-color-purple { background: #9333ea; }
.nv-decision-color-indigo { background: #4f46e5; }
.nv-decision-color-teal { background: #0f766e; }
.nv-decision-color-green { background: #15803d; }
.nv-decision-color-ochre { background: #a16207; }
.nv-decision-color-rose { background: #be123c; }
.nv-decision-color-slate { background: #475569; }

.bottomBar.nv-action-bar {
  order: 3;
  flex: 0 0 auto;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px 4px;
  margin-top: 0;
  overflow: visible;
  z-index: 5;
}

.nv-action-wrapper {
  flex: 0 1 auto;
  min-width: 112px;
  max-width: 170px;
}

.mainButton.nv-action-button {
  width: 100%;
  min-height: 38px;
  height: auto;
  padding: 8px 10px;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nv-radius-md);
  color: var(--nv-text);
  background: rgba(0, 0, 0, 0.22);
  font-family: Inter, "Open Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.mainButton.nv-action-button:hover,
.mainButton.nv-action-button:active {
  border-width: 1px;
  color: var(--nv-text);
  transform: translateY(-1px);
}

.nv-action-button > div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.mainButton.nv-action-success {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(96, 165, 250, 0.16);
}

.mainButton.nv-action-warning {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.16);
}

.mainButton.nv-action-danger {
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(251, 113, 133, 0.16);
}

.mainButton.nv-action-neutral {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(148, 163, 184, 0.14);
}

.mainButton.nv-action-secondary {
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.12);
}

.nv-workspace-stage .hotkeyHint {
  display: block;
  margin: 5px 0 0;
  color: var(--nv-dim);
  font-size: 11px;
  text-align: center;
}

.nv-workspace-stage .forcedChoiceHotkeyHint {
  display: none;
}

.nv-hide-hotkeys .nv-workspace-stage .hotkeyHint {
  display: none !important;
}

.nv-workspace-stage kbd {
  color: var(--nv-text);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  box-shadow: none;
}

.nv-workspace-stage .neuroglancer-container {
  order: 2;
  flex: 1 1 auto;
  align-self: stretch;
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: 0;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-lg);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: var(--nv-shadow);
  box-sizing: border-box;
}

.nv-intertask-card {
  width: min(520px, 90vw);
  margin: auto;
  padding: 24px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-xl);
  background: var(--nv-surface);
  box-shadow: var(--nv-shadow);
}

.tags-look .tagify__dropdown__item {
  border-color: rgba(167, 139, 250, 0.26);
  border-radius: 999px;
  color: var(--nv-text);
  background: rgba(15, 10, 26, 0.96);
}

.tags-look .tagify__dropdown__item--active,
.tags-look .tagify__dropdown__item:hover {
  color: var(--nv-text);
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.18);
}

.nv-tool-lookup-page,
.nv-inspect-lookup-page {
  min-height: calc(100vh - var(--nv-nav-height) - var(--nv-footer-height));
  overflow: auto;
}

.nv-tool-lookup-wrap {
  display: grid;
  align-content: center;
  min-height: calc(100vh - var(--nv-nav-height) - var(--nv-footer-height) - 96px);
}

.nv-tool-lookup-hero {
  width: min(620px, 100%);
  margin: 0 auto 18px;
}

.nv-tool-lookup-card,
.nv-inspect-search-card {
  width: min(620px, 100%);
  margin: 0 auto;
}

.nv-tool-lookup-form {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.nv-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-md);
  background: rgba(0, 0, 0, 0.18);
}

.nv-segmented-control label {
  margin: 0;
  cursor: pointer;
}

.nv-segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nv-segmented-control span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--nv-muted);
  font-size: 13px;
  font-weight: 700;
}

.nv-segmented-control input:checked + span {
  border-color: rgba(245, 158, 11, 0.32);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

.nv-tool-lookup-label,
.nv-inspect-label {
  display: block;
  color: var(--nv-dim);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nv-tool-lookup-row,
.nv-inspect-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.nv-tool-lookup-input,
.nv-inspect-input {
  min-height: 44px;
  min-width: 0;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nv-radius-md);
  color: var(--nv-text);
  background: rgba(0, 0, 0, 0.22);
  font: inherit;
  font-size: 14px;
}

input[type="date"].nv-tool-lookup-input {
  color-scheme: dark;
}

input[type="date"].nv-tool-lookup-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(91%) sepia(30%) saturate(796%) hue-rotate(350deg) brightness(104%) contrast(98%);
  opacity: 0.95;
}

select.nv-tool-lookup-input {
  appearance: none;
}

.nv-tool-lookup-input::placeholder,
.nv-inspect-input::placeholder {
  color: rgba(201, 192, 232, 0.62);
}

.nv-tool-lookup-input:focus,
.nv-inspect-input:focus {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: var(--nv-focus);
  outline: none;
}

.nv-tool-lookup-error,
.nv-inspect-error {
  margin: 10px 0 0;
  color: var(--nv-danger);
  font-size: 13px;
  font-weight: 700;
}

.nv-cell-viewer-options {
  display: grid;
  gap: 10px;
}

.nv-lineage-graph {
  width: 100%;
  min-height: 240px;
  overflow: auto;
}

.nv-lineage-graph svg {
  width: 100%;
  height: auto;
}

.nv-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nv-toggle-grid .nv-toggle-row {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-md);
  background: rgba(0, 0, 0, 0.16);
}

.nv-tool-lookup-submit {
  justify-self: end;
  min-width: 170px;
}

@media (max-width: 640px) {
  .nv-tool-lookup-row,
  .nv-inspect-search-row {
    grid-template-columns: 1fr;
  }

  .nv-toggle-grid {
    grid-template-columns: 1fr;
  }

  .nv-tool-lookup-submit {
    justify-self: stretch;
  }
}

.nv-inspect-action-bar {
  min-height: 58px;
}

.nv-body .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.nv-toast-wrap {
  z-index: 1060;
}

@media (max-width: 980px) {
  .nv-grid,
  .nv-content-layout {
    grid-template-columns: 1fr;
  }

  .nv-hero {
    flex-direction: column;
  }

  .nv-status-badge {
    white-space: normal;
  }

  .nv-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .nv-page {
    padding: 18px 12px 56px;
  }

  .nv-topbar .container-fluid {
    padding-inline: 12px;
  }

  .nv-card-header {
    flex-direction: column;
  }

  .nv-task-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .nv-task-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nv-task-toolbar {
    justify-content: stretch;
  }

  .nv-sort-control {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .nv-sort-control select {
    width: 100%;
  }
}
