/* NetSystem Global Site Effects */
#ns-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--hlcolor, #1a73e8), #00d2ff, #7928ca);
  z-index: 999999;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(26, 115, 232, 0.7), 0 0 5px rgba(0, 210, 255, 0.5);
  transition: width 0.08s ease-out;
}

#ns-effect-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99998;
  pointer-events: none;
  opacity: 1;
}

#ns-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  margin-left: -190px;
  margin-top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.16) 0%, rgba(0, 210, 255, 0.07) 40%, rgba(26, 115, 232, 0) 70%);
  pointer-events: none;
  z-index: 99997;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  /* Fade Out: Brisk initial drop (0-300ms down to ~35%), then slow, delicate lingering tail (up to 1.2s) */
  transition: opacity 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform, opacity;
}

#ns-cursor-glow.active {
  opacity: 1;
  /* Fade In: Rapid initial response (0-150ms to ~78%), then soft ease-out landing into 100% */
  transition: opacity 0.45s cubic-bezier(0.16, 0.8, 0.25, 1);
}

/* Floating interactive effect widget */
#ns-effect-switcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99999;
  font-family: var(--fontfamily, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 13px;
  user-select: none;
}

.ns-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 115, 232, 0.28);
  color: #1e293b;
  padding: 8px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
}

.ns-switcher-btn:hover {
  background: #ffffff;
  border-color: var(--hlcolor, #1a73e8);
  box-shadow: 0 6px 22px rgba(26, 115, 232, 0.25);
  transform: translateY(-2px);
}

.ns-switcher-icon {
  font-size: 15px;
  display: inline-block;
  animation: ns-pulse-spin 4s ease-in-out infinite;
}

@keyframes ns-pulse-spin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(15deg) scale(1.15); }
}

.ns-switcher-menu {
  position: absolute;
  bottom: 48px;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 6px;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#ns-effect-switcher.open .ns-switcher-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ns-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #334155;
  font-size: 12.5px;
  transition: all 0.15s ease;
}

.ns-switcher-item:hover {
  background: rgba(26, 115, 232, 0.08);
  color: var(--hlcolor, #1a73e8);
}

.ns-switcher-item.active {
  background: rgba(26, 115, 232, 0.12);
  color: var(--hlcolor, #1a73e8);
  font-weight: 600;
}

@media (max-width: 768px) {
  #ns-cursor-glow {
    display: none !important;
  }
  #ns-effect-switcher {
    bottom: 14px;
    right: 14px;
  }
  .ns-switcher-label {
    display: none;
  }
  .ns-switcher-btn {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ns-effect-canvas,
  #ns-cursor-glow {
    display: none !important;
  }
}

.htmlbox341 #cw-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(226, 232, 240, 0.6);
  z-index: 99999;
}
.htmlbox341 #cw-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #059669);
  transition: width 0.12s ease-out;
}
.htmlbox341 .cw-root {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  font-family: 'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  line-height: 1.65;
  box-sizing: border-box;
}
.htmlbox341 .cw-root *,
.htmlbox341 .cw-root *::before,
.htmlbox341 .cw-root *::after {
  box-sizing: border-box;
}
.htmlbox341 .cw-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e1b4b 100%);
  color: #f8fafc;
  padding: 40px 36px;
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.35);
  margin-bottom: 36px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.htmlbox341 .cw-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.htmlbox341 .cw-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.htmlbox341 .cw-badge-primary {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.4);
}
.htmlbox341 .cw-badge-accent {
  background: rgba(124, 58, 237, 0.25);
  color: #ddd6fe;
  border: 1px solid rgba(167, 139, 250, 0.4);
}
.htmlbox341 .cw-badge-mono {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.htmlbox341 .cw-hero-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #ffffff;
}
.htmlbox341 .cw-hero-title code {
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 0.92em;
}
.htmlbox341 .cw-hero-subtitle {
  font-size: 16.5px;
  color: #cbd5e1;
  max-width: 980px;
  margin: 0 0 28px;
}
.htmlbox341 .cw-hero-subtitle code {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}
.htmlbox341 .cw-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.htmlbox341 .cw-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
}
.htmlbox341 .cw-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 4px;
}
.htmlbox341 .cw-stat-lbl {
  font-size: 13px;
  color: #cbd5e1;
}
.htmlbox341 .cw-stat-lbl code {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}
.htmlbox341 .cw-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.htmlbox341 .cw-toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, transform 0.15s;
}
.htmlbox341 .cw-toc-link:hover {
  background: rgba(59, 130, 246, 0.28);
  color: #ffffff !important;
  transform: translateY(-1px);
}
.htmlbox341 .cw-toc-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Sections */
.htmlbox341 .cw-section {
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}
.htmlbox341 .cw-sec-header {
  margin-bottom: 22px;
}
.htmlbox341 .cw-sec-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #dbeafe;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.htmlbox341 .cw-sec-title {
  font-size: clamp(22px, 2.6vw, 29px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.htmlbox341 .cw-sec-desc {
  font-size: 15.5px;
  color: #475569;
  margin: 0;
  max-width: 960px;
}

/* Architecture Interactive Map */
.htmlbox341 .cw-arch-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
.htmlbox341 .cw-arch-svg-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 18px;
}
.htmlbox341 .cw-arch-svg {
  width: 100%;
  min-width: 780px;
  height: auto;
  display: block;
}
.htmlbox341 .cw-svg-zone-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  fill: #475569;
}
.htmlbox341 .cw-svg-node-title {
  font-size: 13.5px;
  font-weight: 800;
  fill: #0f172a;
}
.htmlbox341 .cw-svg-node-sub {
  font-size: 11.5px;
  fill: #475569;
}
.htmlbox341 .cw-svg-node-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  fill: #2563eb;
}
.htmlbox341 .cw-svg-edge-lbl {
  font-size: 10.5px;
  font-weight: 700;
}
.htmlbox341 .cw-arch-node {
  cursor: pointer;
  transition: opacity 0.15s;
}
.htmlbox341 .cw-arch-node:hover rect,
.htmlbox341 .cw-arch-node.is-active rect {
  fill: #eff6ff;
  stroke-width: 3.5px;
  filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.2));
}
.htmlbox341 .cw-arch-inspector {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #2563eb;
  border-radius: 12px;
  padding: 20px 24px;
}
.htmlbox341 .cw-inspector-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 3px 9px;
  border-radius: 5px;
  margin-bottom: 6px;
}
.htmlbox341 .cw-inspector-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #0f172a;
}
.htmlbox341 .cw-inspector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.htmlbox341 .cw-inspector-body p {
  margin: 0 0 10px;
  font-size: 14.5px;
}
.htmlbox341 .cw-inspector-body ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}

/* Cards & Grids */
.htmlbox341 .cw-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 20px;
}
@media (max-width: 600px) {
  .htmlbox341 .cw-grid-2 {
    grid-template-columns: 1fr;
  }
}
.htmlbox341 .cw-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.htmlbox341 .cw-mt-2 { margin-top: 12px; }
.htmlbox341 .cw-mt-3 { margin-top: 18px; }
.htmlbox341 .cw-mt-4 { margin-top: 22px; }
.htmlbox341 .cw-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
}
.htmlbox341 .cw-subhead {
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
}

/* Tables */
.htmlbox341 .cw-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.htmlbox341 .cw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.htmlbox341 .cw-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #cbd5e1;
}
.htmlbox341 .cw-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.htmlbox341 .cw-table tr:hover td {
  background: #f8fafc;
}

/* Code Blocks */
.htmlbox341 .cw-code {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 18px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  overflow-x: auto;
  margin: 0 0 12px;
  border: 1px solid #1e293b;
}
.htmlbox341 .cw-code-tall {
  max-height: 520px;
  overflow-y: auto;
}
.htmlbox341 code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 5px;
}
.htmlbox341 .cw-code code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Callouts */
.htmlbox341 .cw-callout {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 12px;
}
.htmlbox341 .cw-callout-info {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  color: #1e3a8a;
}
.htmlbox341 .cw-callout-warn {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  color: #78350f;
}
.htmlbox341 .cw-small-note {
  font-size: 13.5px;
  color: #475569;
  margin: 8px 0 0;
}

/* Endpoints Grid */
.htmlbox341 .cw-endpoint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.htmlbox341 .cw-endpoint-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}
.htmlbox341 .cw-ep-head {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.htmlbox341 .cw-method-post {
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
}
.htmlbox341 .cw-compact-list,
.htmlbox341 .cw-feature-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.8px;
}
.htmlbox341 .cw-compact-list li,
.htmlbox341 .cw-feature-list li {
  margin-bottom: 6px;
}

/* Simulator Card */
.htmlbox341 .cw-sim-card,
.htmlbox341 .cw-explorer-card {
  background: #ffffff;
  border: 2px solid #dbeafe;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.12);
}
.htmlbox341 .cw-sim-header,
.htmlbox341 .cw-explorer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.htmlbox341 .cw-sim-title {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 4px;
}
.htmlbox341 .cw-sim-sub {
  font-size: 14px;
  color: #475569;
  margin: 0;
}
.htmlbox341 .cw-sim-controls {
  display: flex;
  gap: 8px;
}
.htmlbox341 .cw-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.htmlbox341 .cw-btn-primary {
  background: #2563eb;
  color: #ffffff;
}
.htmlbox341 .cw-btn-primary:hover {
  background: #1d4ed8;
}
.htmlbox341 .cw-btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.htmlbox341 .cw-btn-secondary:hover {
  background: #e2e8f0;
}
.htmlbox341 .cw-btn-ghost {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.htmlbox341 .cw-sim-Track {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.htmlbox341 .cw-sim-step {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}
.htmlbox341 .cw-sim-step.is-active {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}
.htmlbox341 .cw-sim-stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.htmlbox341 .cw-sim-pane {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}
.htmlbox341 .cw-sim-pane-head {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #334155;
  margin-bottom: 10px;
}
.htmlbox341 .cw-sim-pane-body {
  font-size: 14px;
  color: #1e293b;
}
.htmlbox341 .cw-sim-code {
  margin: 0;
  min-height: 170px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Pipeline Steps */
.htmlbox341 .cw-pipeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.htmlbox341 .cw-pipe-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}
.htmlbox341 .cw-pipe-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: #ede9fe;
  color: #5b21b6;
  padding: 2px 8px;
  border-radius: 5px;
  margin-bottom: 6px;
}
.htmlbox341 .cw-pipe-step strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.htmlbox341 .cw-pipe-step p {
  font-size: 13px;
  color: #475569;
  margin: 0;
}

/* Tabs */
.htmlbox341 .cw-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.htmlbox341 .cw-tab-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s;
}
.htmlbox341 .cw-tab-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.htmlbox341 .cw-prompt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Details / Accordions */
.htmlbox341 .cw-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.htmlbox341 .cw-details {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
}
.htmlbox341 .cw-summary {
  padding: 16px 20px;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  list-style: none;
}
.htmlbox341 .cw-summary::-webkit-details-marker {
  display: none;
}
.htmlbox341 .cw-summary-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 800;
  background: #dbeafe;
  color: #1e40af;
  padding: 3px 9px;
  border-radius: 6px;
}
.htmlbox341 .cw-summary-title {
  font-size: 15.5px;
  color: #0f172a;
}
.htmlbox341 .cw-details-body {
  padding: 18px 20px;
  border-top: 1px solid #e2e8f0;
}

/* Footer */
.htmlbox341 .cw-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #475569;
}
.htmlbox341 .cw-back-top {
  color: #2563eb !important;
  font-weight: 700;
  text-decoration: none !important;
}
