@layer components {
/* ── New tag input ──────────────────────────────────── */
.tag-new-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.tag-new-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--t-slow);
}
.tag-new-input:focus { border-color: oklch(60% 0.08 65); }
.tag-new-input::placeholder { color: var(--faint); }
.tag-add-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.tag-add-btn:hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.tag-new-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tag-new-chip-remove {
  cursor: pointer;
  font-size: 13px;
  color: inherit;
  opacity: 0.6;
  padding: 0;
  line-height: 1;
}
.tag-new-chip-remove:hover { opacity: 1; }
}
