.watchlist-chip-editor {
  grid-template-columns: minmax(280px, 1fr) auto;
}

.watchlist-chip-box {
  display: flex;
  min-height: 86px;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  border: 1px solid var(--line);
  background: #080c0a;
  padding: 8px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.watchlist-chip-box:focus-within {
  border-color: #3d7b57;
  box-shadow: 0 0 0 2px rgba(45, 211, 111, 0.12);
}

.watchlist-chips {
  display: contents;
}

.watchlist-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #3d7b57;
  background: rgba(45, 211, 111, 0.1);
  color: var(--green);
  padding: 4px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.watchlist-chip:hover {
  background: rgba(45, 211, 111, 0.18);
}

.watchlist-chip-box input {
  flex: 1 1 150px;
  min-width: 130px;
  min-height: 28px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.watchlist-chip-box input::placeholder {
  color: var(--muted);
}

.watchlist-save-flash {
  min-height: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.watchlist-panel[data-watchlist-state="saved"] .watchlist-chip-box {
  border-color: var(--green);
  background: rgba(45, 211, 111, 0.08);
  box-shadow: 0 0 0 2px rgba(45, 211, 111, 0.18);
}

.watchlist-panel[data-watchlist-state="dirty"] .watchlist-chip-box {
  border-color: var(--amber);
}

.watchlist-panel[data-watchlist-state="error"] .watchlist-chip-box {
  border-color: var(--red);
}

.watchlist-panel[data-watchlist-state="rejected"] .watchlist-chip-box {
  border-color: var(--red);
  background: rgba(255, 98, 98, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 98, 98, 0.18);
}

.watchlist-panel[data-watchlist-state="rejected"] .watchlist-save-flash {
  color: var(--red);
}

.watchlist-panel[data-watchlist-state="unverified"] .watchlist-chip-box {
  border-color: var(--amber);
  background: rgba(255, 191, 71, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 191, 71, 0.18);
}

.watchlist-panel[data-watchlist-state="unverified"] .watchlist-save-flash {
  color: var(--amber);
}
