
    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);
    }

    /* Camera */
    .camera-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      background: #111827;
      border-radius: 0.5rem;
      overflow: hidden;
    }
    #videoEl {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      transform: scaleX(-1);
      display: none;
    }
    #overlayCanvas {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      transform: scaleX(-1);
    }
    .camera-placeholder {
      position: absolute; inset: 0;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 0.5rem; color: #6b7280;
      cursor: pointer;
    }

    /* Status dots */
    .dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: #d1d5db;
      display: inline-block;
      transition: background .3s;
    }
    .dot.active    { background: #10b981; }
    .dot.detecting { background: #f59e0b; animation: blink 1s infinite; }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

    /* Guitar strings */
    .string-line {
      flex: 1; height: 2px;
      border-radius: 1px;
      background: #374151;
      position: relative;
    }
    .string-line.vibrate::after {
      content: '';
      position: absolute; inset: -4px 0;
      border-radius: 2px;
      background: #10b981;
      animation: vib .18s ease-out forwards;
    }
    @keyframes vib { 0%{transform:scaleY(5);opacity:1} 100%{transform:scaleY(1);opacity:0} }

    /* Chord badges */
    .chord-badge {
      font-size: 0.75rem; font-weight: 600;
      padding: 0.2rem 0.65rem;
      border-radius: 999px;
      background: #ecfdf5;
      border: 1px solid #6ee7b7;
      color: #065f46;
    }
    .chord-badge.active-badge {
      background: #059669;
      border-color: #059669;
      color: #fff;
    }

    .chord-value.strumming { color: #059669; }
