
    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);
    }

    /* Key selector pills — same as guitar chord pills */
    .key-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;
    }
    .key-pill:hover  { background: #ecfdf5; border-color: #6ee7b7; }
    .key-pill.active { background: #d1fae5; border-color: #10b981; color: #065f46; font-weight: 600; }

    /* Tuning selector */
    .tuning-pill {
      cursor: pointer;
      padding: 5px 12px;
      border-radius: 9999px;
      border: 1px solid #d1d5db;
      background: #fff;
      font-size: 0.7rem;
      font-weight: 500;
      color: #6b7280;
      transition: background 0.15s, border-color 0.15s;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    .tuning-pill:hover  { background: #fef9ee; border-color: #fbbf24; }
    .tuning-pill.active { background: #fef3c7; border-color: #f59e0b; color: #92400e; font-weight: 600; }

    /* Tanpura strings */
    .string-area {
      touch-action: none;
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      border-radius: 0.5rem;
      overflow: hidden;
      transition: background 0.1s;
    }
    .string-area:active { background: rgba(16,185,129,0.06); }

    /* Drone toggle */
    #droneBtn {
      transition: all 0.2s;
    }

    /* Ripple */
    .pluck-ripple {
      position: fixed;
      border-radius: 50%;
      pointer-events: none;
      z-index: 50;
      border: 2px solid #10b981;
      animation: pluckRip 0.5s ease-out forwards;
    }
    @keyframes pluckRip {
      from { transform: scale(0); opacity: 0.9; }
      to   { transform: scale(3.5); opacity: 0; }
    }

    /* Pulse on auto-drone string */
    @keyframes strPulse {
      0%   { opacity: 1; transform: scaleY(1); }
      40%  { opacity: 0.6; transform: scaleY(0.97); }
      100% { opacity: 1; transform: scaleY(1); }
    }
    .string-pulsing { animation: strPulse 0.6s ease-out; }

    /* String canvas */
    #tanpuraCanvas {
      display: block;
      width: 100%;
      touch-action: none;
      cursor: pointer;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    tbody tr:nth-child(even) { background: #f9fafb; }
