.draggable-list-widget {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 100%;

  .list-container {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  .list-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: white;
    border-bottom: 1px solid #e1e5e9;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    cursor: grab;
  }
  .list-item:last-child {
    border-bottom: none;
  }
  .list-item:hover {
    background-color: #f8f9fa;
  }
  .list-item:hover .remove-button {
    opacity: 1;
  }
  .list-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
  }
  .drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    cursor: grab;
    color: #6b778c;
    flex-shrink: 0;
  }
  .drag-handle:active {
    cursor: grabbing;
  }
  .drag-handle svg {
    fill: currentColor;
  }
  .item-label {
    flex: 1;
    color: #172b4d;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .item-label.editable {
    cursor: pointer;
    border-radius: 3px;
    padding: 1px 4px;
    margin: -1px -4px;
  }
  .item-label.editable:hover {
    background-color: #f4f5f7;
  }
  .item-label.editable:focus {
    outline: 2px solid #0052cc;
    outline-offset: 1px;
  }
  .remove-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 3px;
    color: #6b778c;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease;
  }
  .remove-button:hover {
    background-color: #e4e6ea;
    color: #42526e;
  }
  .add-input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 8px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #6b778c;
  }
  .add-input:focus {
    background: #f8f9fa;
    color: #172b4d;
    border-radius: 3px;
  }
  .edit-input {
    flex: 1;
    padding: 1px 4px;
    margin: -1px -4px;
    border: 1px solid #0052cc;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: #172b4d;
    outline: none;
  }
  .drop-indicator {
    background-color: #0052cc !important;
    border-radius: 1px;
  }
}