
    body { font-family: Inter, sans-serif; }

    .tool-card {
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 0.75rem;
      padding: 1.5rem;
      box-shadow: 0 3px 12px rgba(0,0,0,.04);
    }

    .chord-pill {
      cursor: pointer;
      padding: 6px 14px;
      border-radius: 9999px;
      border: 1px solid #d1d5db;
      background: #fff;
      font-size: 0.75rem;
      font-weight: 500;
      color: #374151;
      transition: background 0.15s, border-color 0.15s;
      user-select: none;
      -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    .chord-pill:hover  { background: #ecfdf5; border-color: #6ee7b7; }
    .chord-pill.active { background: #d1fae5; border-color: #10b981; color: #065f46; font-weight: 600; }

    /*
      touch-action: none  → browser will NOT scroll when user touches this element
      The page body can still scroll freely when touching anywhere outside the canvas.
    */
    #neckCanvas {
      display: block;
      width: 100%;
      border-radius: 0.5rem;
      touch-action: none;
      cursor: ns-resize;
      user-select: none;
      -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    #diagramCanvas { display: block; border-radius: 0.5rem; }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .fade-up { animation: fadeUp 0.3s ease-out; }

    /* Ripple on string pluck */
    .str-ripple {
      position: fixed;
      border-radius: 50%;
      border: 2px solid #10b981;
      pointer-events: none;
      z-index: 50;
      animation: ripOut 0.45s ease-out forwards;
    }
    @keyframes ripOut {
      from { transform: scale(0); opacity: 0.9; }
      to   { transform: scale(3);  opacity: 0; }
    }

    /* Toast */
    #strumToast {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(12px);
      background: #065f46;
      color: #fff;
      font-size: 0.85rem;
      font-weight: 600;
      padding: 8px 22px;
      border-radius: 9999px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s, transform 0.15s;
      z-index: 60;
    }
    #strumToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    /* Diagram label row */
    .string-name {
      font-size: 10px;
      color: #9ca3af;
      font-family: monospace;
      text-align: center;
    }

    tbody tr:nth-child(even) { background: #f9fafb; }
