  body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
  }

  /* ── Trigger button ── */
  #open-palette {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #6c757d;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.45rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .15s, color .15s;
  }
  #open-palette:hover {
    color: #212529;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
  }
  #open-palette kbd {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border: 1px solid #dee2e6;
    border-radius: 0.3rem;
    background: #f8f9fa;
    color: #6c757d;
    vertical-align: baseline;
  }

  /* ── Overlay ── */
  #overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1050;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #overlay.open { display: flex; }

  /* ── Palette box ── */
  #palette {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
  }

  /* ── Search bar ── */
  #search-wrap {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
  }
  #search-wrap .bi {
    font-size: 1.1rem;
    color: #adb5bd;
    flex-shrink: 0;
  }
  #search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #212529;
    caret-color: #0d6efd;
  }
  #search-input::placeholder { color: #adb5bd; }

  #clear-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
  }
  #clear-btn:hover { color: #495057; }
  .modal-content {border:none;border-radius:0}

  /* ── Results list ── */
  #results-wrap {
    overflow-y: auto;
    flex: 1;
  }

  /* Estado vacío / cargando / error */
  .state-msg {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
  }
  .state-msg .state-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #dee2e6;
  }
  .state-msg strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 0.25rem;
  }

  /* Ítem individual */
  .result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background .1s;
    text-decoration: none;
    color: inherit;
  }
  .result-item:last-child { border-bottom: none; }
  .result-item:hover,
  .result-item.focused {
    background-color: #f0f6ff;
  }
  .result-item.focused .item-icon { color: #0d6efd; }

  .item-icon {
    font-size: 1rem;
    color: #adb5bd;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .item-body { flex: 1; min-width: 0; }

  .item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .item-desc {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .item-id {
    font-size: 0.75rem;
    color: #adb5bd;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    font-variant-numeric: tabular-nums;
  }

    /* ── Footer de atajos ── */
  #palette-footer {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.75rem;
    color: #adb5bd;
    justify-content: space-around;
  }
  #palette-footer span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }
  #palette-footer kbd {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    padding: 0.1rem 0.35rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #f8f9fa;
    color: #6c757d;
  }