    /* ================================================
       STEP 2: Design System — CSS Variables
       ================================================ */
    :root {
      /* Canvas */
      --bg-canvas:       #111113;
      --bg-page:         #0d0d0f;

      /* Text */
      --text-primary:    #f0f0f0;
      --text-secondary:  #9ca3af;
      --text-muted:      #6b7280;

      /* Border */
      --border:          rgba(255,255,255,0.08);

      /* Level colors */
      --color-entry:     #22c55e;   /* Junior/Start */
      --color-junior:    #0dcaf0;   /* Junior */
      --color-middle:    #3b82f6;   /* Middle */
      --color-senior:    #a855f7;   /* Senior */
      --color-lead:      #f59e0b;   /* Lead/Principal */
      --color-head:      #ef4444;   /* Head/VP */
      --color-cpo:       #eab308;   /* CPO */
      --color-branch:    #6b7280;   /* Side branches */
      --color-cta:       #f97316;   /* CTA blocks */
      --color-action:    #0d6efd;   /* Primary button */

      /* Gradients */
      --grad-ai:         linear-gradient(135deg, #7c3aed, #2563eb);
      --grad-abroad:     linear-gradient(135deg, #2563eb, #16a34a);
      --grad-founder:    linear-gradient(135deg, #f97316, #dc2626);

      /* Node */
      --node-bg:         rgba(255,255,255,0.04);
      --node-border:     rgba(255,255,255,0.10);
      --node-radius:     12px;
      --node-shadow:     0 2px 8px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);

      /* Typography */
      --font:            -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      --font-mono:       "SF Mono", "Fira Mono", "Consolas", monospace;

      /* Transitions */
      --trans-fast:      150ms ease-out;
      --trans-normal:    250ms ease-out;
    }

    /* ================================================
       STEP 3: Reset + Base
       ================================================ */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: var(--bg-page);
      font-family: var(--font);
      color: var(--text-primary);
      user-select: none;
      -webkit-user-select: none;
    }

    /* ================================================
       STEP 3: Viewport — clips everything
       ================================================ */
    #viewport {
      position: fixed;
      inset: 0;
      overflow: hidden;
      cursor: grab;
      touch-action: none;
    }

    #viewport.dragging {
      cursor: grabbing;
    }

    /* ================================================
       STEP 3: Canvas — the infinite panning surface
       ================================================ */
    #canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 3000px;
      height: 2100px;
      transform-origin: 0 0;
      will-change: transform;
      /* transform set by JS */
      background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
      background-size: 28px 28px;
    }

    /* ================================================
       STEP 6: SVG connections layer
       ================================================ */
    #connections {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      overflow: visible;
    }

    /* ================================================
       STEP 5: Nodes
       ================================================ */
    .node {
      position: absolute;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: var(--node-radius);
      box-shadow: var(--node-shadow);
      padding: 16px 20px 16px 22px;
      min-width: 220px;
      cursor: pointer;
      transition: transform var(--trans-fast), box-shadow var(--trans-fast);
      backdrop-filter: blur(8px);
    }

    /* Main career nodes — fixed width so the vertical line stays perfectly straight */
    .node:not(.branch):not(.input) {
      width: 220px;
    }

    .node:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.12);
    }

    /* Glowing border when mouse is hovering: only the border ring glows, no directional bleed */
    .node.glow-active {
      box-shadow: var(--node-shadow);
    }

    .node .node-accent {
      width: 3px;
      height: 60%;
      position: absolute;
      left: 0;
      top: 20%;
      border-radius: 0 2px 2px 0;
    }

    .node .node-title {
      font-size: 16px;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.25;
      margin-left: 12px;
      letter-spacing: -0.01em;
    }

    .node .node-subtitle {
      font-size: 12px;
      color: rgba(255,255,255,0.70);
      margin-top: 3px;
      margin-left: 12px;
    }

    .node .node-salary {
      font-family: var(--font-mono);
      font-size: 15px;
      font-weight: 700;
      margin-top: 10px;
      margin-left: 12px;
      letter-spacing: -0.02em;
    }

    .node .node-salary-abroad {
      font-family: var(--font-mono);
      font-size: 11px;
      color: rgba(255,255,255,0.62);
      margin-top: 2px;
      margin-left: 12px;
    }

    /* Branch nodes (smaller, lighter) */
    .node.branch {
      min-width: 180px;
      padding: 11px 16px 11px 20px;
      background: rgba(255,255,255,0.03);
    }

    .node.branch .node-title {
      font-size: 13px;
      font-weight: 600;
    }

    .node.branch .node-salary {
      font-size: 12px;
    }

    /* Input nodes (entry paths) */
    .node.input {
      min-width: 160px;
      padding: 9px 14px 9px 18px;
      border-style: dashed;
      background: rgba(255,255,255,0.02);
    }

    .node.input .node-title {
      font-size: 13px;
      font-weight: 500;
      color: rgba(255,255,255,0.8);
    }

    .node.input .node-subtitle {
      font-size: 11px;
    }

    .node-roles-list {
      list-style: none;
      margin: 8px 0 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .node-roles-list li {
      display: flex;
      align-items: baseline;
      gap: 7px;
      font-size: 12px;
      line-height: 1.3;
    }

    .node-roles-list li::before {
      content: '';
      display: inline-block;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: currentColor;
      opacity: 0.5;
      flex-shrink: 0;
      margin-top: 4px;
    }

    .role-label {
      color: rgba(255,255,255,0.85);
      font-weight: 500;
      white-space: nowrap;
    }

    .role-note {
      color: rgba(255,255,255,0.38);
      font-size: 11px;
      white-space: nowrap;
    }

    /* --- Glowing Effect — border-only conic spotlight ------------------- */
    .glow-layer {
      pointer-events: none;
      position: absolute;
      /* Extend 2px outside the node: ring sits exactly on the border edge */
      inset: -2px;
      border-radius: calc(var(--node-radius) + 2px);
      z-index: 0;
      opacity: 0;
      transition: opacity 0.35s ease;
      /*
       * Conic spotlight: narrow ~80° arc centered at --glow-angle.
       * from = glow-angle - 40° so the gradient peak lands exactly at glow-angle.
       */
      background: conic-gradient(
        from calc(var(--glow-angle, -90deg) - 40deg),
        transparent  0deg,
        var(--glow-c3, rgba(255,255,255,0.08))  8deg,
        var(--glow-c2, rgba(255,255,255,0.35)) 22deg,
        var(--glow-c1, rgba(255,255,255,0.90)) 40deg,
        var(--glow-c2, rgba(255,255,255,0.35)) 58deg,
        var(--glow-c3, rgba(255,255,255,0.08)) 72deg,
        transparent 80deg,
        transparent 360deg
      );
      /* Donut mask: hide the content-box interior, leaving only the 2px ring */
      padding: 2px;
      -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
      mask-composite: exclude;
      /* Subtle bloom — small radius keeps glow localised to the card */
      filter: drop-shadow(0 0 4px var(--glow-c1, rgba(255,255,255,0.7)))
              drop-shadow(0 0 8px var(--glow-c2, rgba(255,255,255,0.4)));
    }

    /* Accent floating blocks */
    .accent-block {
      position: absolute;
      border-radius: 14px;
      padding: 18px 22px;
      color: #fff;
      width: 260px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    }

    .accent-block .ab-label {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      opacity: 0.6;
      margin-bottom: 8px;
    }

    .accent-block .ab-title {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 8px;
      line-height: 1.3;
    }

    .accent-block .ab-body {
      font-size: 12px;
      line-height: 1.55;
      opacity: 0.85;
    }

    .accent-block .ab-cta {
      display: block;
      margin-top: 12px;
      padding: 7px 14px;
      background: rgba(255,255,255,0.18);
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 7px;
      font-size: 12px;
      font-weight: 600;
      color: #fff;
      text-decoration: none;
      text-align: center;
      transition: background var(--trans-fast), transform var(--trans-fast);
    }

    .accent-block .ab-cta:hover {
      background: rgba(255,255,255,0.30);
      transform: translateY(-1px);
    }

    /* ── Services panel (unified left block) ── */
    .services-panel {
      position: absolute;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(249,115,22,0.28);
      border-radius: 16px;
      padding: 20px 24px 22px;
      width: 460px;
      box-shadow: 0 4px 28px rgba(249,115,22,0.08);
    }

    .services-panel .sp-label {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(249,115,22,0.55);
      margin-bottom: 5px;
    }

    .services-panel .sp-title {
      font-size: 17px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 16px;
      line-height: 1.2;
    }

    .services-panel .sp-list {
      display: flex;
      flex-direction: column;
    }

    .services-panel .sp-item {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .services-panel .sp-item:last-child {
      border-bottom: none;
    }

    .services-panel .sp-marker {
      font-size: 12px;
      color: var(--color-cta);
      flex-shrink: 0;
      margin-top: 1px;
      font-weight: 700;
    }

    .services-panel .sp-item-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 2px;
      line-height: 1.35;
    }

    .services-panel .sp-item-desc {
      font-size: 11px;
      color: var(--text-secondary);
      line-height: 1.45;
    }

    .services-panel .sp-cta {
      display: block;
      text-align: center;
      margin-top: 18px;
      padding: 10px 20px;
      background: var(--color-cta);
      color: #fff;
      border-radius: 9px;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      transition: opacity var(--trans-fast);
    }

    .services-panel .sp-cta:hover {
      opacity: 0.88;
    }

    /* ── Individual service cards ── */
    .svc-header-card {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(249,115,22,0.22);
      border-radius: 10px;
      padding: 12px 18px;
    }

    .svc-cards-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 20px;
      row-gap: 16px;
    }

    .svc-header-card .svc-author-tag {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(249,115,22,0.65);
      margin-bottom: 4px;
    }

    .svc-header-card .svc-heading {
      font-size: 15px;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.2;
    }

    .svc-card {
      position: relative;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.09);
      border-top: 2px solid var(--color-cta);
      border-radius: 11px;
      padding: 13px 15px;
      cursor: pointer;
      transition: transform var(--trans-fast), box-shadow var(--trans-fast), border-color var(--trans-fast);
      box-shadow: 0 2px 10px rgba(0,0,0,0.28);
      display: flex;
      flex-direction: column;
    }

    .svc-card:hover {
      transform: translateY(-2px);
      border-color: rgba(249,115,22,0.55);
      box-shadow: 0 6px 22px rgba(249,115,22,0.13), 0 2px 10px rgba(0,0,0,0.4);
    }

    .svc-card .svc-num {
      font-size: 9px;
      font-weight: 700;
      color: var(--color-cta);
      margin-bottom: 5px;
      letter-spacing: 0.10em;
      text-transform: uppercase;
    }

    .svc-card .svc-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 5px;
      line-height: 1.35;
    }

    .svc-card .svc-desc {
      font-size: 11px;
      color: var(--text-secondary);
      line-height: 1.5;
      flex: 1;
      overflow: hidden;
    }

    /* ── Alt-track nodes: Indie, Валютная — accent-block style ── */
    #node-indie,
    #node-remote {
      border: none !important;
      box-shadow: 0 4px 24px rgba(0,0,0,0.5) !important;
      padding: 18px 22px !important;
      min-width: 430px !important;
      width: 430px !important;
    }

    #node-indie   { background: linear-gradient(135deg, #7c3aed, #4f46e5) !important; }
    #node-remote  { background: linear-gradient(135deg, #2563eb, #16a34a) !important; }

    #node-indie .node-accent,
    #node-remote .node-accent { display: none; }

    #node-indie .node-title,
    #node-remote .node-title {
      color: #fff !important;
      margin-left: 0 !important;
      font-size: 14px;
    }

    #node-indie .node-subtitle,
    #node-remote .node-subtitle {
      color: rgba(255,255,255,0.65) !important;
      margin-left: 0 !important;
    }

    #node-indie .node-salary,
    #node-remote .node-salary {
      color: rgba(255,255,255,0.9) !important;
      margin-left: 0 !important;
    }

    #node-indie .node-salary-abroad,
    #node-remote .node-salary-abroad {
      color: rgba(255,255,255,0.55) !important;
      margin-left: 0 !important;
    }

    .svc-cta-card a {
      display: block;
      text-align: center;
      padding: 11px 20px;
      background: var(--color-cta);
      color: #fff;
      border-radius: 9px;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      transition: opacity var(--trans-fast), transform var(--trans-fast);
    }

    .svc-cta-card a:hover {
      opacity: 0.88;
      transform: translateY(-1px);
    }

    /* ── Alt tracks section label ── */
    .alt-track-label {
      position: absolute;
      padding: 9px 14px 9px 18px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.12);
      border-left: 3px solid rgba(255,255,255,0.28);
      border-radius: 8px;
    }

    .alt-track-label .atl-title {
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(255,255,255,0.55);
      margin-bottom: 3px;
    }

    .alt-track-label .atl-sub {
      font-size: 12px;
      color: rgba(255,255,255,0.60);
    }

    /* ── Section background containers ── */
    .svc-section-bg {
      position: absolute;
      background: rgba(249,115,22,0.04);
      border: 1px solid rgba(249,115,22,0.18);
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      padding: 16px 8px;
      gap: 16px;
    }

    .alt-tracks-section-bg {
      position: absolute;
      background: rgba(255,255,255,0.02);
      border: 1px solid rgba(255,255,255,0.09);
      border-radius: 16px;
    }

    .right-branches-bg {
      position: absolute;
      background: rgba(255,255,255,0.015);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 16px;
    }

    .right-branches-divider {
      position: absolute;
      border: none;
      border-top: 1px solid rgba(255,255,255,0.08);
      pointer-events: none;
    }

    .right-branches-group-label {
      position: absolute;
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(255,255,255,0.22);
      pointer-events: none;
    }

    /* ── Animated edge flow ─────────────────────────────────────────── */
    /* Positive dashoffset → 0 makes dashes flow forward (source→target) */
    @keyframes edge-flow-20 { from { stroke-dashoffset:  20; } to { stroke-dashoffset: 0; } }
    @keyframes edge-flow-15 { from { stroke-dashoffset:  15; } to { stroke-dashoffset: 0; } }

    /* Entry node pulse animation */
    @keyframes entry-pulse {
      0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.50), 0 2px 4px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.05); }
      70%  { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0), 0 2px 4px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.05); }
      100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 2px 4px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.05); }
    }
    .node.pulse-entry {
      animation: entry-pulse 2.8s ease-out infinite;
    }

    /* CTA sidebar blocks (legacy, kept for compatibility) */
    .cta-block {
      position: absolute;
      background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(249,115,22,0.06));
      border: 1px solid rgba(249,115,22,0.30);
      border-radius: 14px;
      padding: 18px 20px;
      width: 260px;
      box-shadow: 0 4px 20px rgba(249,115,22,0.10);
    }

    .cta-block .cta-step {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(249,115,22,0.6);
      margin-bottom: 6px;
    }

    .cta-block .cta-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--color-cta);
      margin-bottom: 5px;
      line-height: 1.3;
    }

    .cta-block .cta-subtitle {
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 12px;
      line-height: 1.45;
    }

    .cta-block ul {
      list-style: none;
      margin-bottom: 14px;
    }

    .cta-block ul li {
      font-size: 12px;
      color: var(--text-primary);
      padding: 4px 0;
      padding-left: 16px;
      position: relative;
      line-height: 1.4;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .cta-block ul li:last-child {
      border-bottom: none;
    }

    .cta-block ul li::before {
      content: '→';
      position: absolute;
      left: 0;
      color: var(--color-cta);
      font-size: 11px;
    }

    .cta-block .cta-btn {
      display: block;
      text-align: center;
      padding: 9px 16px;
      background: var(--color-cta);
      color: #fff;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
      transition: opacity var(--trans-fast);
    }

    .cta-block .cta-btn:hover {
      opacity: 0.88;
    }

    /* Info block (stats block, left column) */
    .info-block {
      position: absolute;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 14px;
      padding: 20px 22px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }

    .info-block .ib-salary-grid {
      display: flex;
      gap: 14px;
      margin-bottom: 10px;
    }

    .info-block .ib-col {
      flex: 1;
      min-width: 0;
    }

    .info-block .ib-divider {
      height: 1px;
      background: rgba(255,255,255,0.08);
      margin: 10px 0;
    }

    .info-block .ib-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 14px;
      line-height: 1.3;
    }

    .info-block .ib-section {
      margin-bottom: 12px;
    }

    .info-block .ib-section:last-child {
      margin-bottom: 0;
    }

    .info-block .ib-label {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.10em;
      color: var(--text-muted);
      margin-bottom: 5px;
    }

    .info-block .ib-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      padding: 3px 0;
    }

    .info-block .ib-key {
      font-size: 11px;
      color: var(--text-secondary);
      flex-shrink: 0;
    }

    .info-block .ib-val {
      font-size: 11px;
      color: var(--text-primary);
      font-family: var(--font-mono);
    }

    .info-block .ib-note {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 10px;
      line-height: 1.5;
      font-style: italic;
    }

    /* ================================================
       STEP 8: Tooltip
       ================================================ */
    #tooltip {
      position: fixed;
      z-index: 1000;
      max-width: 280px;
      background: rgba(20, 20, 24, 0.97);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 13px;
      line-height: 1.55;
      color: var(--text-primary);
      box-shadow: 0 8px 32px rgba(0,0,0,0.6);
      pointer-events: none;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity var(--trans-fast), transform var(--trans-fast);
    }

    #tooltip.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ================================================
       STEP 8: Side Panel
       ================================================ */
    #side-panel {
      position: fixed;
      top: 0;
      right: -380px;
      width: 360px;
      height: 100%;
      background: rgba(16, 16, 20, 0.96);
      border-left: 1px solid var(--border);
      backdrop-filter: blur(16px);
      padding: 28px 24px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      z-index: 500;
      transition: right 0.3s ease-out, transform 0.3s ease-out;
      box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    }

    #side-panel.open {
      right: 0;
    }

    #side-panel .sp-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border);
      border-radius: 8px;
      cursor: pointer;
      color: var(--text-secondary);
      font-size: 18px;
      background: none;
      transition: background var(--trans-fast), color var(--trans-fast);
    }

    #side-panel .sp-close:hover {
      background: rgba(255,255,255,0.06);
      color: var(--text-primary);
    }

    #side-panel .sp-level-badge {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    #side-panel .sp-title {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 4px;
      line-height: 1.2;
    }

    #side-panel .sp-exp {
      font-size: 13px;
      color: var(--text-secondary);
      margin-bottom: 20px;
    }

    #side-panel .sp-section-title {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      margin: 18px 0 8px;
    }

    #side-panel .sp-salary-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
    }

    #side-panel .sp-salary-row:last-child {
      border-bottom: none;
    }

    #side-panel .sp-salary-label {
      font-size: 12px;
      color: var(--text-secondary);
    }

    #side-panel .sp-salary-value {
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 600;
    }

    #side-panel .sp-skills {
      list-style: none;
    }

    #side-panel .sp-skills li {
      font-size: 13px;
      color: var(--text-primary);
      padding: 5px 0;
      padding-left: 16px;
      position: relative;
      line-height: 1.4;
      border-bottom: 1px solid var(--border);
    }

    #side-panel .sp-skills li:last-child {
      border-bottom: none;
    }

    #side-panel .sp-skills li::before {
      content: '·';
      position: absolute;
      left: 4px;
      color: var(--text-muted);
    }

    #side-panel .sp-desc {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* ================================================
       STEP 10: Controls panel
       ================================================ */
    #controls {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .ctrl-btn {
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(28, 28, 34, 0.95);
      border: 1px solid rgba(255,255,255,0.22);
      border-radius: 0;
      cursor: pointer;
      color: #d4d4d4;
      font-size: 18px;
      font-weight: 300;
      transition: background var(--trans-fast), color var(--trans-fast);
      box-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
      line-height: 1;
      text-align: center;
    }

    #controls .ctrl-btn:first-child {
      border-radius: 9px 9px 0 0;
    }

    #controls .ctrl-btn:last-child {
      border-radius: 0 0 9px 9px;
    }

    #controls .ctrl-btn + .ctrl-btn {
      border-top: none;
    }

    .ctrl-btn:hover {
      background: rgba(50, 50, 62, 0.98);
      color: #ffffff;
      border-color: rgba(255,255,255,0.35);
    }

    .ctrl-btn.fit {
      font-size: 12px;
      font-weight: 600;
      font-family: var(--font);
    }

    /* ================================================
       STEP 10: Zoom indicator
       ================================================ */
    #zoom-indicator {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      background: rgba(20, 20, 24, 0.88);
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 20px;
      padding: 5px 12px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
      font-family: var(--font-mono);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s;
      letter-spacing: 0.04em;
    }

    #zoom-indicator.visible {
      opacity: 1;
    }

    /* ================================================
       Header label
       ================================================ */
    #map-label {
      position: fixed;
      top: 16px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 200;
      text-align: center;
      pointer-events: all;
      background: rgba(13,13,15,0.55);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      padding: 8px 22px 10px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.07);
      max-width: calc(100vw - 32px);
    }

    #map-label h1 {
      font-size: 18px;
      font-weight: 700;
      color: #f0f0f0;
      letter-spacing: 0.02em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: calc(100vw - 80px);
    }

    #map-label p {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    /* ================================================
       Grade legend (bottom-left)
       ================================================ */
    #grade-legend {
      position: fixed;
      bottom: 24px;
      left: 24px;
      z-index: 9999;
      background: rgba(20, 20, 24, 0.92);
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 10px;
      padding: 11px 14px;
      box-shadow: 0 2px 16px rgba(0,0,0,0.55);
      backdrop-filter: blur(10px);
      pointer-events: all;
    }

    .legend-title {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.10em;
      color: var(--text-muted);
      margin-bottom: 7px;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 11px;
      color: var(--text-secondary);
      padding: 2px 6px;
      margin: 0 -6px;
      border-radius: 4px;
      cursor: pointer;
      transition: background var(--trans-fast), opacity var(--trans-fast);
    }

    .legend-item:hover {
      background: rgba(255,255,255,0.07);
    }

    .legend-item.active {
      background: rgba(255,255,255,0.12);
      color: var(--text-primary);
    }

    .legend-item.dimmed {
      opacity: 0.35;
    }

    .legend-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* "Подробнее" button inside main nodes */
    .node-details-btn {
      display: inline-block;
      margin-top: 10px;
      margin-left: 12px;
      padding: 4px 10px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 6px;
      color: rgba(255,255,255,0.55);
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      font-family: var(--font);
      pointer-events: auto;
      transition: background var(--trans-fast), color var(--trans-fast);
    }

    .node:hover .node-details-btn {
      background: rgba(255,255,255,0.13);
      color: rgba(255,255,255,0.9);
    }

    /* Right-column branch cards — fixed equal width */
    #node-delivery, #node-pmm, #node-uxlead,
    #node-datalead, #node-advisor, #node-fractional,
    #node-founder, #node-growth-pm, #node-ai-pm,
    #node-b2b-pm, #node-vc-investor, #node-product-ops {
      width: 240px;
    }

    /* Right-column section headers — clearly NOT a card, pure label */
    .right-col-header {
      position: absolute;
      pointer-events: none;
      width: 230px;
    }
    .right-col-header .rch-label {
      display: block;
      font-size: 8px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: rgba(255,255,255,0.32);
      padding-bottom: 5px;
      border-bottom: 1px solid rgba(255,255,255,0.10);
    }
    .right-col-header .rch-sub {
      display: block;
      font-size: 9px;
      color: rgba(255,255,255,0.18);
      margin-top: 4px;
      line-height: 1.4;
    }

    /* Branch nodes — corner arrow icon hinting sidebar can be opened */
    .node.branch:not(#node-indie):not(#node-remote)::after {
      content: '';
      position: absolute;
      right: 10px;
      bottom: 10px;
      width: 14px;
      height: 14px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8 L11 8 M8 5 L11 8 L8 11' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-size: contain;
      opacity: 0.18;
      transition: opacity var(--trans-fast);
      pointer-events: none;
    }

    .node.branch:not(#node-indie):not(#node-remote):hover::after {
      opacity: 0.55;
    }

    /* Gradient branch nodes — pill button absolutely positioned to vertical center-right */
    #node-indie,
    #node-remote {
      padding-right: 120px !important;
    }

    #node-indie .node-details-btn,
    #node-remote .node-details-btn {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      margin: 0;
      padding: 8px 16px;
      border-radius: 20px;
      background: rgba(255,255,255,0.14);
      border: 1px solid rgba(255,255,255,0.32) !important;
      color: rgba(255,255,255,0.8);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.01em;
      white-space: nowrap;
      pointer-events: auto;
      transition: background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast);
    }

    #node-indie:hover .node-details-btn,
    #node-remote:hover .node-details-btn {
      background: rgba(255,255,255,0.26);
      border-color: rgba(255,255,255,0.55) !important;
      color: #fff;
    }

    /* ================================================
       Pulse hint — Junior PM onboarding
       ================================================ */
    @keyframes pulse-ring {
      0%   { box-shadow: var(--node-shadow), 0 0 0 0   rgba(34,197,94,0); }
      50%  { box-shadow: var(--node-shadow), 0 0 0 10px rgba(34,197,94,0.25); }
      100% { box-shadow: var(--node-shadow), 0 0 0 0   rgba(34,197,94,0); }
    }

    #node-entry.pulse-hint {
      animation: pulse-ring 2.2s ease-in-out 3;
    }

    /* ================================================
       Branch arrow icon — base opacity boost
       ================================================ */
    .node.branch:not(#node-indie):not(#node-remote)::after {
      opacity: 0.30;
    }

    /* ================================================
       Mobile: slide-up side panel
       ================================================ */
    @media (max-width: 600px) {
      #side-panel {
        right: auto !important;
        left: 0;
        bottom: -75%;
        top: auto;
        width: 100%;
        height: 70vh;
        padding: 20px 16px 24px;
        border-left: none;
        border-top: 1px solid var(--border);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transition: bottom 0.3s ease-out, transform 0.3s ease-out;
      }

      #side-panel.open {
        bottom: 0;
      }

      /* Drag handle hint */
      #side-panel::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255,255,255,0.18);
        margin: 0 auto 16px;
      }

      #grade-legend {
        bottom: 12px;
        left: 8px;
        padding: 8px 10px;
      }

      .legend-title {
        font-size: 8px;
        margin-bottom: 5px;
      }

      .legend-item {
        font-size: 10px;
        padding: 1px 5px;
        gap: 5px;
      }

      .legend-dot {
        width: 7px;
        height: 7px;
      }

      body.panel-open #grade-legend {
        display: none;
      }

      #controls {
        bottom: 16px;
        right: 12px;
      }

      #map-label h1 {
        font-size: 14px;
      }

      #map-label p {
        display: none;
      }
    }
