@layer components {
  .dropdown {
    position: relative;
  }

  .dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    padding: 4px 0;
  }

  .dropdown-menu.open {
    display: block;
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ink-600);
    text-decoration: none;
    transition: background 120ms ease;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-ui);
  }

  .dropdown-item:hover {
    background: var(--ink-50);
    color: var(--ink-800);
  }

  .dropdown-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
  }

  .dropdown-divider {
    height: 1px;
    background: var(--ink-100);
    margin: 4px 0;
  }
}
